Interview Prep/AWS/Observability, Security Services and IaC

How does KMS envelope encryption work?

IntermediateConceptObservability, Security Services and IaC
Answer

KMS keys never leave KMS in plaintext and Encrypt directly handles at most 4 KB. For real data, you call GenerateDataKey, receive a plaintext data key and the same key encrypted under the KMS key, encrypt data locally with the plaintext key, discard it, and store the encrypted data key alongside the ciphertext. To decrypt, call Decrypt on the encrypted data key.

S3, EBS and RDS do this transparently. Key types: AWS owned, AWS managed (aws/s3) and customer managed keys.

aws All AWS questions

More on Observability, Security Services and IaC