Expand description
Envelope encryption for relational UserStore value columns (#1377).
A random root DEK is created per user and sealed to the deployment’s age recipient ring. Age plugin recipients and identity files are the same seam used by the deployment trust mint, including KMS and YubiKey plugins. Value columns use per-field keys derived from the root DEK. Deleting the user’s wrapped DEK therefore makes every remaining ciphertext cryptographically unreadable without retaining a plaintext-key cache.
[DekSealer] keeps the field cipher testable, while its production adapter
calls the same AgeRecipients and
AgeIdentities component used by the
deployment trust mint. The crypto design — per-user root DEK, HKDF-derived
per-field keys, AES-256-GCM-SIV with (username, column, row-binding) AAD —
remains independent of the deployment key-wrapping implementation.
Structs§
- User
Store Encryption Config - Deployment key-sealing configuration for relational credential storage.