Skip to content
Secrets StoreMarkdown

Keys and protection

Every secret sealed under its owner's own key, keys rotated and destroyed when they must be, and every request and change on the realm's audit trail.

AvailableAPI

Every secret is sealed under a key that belongs to its owner: a user’s own key, a group’s key, or the realm’s secrets key. Each key opens only on its holder’s sign-in, so a copy of the database, a backup, or a realm administrator acting as themselves can’t open a user’s secrets. You rotate the realm’s key when your policy asks, and destroying a key makes every secret under it unreadable in every copy.

CapabilityWhat it gives you
Sealing per ownerEvery value, label and path sealed under its owner’s key
Group keysA group’s secrets open only on a member’s sign-in
Key rotationMove the realm’s secrets onto a new version of its key (with limits)
Crypto-shreddingDestroy a key, and every secret under it, in every copy and backup
Secrets audit trailEvery request and change recorded, values left out (with limits)
OwnerSealed underOpened onDestroyed when
A userthe user’s own keythat user’s sign-inthe user is deleted
A groupthe group’s own keya member’s sign-inthe group is deleted
The realmthe realm’s secrets keya realm administrator’s sign-ina realm administrator shreds it

Users’ and groups’ keys are made, rotated and destroyed by the store itself, with nothing for you to call. The realm’s secrets key is the one you act on, at https://foobar.cvyuh.com/api/v0/am/keys/v1/secrets/encryption: a PUT rotates it, and a DELETE with ?shred=true destroys it. It is apart from the realm’s signing keys and the key that seals the realm’s other data, so neither change touches them.

Managed vaults trust the realm’s sign-in and the platform that holds the keys. For secrets the realm must never be able to open, see Sealed vaults; Known limitations lists every exception.

One call that seals every secret in the realm’s vault again under the newest key version: see What’s next for keys and protection.