Adds listMounts and an engine registry (database, aws, ssh, generic fallback). The Secrets page groups mounts by engine; KV v2 keeps the path browser and dynamic mounts get a placeholder EngineView. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
13 lines
430 B
TypeScript
13 lines
430 B
TypeScript
import { engineFor } from '../../api/engines/registry'
|
|
import type { Mount } from '../../api/secrets'
|
|
|
|
/** Roles / Config / Leases for a dynamic secrets engine. Filled in by later phases. */
|
|
export function EngineView({ mount }: { mount: Mount }) {
|
|
const engine = engineFor(mount.type)
|
|
return (
|
|
<p className="secret-placeholder">
|
|
{engine.label} engine at {mount.path}: role management is coming soon.
|
|
</p>
|
|
)
|
|
}
|