What is envelope encryption and why does KMS use it?
IntermediateConceptSecrets Management and Identity
Answer
Data is encrypted with a data key (DEK); the DEK is encrypted by a master key (KEK) held in KMS/HSM. Only small DEKs travel to KMS, so large data is encrypted locally and fast, and the master key never leaves the HSM. Rotation of the KEK only needs re-wrapping DEKs.
aws kms generate-data-key --key-id alias/app --key-spec AES_256
Returns a plaintext key for immediate use and an encrypted copy to store beside the data.
More on Secrets Management and Identity
Why is hard-coding secrets or putting them in environment variables a problem?BeginnerWhat does HashiCorp Vault provide?BeginnerExplain Vault's seal/unseal process.IntermediateWhat are Vault dynamic secrets and why are they better than static ones?IntermediateHow do Kubernetes workloads authenticate to Vault?AdvancedWhat is AWS Secrets Manager and how does it compare with SSM Parameter Store?Beginner