envelope encryption
Encrypting data locally with a data key, then encrypting that data key with a master key held in a key service, and storing both together.
In more detail
Only the small encrypted data key ever goes back to the key service to be decrypted, so bulk data never leaves your system. Deleting the master key makes every wrapped data key, and so every copy of the data, unreadable.
Examples
wrapped = seal(GCM, kek_v1, n1, AAD, dek) # stored next to the dataRotating the KEK rewrote a few dozen bytes; the encrypted row never changedRelated terms
- data key — A symmetric key used to encrypt data directly, returned by the key service both in plain form and encrypted under a master key.
- AWS KMS — AWS Key Management Service, which creates and guards encryption keys and controls who may use them.
- key wrapping — Encrypting one key with another key, using an algorithm designed for keys such as AES key wrap.
- DEK — The key that actually encrypts a piece of data, such as a file, database or disk, in envelope encryption.
- KEK — A key used only to encrypt other keys, never data directly.
- KMS — A service that creates, stores and controls cryptographic keys and performs operations with them, so applications never handle the raw key.
Taught in
- The Edge: WAF, Shield, CloudFront And GuardDuty — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- KMS And Envelope Encryption: Who Can Still Decrypt? — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Envelope Encryption & Data Protection with KMS — Cloud Security & DevSecOps Engineering
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography
References
- AWS KMS: envelope encryption
- AWS KMS Developer Guide: cryptography essentials
- AWS KMS Developer Guide: data keys