Secrets: create and change secrets engine mounts from the UI
New secrets engine (KV v2, database, aws, ssh) and per-mount Settings dialogs on the Secrets page, including KV v2 settings. Settings prefill from the explicit lease TTLs on the mount rather than the effective ones, and the KV configuration is re-read on every open so a stale copy is never written back. A server with no mounts can still create its first one. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
66aa86028a
commit
13a5353868
6 files changed
+497
-46
No files matched your search
@@ -97,6 +97,7 @@ export function RoleEditor({
|
||||
kind,
|
||||
noun = 'role',
|
||||
showName = true,
|
||||
nameLabel,
|
||||
submitLabel = 'Save',
|
||||
draft,
|
||||
pending,
|
||||
@@ -110,6 +111,8 @@ export function RoleEditor({
|
||||
noun?: string
|
||||
/** False for single-endpoint configs that have no name. */
|
||||
showName?: boolean
|
||||
/** Label for the name field; defaults to "<Noun> name". */
|
||||
nameLabel?: string
|
||||
submitLabel?: string
|
||||
draft: RoleDraft
|
||||
pending: boolean
|
||||
@@ -128,7 +131,7 @@ export function RoleEditor({
|
||||
<h3>{title}</h3>
|
||||
{showName && (
|
||||
<label>
|
||||
{noun[0].toUpperCase() + noun.slice(1)} name
|
||||
{nameLabel ?? `${noun[0].toUpperCase() + noun.slice(1)} name`}
|
||||
<input value={draft.name} disabled={!draft.isNew} onChange={(e) => onChange({ ...draft, name: e.target.value })} required />
|
||||
</label>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user