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
+32
-1
@@ -1106,9 +1106,18 @@ button.link:hover:not(:disabled) {
|
||||
}
|
||||
|
||||
.secret-detail header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: var(--s2) var(--s4);
|
||||
margin-bottom: var(--s4);
|
||||
}
|
||||
|
||||
.secret-detail header > div {
|
||||
display: grid;
|
||||
gap: var(--s1);
|
||||
margin-bottom: var(--s4);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.secret-detail h2 {
|
||||
@@ -1422,3 +1431,25 @@ button.danger-solid:hover:not(:disabled) {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Inline "Grant access" form inside the secret detail card. */
|
||||
.grant-here {
|
||||
max-width: none;
|
||||
margin: 0 0 var(--s4);
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.caps {
|
||||
grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
|
||||
}
|
||||
|
||||
.caps legend {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.note-ok {
|
||||
padding: var(--s2) var(--s3);
|
||||
background: var(--accent-soft);
|
||||
border-radius: var(--radius);
|
||||
color: var(--accent);
|
||||
}
|
||||
Reference in new issue
Block a user