Enterprise Secrets Management, Compared
A practical guide to the secrets managers large teams actually run: HashiCorp Vault, AWS Secrets Manager, Google Secret Manager and Azure Key Vault. Compare their cost, rotation, access control and audit trails, then estimate your own monthly bill.
Why Secrets Need a Manager
An API key, database password or signing token that sits in a .env file, a CI variable or a chat message has no owner, no expiry and no record of who used it. A secrets manager fixes three things at once: it stores the credential encrypted in one place, it decides which identity may read it, and it writes a log entry every time it is read or changed.
The Four Platforms Side by Side
List prices and features as published by each vendor
| Platform | Runs where | Pricing model | Rotation | Access control |
|---|---|---|---|---|
| HashiCorp Vault | Self-hosted anywhere, or HCP Vault (managed) | Community edition free; Enterprise and HCP priced by HashiCorp | Dynamic, short-lived credentials with leases and TTLs | Path-based ACL policies in HCL |
| AWS Secrets Manager | AWS regions, with replication between regions | $0.40 per secret per month + $0.05 per 10,000 API calls | Scheduled rotation through Lambda functions, as often as every 4 hours | IAM policies and resource policies |
| Google Secret Manager | Google Cloud | $0.06 per active secret version per month + $0.03 per 10,000 access operations | Rotation schedules send Pub/Sub notifications; your code rotates | Cloud IAM roles per secret |
| Azure Key Vault | Azure regions | Standard tier: $0.03 per 10,000 operations; no per-secret fee | Expiry dates plus Event Grid near-expiry events | Azure RBAC or vault access policies |
The short version: if nearly all of your workloads live in one cloud, that cloud's native service is the least work to operate. If you run across several clouds or on-premises, Vault gives you one policy language and one audit stream for all of them, at the price of running and upgrading it yourself.
Secrets Manager Cost Calculator
Estimate the monthly list price of the three managed cloud services
AWS Secrets Manager
per month
Google Secret Manager
per month
Azure Key Vault (Standard)
per month
Method: rates from the table above. Google's monthly free tier (6 versions, 10,000 operations) is applied; AWS does not bill versions separately. Sources: the AWS, Google Cloud and Azure (East US) pricing pages, checked October 2026. Excludes trials, taxes, replica regions, rotation notifications and self-hosted Vault. A planning estimate, not a quote.
Rotation Policies That Do Not Break Production
Rotation limits how long a stolen credential stays useful. The hard part is changing a credential that running services depend on. Three patterns cover most cases:
- Dynamic credentials. Vault's database and cloud secrets engines create a new username and password per client, with a lease that expires on its own. Nothing long-lived exists to rotate.
- Dual secrets (alternating users). Two credentials are valid at the same time. You rotate the idle one, move clients to it, then retire the old one. AWS Secrets Manager ships this as its alternating-users rotation strategy.
- Expiry with alerts. For third-party API keys that you must regenerate by hand, set an expiry date and alert before it passes. Azure Key Vault publishes near-expiry events; Google Secret Manager publishes rotation notifications.
Set the interval by risk, not by habit. A key that can move money or read customer data deserves a shorter life than a read-only metrics token. Rotate at once whenever a credential appears in a log, a repository or a ticket.
Access Control and Audit
Grant to workloads, not people. Give each service its own identity (an IAM role, a Kubernetes service account, a Vault AppRole) and let it read only the paths it needs. Humans get break-glass access that requires approval and leaves a record.
Keep reads and writes apart. The team that rotates a secret does not need to read its value, and the service that reads it should never be able to change it.
Log every read. AWS records Secrets Manager calls in CloudTrail. Google records access in Cloud Audit Logs, but data-access logging must be turned on. Azure sends Key Vault diagnostic logs to Log Analytics or a storage account. Vault writes to its audit devices and stores sensitive values as HMAC hashes. Send all of it to one place, alert on reads from new identities or unusual volumes, and review who holds access every quarter.
Guides
HashiCorp Vault vs AWS Secrets Manager: architecture, rotation, access control and cost compared
Multi-cloud flexibility, dynamic credentials versus Lambda rotation, IAM versus Vault policies, and when a hybrid setup makes sense.
Frequently Asked Questions
Is HashiCorp Vault cheaper than AWS Secrets Manager?
The Vault community edition has no license fee, but you pay for the servers, storage and engineers that run it. AWS Secrets Manager has no infrastructure to run but charges $0.40 per secret per month, so the answer depends on how many secrets you hold and whether you already operate Vault.
How often should API keys be rotated?
There is no single correct interval. Base it on what the key can do and how widely it is used, prefer short-lived dynamic credentials where the platform supports them, and rotate at once after any suspected exposure.