Secrets: grant access from the secret's detail card (ENB-20)
CI / integration (push) Failing after 12s
CI / check (push) Successful in 16s

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:
mattandClaude Sonnet 5.5 committed 2026-10-20 13:48:07 +01:00
1 parent 61bb6d912a
commit 791cf9603a
8 files changed
+287 -26

No files matched your search

+1 -1
View File
@@ -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>
)}