Dominevo
ReferenceHTTP API

keychainAdmin

The keychainAdmin router: 13 methods of the keychain-admin capability, with tier, scope, input and output.

Capability keychain-admin · scope system · mode singleton · source packages/types/src/capabilities/keychain-admin.cap.ts:158.

Every method is called at /trpc/keychainAdmin.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
statusqueryadminadmin onlyno
listSecretsqueryadminadmin onlyno
listAuditqueryadminadmin onlyno
revealmutationadminadmin onlyno
setSystemSecretmutationadminadmin onlyno
importSecretmutationadminadmin onlyno
deleteOrphansmutationadminadmin onlyno
rotateMasterKeymutationadminadmin onlyno
purgeRetiredKeysmutationadminadmin onlyno
downloadRecoveryKeymutationadminadmin onlyno
resetKeychainmutationadminadmin onlyno
resetReportqueryadminadmin onlyno
acknowledgeResetmutationadminadmin onlyno

keychainAdmin.status

  • Kind: query — GET /trpc/keychainAdmin.status
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.status on your hub

Input

{}

Output

KeychainStatusSchema

Shapes: KeychainStatusSchema

keychainAdmin.listSecrets

  • Kind: query — GET /trpc/keychainAdmin.listSecrets
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.listSecrets on your hub

Input

{}

Output

KeychainAdminSecretSchema[]

Shapes: KeychainAdminSecretSchema

keychainAdmin.listAudit

  • Kind: query — GET /trpc/keychainAdmin.listAudit
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.listAudit on your hub

Input

{ limit?: number }

Output

KeychainAuditEntrySchema[]

Shapes: KeychainAuditEntrySchema

keychainAdmin.reveal

  • Kind: mutation — POST /trpc/keychainAdmin.reveal
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.reveal on your hub

Input

{ ref: string }

Output

{ value: string; version: number }

keychainAdmin.setSystemSecret

  • Kind: mutation — POST /trpc/keychainAdmin.setSystemSecret
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.setSystemSecret on your hub

Input

{ name: SystemHeldSecretNameSchema; value: string }

Output

{ ref: string; version: number }

Shapes: SystemHeldSecretNameSchema

keychainAdmin.importSecret

  • Kind: mutation — POST /trpc/keychainAdmin.importSecret
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.importSecret on your hub

Input

{ ref: string; value: string }

Output

{ ref: string; version: number }

keychainAdmin.deleteOrphans

  • Kind: mutation — POST /trpc/keychainAdmin.deleteOrphans
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.deleteOrphans on your hub

Input

{ refs: string[] }

Output

{ deleted: string[]; kept: ({ ref: string; usage: KeychainSecretUsageSchema })[] }

Shapes: KeychainSecretUsageSchema

keychainAdmin.rotateMasterKey

  • Kind: mutation — POST /trpc/keychainAdmin.rotateMasterKey
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.rotateMasterKey on your hub

Input

{}

Output

{ fingerprint: string; keySource: KeychainKeySourceSchema }

Shapes: KeychainKeySourceSchema

keychainAdmin.purgeRetiredKeys

  • Kind: mutation — POST /trpc/keychainAdmin.purgeRetiredKeys
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.purgeRetiredKeys on your hub

Input

{}

Output

{ purged: number }

keychainAdmin.downloadRecoveryKey

  • Kind: mutation — POST /trpc/keychainAdmin.downloadRecoveryKey
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.downloadRecoveryKey on your hub

Input

{}

Output

{ key: string; fingerprint: string; keySource: KeychainKeySourceSchema }

Shapes: KeychainKeySourceSchema

keychainAdmin.resetKeychain

  • Kind: mutation — POST /trpc/keychainAdmin.resetKeychain
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.resetKeychain on your hub

Input

{ confirm: "RESET KEYCHAIN" }

Output

{ archivedCollection: string | null; archived: number }

keychainAdmin.resetReport

  • Kind: query — GET /trpc/keychainAdmin.resetReport
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.resetReport on your hub

Input

{}

Output

{ reset: KeychainResetRecordSchema | null; pendingReentry: KeychainSecretMetaSchema[] }

Shapes: KeychainResetRecordSchema · KeychainSecretMetaSchema

keychainAdmin.acknowledgeReset

  • Kind: mutation — POST /trpc/keychainAdmin.acknowledgeReset
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=keychainAdmin.acknowledgeReset on your hub

Input

{}

Output

{ acknowledged: boolean }