What Is Secrets Management?
Secrets management is how you store, distribute, rotate, and audit the credentials that applications and infrastructure use: API keys, database passwords, tokens, and certificates. These are non-human identity credentials, and leaked ones are a leading cause of cloud breaches.
The problem
Secrets end up hardcoded in source, baked into images, and pasted into config. Once leaked, many stay valid for a long time. Industry research finds millions of secrets exposed in public code each year, and a large share remain active.
What good looks like
- Central vault instead of secrets scattered across repos and pipelines.
- Dynamic, short-lived secrets issued on demand rather than long-lived static keys.
- Automated rotation so exposure windows stay small.
- Detection of secrets that leak into code and logs.
- Audit of who and what accessed each secret.
Related disciplines
Secrets management overlaps with PAM for privileged credentials, PKI for certificates, and broader non-human identity governance.
The measure that matters
The useful metric is not how many secrets are in the vault. It is how many exist outside it. A vault full of static database passwords improves auditability and changes very little about blast radius; generating a 15-minute credential on demand removes the asset entirely.
That is why the maturity order is: get secrets out of source and configuration, into a vault, then replace vaulted static secrets with dynamic ones, then replace dynamic secrets with platform-attested workload identity wherever the runtime can vouch for the caller.
Why teams do not rotate
Ask why a credential has not been rotated in three years and the answer is almost never policy. It is that nobody is certain what breaks. That uncertainty is itself the finding: it means the secret has been copied rather than referenced, and its consumers are unknown.
Fixing that (single source of truth, references instead of copies, a tested rotation runbook) matters more than the interval you choose. See secrets rotation.
Automation platforms are credential concentrators
A category worth calling out specifically. Workflow and automation tools exist to hold connections to databases, repositories, cloud accounts, AI services, and support platforms, which makes a single token for the orchestrator worth more than any credential it stores.
GitGuardian demonstrated the consequence in August 2026: with a leaked n8n API token, an attacker does not need to read a stored secret, because they can build a workflow that uses the credential to call their own endpoint. Read-only access to a workflow engine is not read-only in effect. The same reasoning applies to CI systems and to MCP servers brokering agent access.
Where to start
Where to start
Browse secrets management vendors and the machine identity vendors, and read the API key rotation guide.
Frequently asked questions
- What is secrets management?
- Secrets management is the practice of securely storing, distributing, rotating, and auditing sensitive credentials such as API keys, database passwords, tokens, and certificates.
- Why not store secrets in code or environment files?
- Hardcoded or plaintext secrets are easily leaked through source control, logs, or breaches. A secrets manager centralizes and controls access to them.
- What is a dynamic secret?
- A dynamic secret is a short-lived credential generated on demand and automatically expired, which reduces the risk and blast radius of a leaked long-lived secret.
Related on Start with Identity
- GuideWhat Is Cloud Infrastructure Entitlement Management (CIEM)?
Cloud Infrastructure Entitlement Management (CIEM) discovers and right-sizes the identities and permissions that exist across AWS, Azure, and GCP. In the cloud,
- GuideWhat Is Customer Identity and Access Management (CIAM)?
Customer Identity and Access Management (CIAM) is identity built for the people who use your product rather than the people who work at your company. It handles
- GuideWhat Is Identity and Access Management (IAM)?
Identity and Access Management (IAM) is the discipline of making sure the right people and systems have the right access to the right resources, at the right ti
- RankingBest Secrets Management Tools: Top 5
The top 5 secrets management tools (HashiCorp Vault, AWS Secrets Manager, CyberArk Conjur, Doppler, Infisical), scored on a 10-dimension rubric.
- GlossarySecrets Management
Centralized storage, distribution, rotation, and audit of credentials used by applications and infrastructure. Modern secrets management issues short-lived dyna
- ArticleTop 6 Open-Source Secrets Management Tools
The best open-source secrets management tools in 2026, from HashiCorp Vault and its OpenBao fork to Infisical, CyberArk Conjur, SOPS, and Bitwarden Secrets Mana