Secrets: engine config editors and one-time credential generation
Adds Config tab (database connections with rotate/reset, aws root and lease, ssh CA with generate/import) and a Generate action on roles (database/static creds, aws creds, ssh sign and OTP). Secret inputs are write-only: never prefilled and omitted when blank so the stored value is kept. Issued credentials live only in a gcTime-0 mutation and are shown once, with revoke-now for leased credentials. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4fa7ff1497
commit
48746e2150
15 files changed
+1089
-18
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import type { BaoClient } from '../bao'
|
||||
|
||||
/** Revokes one lease, which also deletes the credentials it issued (database user, AWS key, ...). */
|
||||
export async function revokeLease(c: BaoClient, leaseId: string): Promise<void> {
|
||||
await c.request('PUT', 'sys/leases/revoke', { lease_id: leaseId })
|
||||
}
|
||||
Reference in new issue
Block a user