Repository navigation
feat(secrets): org-scoped secrets UI — share checkbox and permission-gated actions [OHE-2568] - #449
Merged
Merged
Conversation
…ission-gated actions OHE-2568: Frontend support for organization-scoped secrets. - Add 'Share with organization' checkbox to the secret create/edit form, visible only to admins/owners (manage_org_secrets permission). When checked, the secret is created/updated via the org-secrets endpoint. - Hide edit/delete action buttons for org-scoped secrets when the current user lacks manage_org_secrets permission (members can see but not modify org-shared secrets). - Display a 'Shared' badge next to org-scoped secrets in the list. - Route delete/update to the org-secrets endpoint when the secret is org-scoped, using the selected organization ID. - Add manage_org_secrets permission key to frontend permissions (admin/owner only, matching the backend ROLE_PERMISSIONS mapping). - Add scope field to CustomSecretWithoutValue type. - Add 8 new frontend tests covering share checkbox visibility, org secret creation, badge display, and hidden action buttons (28 total, all pass). - Add 11 backend route tests for org_secrets.py permission enforcement. Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
tofarr
marked this pull request as ready for review
September 21, 2026 11:58
tofarr
marked this pull request as draft
September 21, 2026 11:58
tofarr
marked this pull request as ready for review
September 21, 2026 12:38
Contributor
|
🚀 Released in 1.63.0. |
2 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
AGENT:
Why
OHE-2568: Backend Phase 1 (commit c1d7492) added organization-scoped secrets — secrets that can be shared with all members of an organization. However, the frontend UI did not expose this capability: there was no way to share a secret with the org, and org-scoped secrets appeared in the list without any indication of their scope or ownership. This PR adds the frontend UI for org-scoped secrets.
Summary
manage_org_secretspermission). When checked, the secret is created/updated via the org-secrets endpoint (/api/organizations/{org_id}/secrets) instead of the personal V1 endpoint.manage_org_secretspermission (members can see and use org-shared secrets but cannot modify them). Personal secrets remain fully editable by their owner.manage_org_secretspermission: Added the permission key to the frontend permissions module (admin/owner only), matching the backendROLE_PERMISSIONSmapping.Issue Number
OHE-2568
How to Test
Frontend tests
All 28 tests pass (20 existing + 8 new).
Backend tests
All 22 tests pass (11 route + 11 store).
Manual testing
Video/Screenshots
Shared with non admin view:

Type
Notes
manage_org_secretspermission is admin/owner only on both backend and frontend.Enterprise server image for this PR: