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.
More on Observability, Security Services and IaC
How are CloudWatch metrics organized?BeginnerHow do CloudWatch Logs groups, streams and Logs Insights work?BeginnerExplain CloudWatch alarm states and missing data handling.AdvancedWhat is the CloudWatch Embedded Metric Format?AdvancedWhat does EC2 not report to CloudWatch by default?IntermediateWhat does CloudTrail record?Beginner