Secrets: grant access from the secret's detail card (ENB-20)
Adds a Grant access button to the selected secret. An inline form picks an identity (user, entity or group), whether to grant just this secret or its whole folder, and capabilities; the access table refreshes afterwards. - Extract CapabilityPicker and useRefreshAccess from the Access editor so both grant forms share them. - Stop Enter on the identity and engine dropdowns from submitting the form, which could grant access by accident. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
61bb6d912a
commit
791cf9603a
8 files changed
+287
-26
No files matched your search
@@ -79,7 +79,7 @@ function Browser({ client }: { client: BaoClient }) {
|
||||
)}
|
||||
</div>
|
||||
{selected ? (
|
||||
<AccessPanel client={client} mount={mount} secret={selected} />
|
||||
<AccessPanel key={`${mount}${selected}`} client={client} mount={mount} secret={selected} />
|
||||
) : (
|
||||
<p className="secret-placeholder">Select a secret to see who can reach it.</p>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user