Rotate, manage, and retrieve database credentials, API keys, and other secrets through their lifecycle
service
AWS Secrets Manager stores database credentials, API keys, OAuth tokens and other secrets, encrypted with AWS KMS keys, and applications fetch them at runtime with an API call instead of keeping them in code or config. It rotates secrets on a schedule or on demand, natively for Amazon RDS, Redshift and DocumentDB, with managed rotation for some third-party services and AWS Lambda functions for anything else. Access is controlled with IAM and resource-based policies, secrets can be replicated to other Regions as read replicas, and every call is logged to AWS CloudTrail. Kubernetes pods on Amazon EKS can mount secrets as files through the AWS provider for the Secrets Store CSI Driver.
Problems it solves
- get database passwords out of our application code and environment files on AWS
- rotate our RDS database credentials automatically without redeploying the app
- rotate API keys for Snowflake or MongoDB Atlas on a schedule without writing our own rotation code
- let only one IAM role read a particular API key in our AWS account
- replicate secrets to a second AWS Region for disaster recovery
- audit who read which secret and when in our AWS account
- mount secrets into EKS pods as files instead of baking them into Kubernetes Secrets
- a managed secrets store for Lambda functions that need third-party API keys
- share a secret with another AWS account without copying it
- a HIPAA-eligible, PCI DSS compliant place to keep application credentials in AWS
- find secrets nobody has accessed for months and alert on them
- encrypt stored credentials with our own KMS key instead of the default AWS key
- fetch many related secrets at once by tag for a service's configuration
Features
- secrets encrypted at rest with AWS KMS keys you own; TLS in transit
- fine-grained access with IAM policies and resource-based policies; cross-account access
- scheduled or on-demand rotation; native rotation for Amazon RDS, Amazon DocumentDB and Amazon Redshift
- managed rotation for third-party secrets (Salesforce, BigID, Snowflake, MongoDB Atlas, Confluent Cloud)
- custom rotation with AWS Lambda functions
- multi-Region replication as read replicas
- retrieve secrets by name or ARN, or in batches by names, ARNs or tags
- VPC endpoints and client-side caching libraries
- AWS CloudTrail auditing, CloudWatch and SNS alerts for unused secrets and rotation events
- AWS Config rules and Security Hub controls for secrets
View 3 more
- AWS provider for the Secrets Store CSI Driver on Amazon EKS
- Secrets Manager Agent
- AWS CloudFormation support
Limitations
- Not meant for encryption keys, SSH keys or TLS certificates: AWS recommends KMS, EC2 Instance Connect and Certificate Manager for those1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what AWS Secrets Manager does.
- Google Secret Manager Securely store API keys, passwords, certificates, and other sensitive data
- Azure Key Vault A secure secrets store, providing management for secrets, keys, and certificates, backed by Hardware Security Modules
- HashiCorp Vault Secrets management, encryption as a service and privileged access management
- OpenBao Open source, community-driven secrets manager and fork of Vault
- Doppler Secrets management platform for teams and infrastructure
- Infisical Open-source platform for secrets, certificates and privileged access
