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.
| Capability | What it gives you |
|---|---|
| Sealing per owner | Every value, label and path sealed under its owner’s key |
| Group keys | A group’s secrets open only on a member’s sign-in |
| Key rotation | Move the realm’s secrets onto a new version of its key (with limits) |
| Crypto-shredding | Destroy a key, and every secret under it, in every copy and backup |
| Secrets audit trail | Every request and change recorded, values left out (with limits) |
How it works
Section titled “How it works”| Owner | Sealed under | Opened on | Destroyed when |
|---|---|---|---|
| A user | the user’s own key | that user’s sign-in | the user is deleted |
| A group | the group’s own key | a member’s sign-in | the group is deleted |
| The realm | the realm’s secrets key | a realm administrator’s sign-in | a 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.
Coming next
Section titled “Coming next”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.
Related
Section titled “Related”- Who can read a secret: every way a secret can be reached.
- Rotate the secrets key: a new version of the realm’s key.
- Shred a realm’s secrets: the realm’s vault unreadable for good.