AWS KMS Envelope Encryption
Implements secure envelope encryption patterns using AWS KMS to protect large-scale data with local performance and centralized key management.
This skill provides comprehensive guidance for implementing envelope encryption, a security pattern where data is encrypted with a local Data Encryption Key (DEK) which is itself protected by an AWS KMS Master Key (KEK). It enables developers to bypass AWS KMS's 4KB data limit, reduce network latency through local encryption (AES-256-GCM), and maintain robust security standards by ensuring plaintext keys are never stored. It is ideal for building high-performance, compliant applications that require secure data-at-rest protection, automated key rotation, and multi-region disaster recovery.
Key Features
01Automated key rotation and re-encryption workflows
02Local high-speed encryption using AES-256-GCM
03Secure DEK generation using AWS KMS GenerateDataKey API
040 GitHub stars
05Encryption context implementation for authenticated metadata
06Efficient key caching strategies to reduce KMS API costs
Use Cases
01Encrypting large files or database fields exceeding the 4KB AWS KMS limit
02Building security architectures that require hardware-backed master key management
03Reducing application latency by performing encryption locally with cached keys