How do you manage application secrets in production?
BeginnerProductionSecurity Services and Data Protection
Answer
AWS Secrets Manager for credentials that rotate (database passwords, API keys), encrypted with a customer managed key, access per secret via resource policy and role policy, fetched at runtime by the app with caching (Secrets Manager caching libraries or the Lambda extension). For RDS, let RDS manage the master password in Secrets Manager (--manage-master-user-password) with automatic rotation. Plain configuration goes to SSM Parameter Store. Never put secrets in environment variables in plaintext, AMIs, images or Git.
More on Security Services and Data Protection
What is a minimal security services baseline for every account?BeginnerHow do you roll out GuardDuty across an organization and what protections do you turn on?IntermediateHow do you handle the flood of findings from GuardDuty and Security Hub?AdvancedWhat does Security Hub add on top of GuardDuty?BeginnerHow do you automate remediation of security findings?AdvancedHow do you design a KMS key strategy?Advanced