KMS and envelope encryption
A key management service holds master keys you never see; envelope encryption uses them to wrap the data keys that actually encrypt your data.
Encrypting data is easy; keeping the key safe is the hard part. A KMS such as AWS KMS, Google Cloud KMS or Azure Key Vault stores master keys in hardened hardware and only lets authorized services use them, with every use recorded in an audit log. Data itself is encrypted with a fresh data key, and only that data key, encrypted (“wrapped”) by the master key, is stored next to the data. Google’s envelope encryption guide and the AWS KMS concepts describe the pattern.
It answers questionnaire follow-ups to encryption at rest: who can use the keys, are they rotated, can a customer bring their own key (BYOK). Rotating a master key does not require re-encrypting all data, and deleting a key makes the data it protects unreadable, which some teams use for per-customer deletion. Application secrets belong in secrets management, not in the KMS.
Sources
- Google Cloud: Envelope encryption cloud.google.com
- AWS: AWS KMS cryptography essentials docs.aws.amazon.com
Related terms
- Encryption at rest: Encrypting stored data (databases, files, backups, laptop disks) so a stolen disk, snapshot or backup is unreadable without the key.
- Secrets management (leaked API keys): Keeping API keys, passwords and tokens out of code and chats, in a store with access control, rotation and audit.
- TLS (encryption in transit): The protocol behind HTTPS that encrypts data between browser, app and server, so nobody on the network can read or change it on the way.
- User access review (access recertification): A periodic check, often quarterly, where owners confirm who still needs access to each system and remove the rest, keeping evidence for auditors.
- Audit log (audit trail): A tamper-resistant record of who did what, when and from where in a system, kept for security investigations, customers and auditors.
