Securely store API keys, passwords, certificates, and other sensitive data
servicefree
Secret Manager is Google Cloud's service for storing API keys, passwords, certificates and other secrets as versioned payloads that applications read at runtime through its API, client libraries or gcloud. Each secret has an automatic replication policy (Google picks the regions) or a user-managed one (you choose them), and regional secrets keep data in one location for residency requirements. Secrets are encrypted with AES-256 by default or with your own Cloud KMS keys (CMEK), access is controlled with IAM roles and conditions, and rotation schedules send notifications to Pub/Sub for your own code to act on. On GKE, the Secret Manager add-on, derived from the open source Secrets Store CSI Driver, mounts secrets into pods, or a sync feature copies them to Kubernetes Secrets.
Problems it solves
- stop putting API keys in environment variables on Cloud Run and read them from a managed store
- keep secrets in specific Google Cloud regions to meet data residency rules
- pin our service to a known-good version of a secret and roll back if a new value breaks it
- encrypt stored secrets with our own Cloud KMS key that we can revoke
- remind us to rotate credentials on a schedule by triggering our own rotation function
- mount secrets into GKE pods as files without storing them in Kubernetes Secrets
- sync Google Cloud secrets into Kubernetes Secrets for apps that already read them
- give one service account read access to one secret with IAM conditions
- a free place to keep a handful of secrets for a small Google Cloud project
- set secrets to expire automatically after a date
- find out who accessed or changed a secret from audit logs
- delay destruction of old secret versions so a mistaken delete can be undone
Features
- versioned secrets with aliases, disable, destroy and delayed destruction
- automatic or user-managed replication policies
- regional secrets for data residency
- AES-256 encryption at rest by default; customer-managed encryption keys (CMEK) in Cloud KMS
- IAM roles and conditions; audit logging
- rotation schedules that send SECRET_ROTATE messages to Pub/Sub
- expiration dates, annotations, labels, tags and ETags
- Secret Manager add-on for GKE (managed Secrets Store CSI Driver component)
- synchronize secrets to Kubernetes Secrets on GKE 1.33+
- Cloud Asset Inventory analysis and custom organization policies
View 1 more
- Parameter Manager for configuration parameters (priced separately)
Limitations
- Doesn't rotate secret values itself: rotation schedules send Pub/Sub notifications that your own subscriber must act on1
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 Google Secret Manager does.
- AWS Secrets Manager Rotate, manage, and retrieve database credentials, API keys, and other secrets through their lifecycle
- 1Password Secrets Automation Use 1Password to store and deliver secrets to infrastructure, CI and apps
- 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
