Keys and envelope encryption
KMS keys can protect data keys used by services to encrypt larger data. Envelope encryption separates a data key from its encrypted copy. The application or integrated service handles data encryption while KMS protects key material and authorizes cryptographic operations. For example, an S3 object encrypted with SSE-KMS needs applicable S3 access and KMS decrypt authorization for its read path.
An S3 object encrypted with SSE-KMS needs applicable S3 access and KMS decrypt authorization for its read path.
A service wants to encrypt a large archive. Instead of sending the whole archive through a key-management operation, it obtains a data key, uses that key with an appropriate encryption algorithm, and stores the archive ciphertext alongside an encrypted copy of the data key. It discards the plaintext key when no longer needed. Reading reverses the process under authorized access.
Ciphertext is encrypted data. A data key encrypts the actual content. Envelope encryption protects that data key under a separate key-management key. KMS is therefore one part of a complete encryption design, not a replacement for storage permissions or safe application cryptography. An AWS-integrated service can perform much of this flow for you. The exact encryption context and authorization matter for decryption. Protect plaintext key material in memory and avoid logging it; encrypting the stored archive does not prevent a compromised authorized application from exposing decrypted content while it processes the data.
An S3 object encrypted with SSE-KMS needs applicable S3 access and KMS decrypt authorization for its read path.
Do not overlook this operational distinction: The application or integrated service handles data encryption while KMS protects key material and authorizes cryptographic operations.