Shred a realm's secrets
Destroy the realm's secrets key, so every secret in the realm's own vault becomes unreadable for good, in every copy and backup.
API
When the organization’s secrets must be gone for certain, finding and deleting every copy isn’t enough: backups and replicas keep them. Destroying the realm’s secrets key makes every secret in the realm’s vault unreadable at once, wherever a copy of the database sits.
Before you start: you are a realm administrator holding RealmOwner in this realm or a realm above it, signed in
with your session in $CVYUH_SESSION (Call the API shows how). This reaches the realm’s own vault,
and one-time shares, which are sealed under the realm’s key too. Each user’s and group’s secrets are under their own
keys, which are destroyed when that user or group is deleted. Hand on anything others still need from the realm’s
vault first.
Destroy the key
Section titled “Destroy the key”-
Destroy it, saying so explicitly:
Terminal window curl -X DELETE "https://foobar.cvyuh.com/api/v0/am/keys/v1/secrets/encryption?shred=true" \-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"The realm answers
200with the versions destroyed. Without?shred=truethe call is refused (400), so it can’t be made by mistake. -
Record when and why you did it. Destroying the realm’s secrets key isn’t on the realm’s audit trail yet.
Check it worked
Section titled “Check it worked”Any call to the realm’s vault now answers 503, saying the realm has no secrets key, and so does making or reading a
one-time share. The realm’s other data, its users’ and groups’ vaults, and grants on them, are untouched.
Related
Section titled “Related”- Crypto-shredding: every key the store destroys, and when.
- Offboard someone: a user’s key, destroyed with their account.