Secrets: manage roles for database, aws, ssh and generic engines
Registry gains per-engine role kinds with field schemas (database dynamic and static roles, aws, ssh); unknown engines get a raw JSON role editor. RolesPanel lists, creates, edits and deletes roles, and edits write back fields the form does not know about so they are not dropped. Covered by unit tests and an ssh integration test. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6daed8d388
commit
4fa7ff1497
10 files changed
+769
-14
No files matched your search
@@ -1,12 +1,17 @@
|
||||
import type { BaoClient } from '../../api/bao'
|
||||
import { engineFor } from '../../api/engines/registry'
|
||||
import type { Mount } from '../../api/secrets'
|
||||
import { RolesPanel } from './RolesPanel'
|
||||
|
||||
/** Roles / Config / Leases for a dynamic secrets engine. Filled in by later phases. */
|
||||
export function EngineView({ mount }: { mount: Mount }) {
|
||||
/** Roles (and, in later phases, Config / Leases) for a dynamic secrets engine. */
|
||||
export function EngineView({ client, mount }: { client: BaoClient; mount: Mount }) {
|
||||
const engine = engineFor(mount.type)
|
||||
return (
|
||||
<p className="secret-placeholder">
|
||||
{engine.label} engine at {mount.path}: role management is coming soon.
|
||||
</p>
|
||||
<div className="engine-view">
|
||||
<h2>
|
||||
{engine.label} · {mount.path}
|
||||
</h2>
|
||||
<RolesPanel key={mount.path} client={client} mount={mount.path} engine={engine} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user