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:
mattandClaude Sonnet 5.5 committed 2026-11-09 13:24:50 +00:00
1 parent 6daed8d388
commit 4fa7ff1497
10 files changed
+769 -14

No files matched your search

+3 -1
View File
@@ -133,6 +133,7 @@ test('groups mounts by engine and shows the engine view for a dynamic mount', as
{ path: 'secret/', type: 'kv', version: '2' },
{ path: 'cubbyhole/', type: 'cubbyhole' },
])
vi.spyOn(BaoClient.prototype, 'list').mockResolvedValue([])
render(
<QueryClientProvider client={new QueryClient({ defaultOptions: { queries: { retry: false } } })}>
<SessionProvider>
@@ -151,7 +152,8 @@ test('groups mounts by engine and shows the engine view for a dynamic mount', as
expect(within(select).queryByText('cubbyhole/')).not.toBeInTheDocument()
await user.selectOptions(select, 'database/')
expect(await screen.findByText(/Database engine at database\//)).toBeInTheDocument()
expect(await screen.findByRole('heading', { name: /Database · database\// })).toBeInTheDocument()
expect(await screen.findByRole('button', { name: 'New role' })).toBeInTheDocument()
expect(api.listSecrets).not.toHaveBeenCalled()
})