Removing Project Defaults exposes migrated job secrets to project managers #3302
Alexander Hausen opened 9 hours ago

We are running OneDev 17.2.6 and encountered a permissions problem caused by the removal of Project Defaults in OD-3296.

Previously, we managed shared job secrets centrally through Project Defaults. These secrets could only be viewed and managed by administrators. During the upgrade, the secrets were copied into the individual root projects.

As a result, colleagues who have management permissions on these root projects, but do not have administrator privileges, can now view secret values they could not access before. The migration therefore expanded access to existing credentials without an explicit authorization decision.

Why project hierarchy is not a practical replacement

Moving all existing projects underneath a common parent would change their project paths and URLs. This would affect existing clone URLs, integrations, CI/CD references, and links. Reorganizing our entire project hierarchy is not a viable workaround for retaining the previous secret access restrictions.

Expected behavior

An upgrade should preserve the access restrictions of existing secrets. Moving secrets from an administrator-only scope into project settings should not automatically make their values visible to project managers.

Possible solutions would be:

  • Restore a centrally managed secret scope that projects can use without granting project managers access to the underlying values.
  • Introduce separate permissions for viewing and managing secrets. We need to allow users to add or replace secret values without allowing them to reveal existing values in the UI or retrieve them through the API. Permission to manage a project should not automatically grant permission to read all its secret values.

The second option would also be useful independently of this migration, for example when a colleague needs to update a credential without being able to retrieve credentials previously entered by others.

Auditability

At a minimum, we need audit logging for secret-value access and secret management operations. This should record who accessed or changed which secret, in which scope, and when, covering both UI and API access. Secret values themselves must never be included in the audit log.

Audit logging would help us investigate potential credential disclosure, although it would not replace the missing access restrictions.

Could you reconsider the removal of the central secret scope, or provide a way to preserve the previous permission boundary without changing existing project paths?

1/1
Type
Security Vulnerability
Priority
Major
Assignee
Affected Versions
17.2.6
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-3302
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover