How do you structure KMS keys for production?
IntermediateProductionCloud Security Posture
Answer
Use customer-managed keys (CMKs) for sensitive data, so we control the key policy, rotation and audit. AWS-managed keys are fine for low-risk data but their policy cannot be changed.
- Separate keys per environment and per data domain (e.g.
prod-payments,prod-logs), not one key for everything. - Key policy grants administration and usage to different roles; the root account principal is kept so IAM policies work and the key cannot be orphaned.
- Automatic rotation on (the rotation period is configurable).
- Use encryption context and
kms:ViaServiceconditions to bind usage to the expected service. - Alert on
DisableKeyandScheduleKeyDeletionevents.
More on Cloud Security Posture
Sketch how AWS security services fit together in a multi-account organisation.BeginnerWhich security services do you enable in every AWS account by default?BeginnerNative tools (Security Hub, Prowler) or a commercial CNAPP: how do you choose?IntermediateHow do you design network security for production workloads in a VPC?IntermediateWhat is your S3 security baseline?BeginnerWhat is a data perimeter in AWS, and how do resource control policies help build it?Advanced