Secrets Management
Secrets management is the controlled storage, delivery, rotation, revocation, and auditing of credentials such as passwords, API keys, tokens, certificates, and encryption keys. It keeps sensitive values out of source code and gives each workload only the secret it needs for a limited time.
itIdentity, access, and cryptography | OpenSkills.info
Course pathWalk it in order
Look it upDip in anytime
Go furtherLeaves this page
Don't Panic
Don't Panic — Secrets Management
Secrets management is the disciplined handling of values that grant authority: passwords, tokens, private keys, and the like. Before it, those values tend to live in source code, tickets, container images, shared documents, and other places that have never asked to become tiny security departments. The goal is not to build a grander cupboard for strings. It is to control who receives a capability, for how long, and with what evidence.
The useful shape is pleasantly compact. A workload identity proves which software is asking. A policy decides whether that identity may read one named secret in one context. A secret broker then delivers a bounded version through a protected channel and records the decision without recording the value. Storage matters, but it is only one stop on the trip; encrypted bytes do not decide whether a process should have read them.
The surprise is that rotation is not a button labelled rotation. It is a distributed change involving the system that accepts the credential, the broker that stores or issues it, and every consumer that must reload it. A new version sitting safely in a vault is a very well-organized old credential problem. Rotation ends when the new value works and the old value fails.
Static secrets stay valid until somebody replaces them. They suit systems that cannot issue credentials on demand, but they demand careful replacement and consumer reload. Dynamic secrets are generated for a request or identity and commonly expire under a lease. They reduce sharing and improve attribution, while making the broker and its target integration part of runtime availability. When a platform can establish identity directly, it can sometimes remove a stored bootstrap credential altogether. This is the awkwardly named secret zero problem: the first credential used to fetch the other credentials must not be hiding in the application.
Delivery methods each bring their own luggage. An environment variable is widely supported but normally freezes at process start. A mounted file needs the application to reload it. A local agent centralizes renewal and caching, then becomes a local security boundary. An encrypted repository file preserves reviewable ciphertext, while its decryption path remains sensitive. None is magic; they trade different kinds of exposure for different kinds of operational work.
A broker also becomes a dependency. A bounded cache can keep a workload running through a short outage, but it delays revocation. Short leases reduce exposure, but increase issuance load and dependence on the broker. The cheat sheet holds the compact comparison tables and rotation state machine. The slides show the control path and decision sequence. The intro gives the full lifecycle, delivery choices, failure behavior, and adoption path. Read those next before allowing a password to become an accidental architectural committee.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
Sources
- https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html
Supports
- Secret types, centralized management, lifecycle, rotation, revocation, auditing, and detection
- Least privilege, automation, high availability, memory handling, and incident documentation
- https://csrc.nist.gov/projects/key-management/key-management-guidelines
Supports
- Protection and lifecycle guidance for cryptographic keying material
- Separation of cryptographic key management from general credential storage
- https://csrc.nist.gov/pubs/sp/800/57/pt1/final
Supports
- August 2005 publication milestone for SP 800-57 Part 1
- Key lifecycle concerns including protection, compromise, recovery, and destruction
- https://developer.hashicorp.com/vault/docs
Supports
- Static secrets, dynamic credentials, authentication, policy, audit, and deployment roles
- https://developer.hashicorp.com/vault/docs/concepts/lease
Supports
- Lease duration, renewal, expiry, and revocation behavior for dynamic secrets
- https://developer.hashicorp.com/vault/docs/secrets/databases
Supports
- On-demand database credentials, unique attribution, roles, and revocation
- https://www.hashicorp.com/blog/vault-1-0/
Supports
- December 2018 Vault 1.0 milestone and its secrets, encryption, and identity scope
- https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
Supports
- Managed storage, retrieval, rotation, monitoring, and identity policy for application secrets
- Replacement of hard-coded credentials with runtime retrieval
- https://docs.aws.amazon.com/secretsmanager/latest/userguide/whats-in-a-secret.html
Supports
- Secret metadata, encrypted values, versions, and current, previous, and pending labels
- https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets.html
Supports
- Managed and function-based rotation workflows
- https://aws.amazon.com/about-aws/whats-new/2014/11/12/introducing-aws-key-management-service/
Supports
- November 2014 AWS KMS launch, hardware security module protection, integrations, and audit
- https://aws.amazon.com/blogs/aws/aws-secrets-manager-store-distribute-and-rotate-credentials-securely/
Supports
- April 2018 AWS Secrets Manager launch and application credential rotation
- https://aws.amazon.com/about-aws/whats-new/2022/11/aws-kms-external-key-store/
Supports
- November 2022 external key store milestone and external authorization boundary
- https://learn.microsoft.com/en-us/azure/key-vault/general/basic-concepts
Supports
- Azure Key Vault storage, access, administration, auditing, and key lifecycle roles
- https://learn.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates
Supports
- Versioned identifiers and distinctions among keys, secrets, and certificates
- https://learn.microsoft.com/en-us/azure/key-vault/general/secure-key-vault
Supports
- Least privilege, environment separation, recovery controls, monitoring, and rotation guidance
- https://azure.microsoft.com/en-us/blog/?p=5663
Supports
- January 2015 Azure Key Vault public preview milestone
- https://cloud.google.com/secret-manager/docs/best-practices
Supports
- Least privilege, separation of duties, versioning, rotation, replication, and access patterns
- https://cloud.google.com/blog/products/identity-security/introducing-google-clouds-secret-manager
Supports
- Central storage, immutable versions, replication, least privilege, and audit logging
- https://docs.cloud.google.com/secret-manager/docs/release-notes
Supports
- December 2019 beta and March 2020 general availability milestones
- https://kubernetes.io/docs/concepts/configuration/secret/
Supports
- Kubernetes Secret purpose, delivery patterns, default storage caution, and external stores
- https://kubernetes.io/docs/concepts/security/secrets-good-practices/
Supports
- Encryption at rest, least-privilege access, Pod access implications, container scoping, and Base64 limits
- https://kubernetes.io/blog/2020/12/18/kubernetes-1.20-pod-impersonation-short-lived-volumes-in-csi/
Supports
- December 2020 service account token support for CSI driver access to external secret stores
- https://kubernetes.io/blog/2022/08/29/csi-inline-volumes-ga/
Supports
- August 2022 general availability of CSI inline volumes and external secret mounting
- https://spiffe.io/docs/latest/spiffe-about/overview/
Supports
- Workload identity, short-lived identity documents, and trust domains
- https://docs.github.com/en/code-security/secret-scanning/introduction/supported-secret-scanning-patterns
Supports
- Secret scanning pattern coverage and validity checks for exposed credentials
- https://github.com/sindresorhus/awesome
Supports
- Required discovery starting point and Security category route
- https://github.com/devsecops/awesome-devsecops
Supports
- Discovery of SOPS, Conjur, git-secrets, Blackbox, and Chamber as secret-management ecosystem tools
- https://getsops.io/
Supports
- Encrypted structured files and external key-service or age-recipient decryption
- https://www.conjur.org/
Supports
- Policy-controlled application and automation secret access
- https://github.com/awslabs/git-secrets
Supports
- Local commit scanning for prohibited patterns and AWS credential forms
- https://github.com/StackExchange/blackbox
Supports
- GPG-encrypted files stored in version control
- https://github.com/segmentio/chamber
Supports
- Application secret retrieval from AWS Systems Manager Parameter Store
- https://www.hashicorp.com/products/vault
Supports
- Vault product placement, deployment choices, secret engines, and workload access
- https://www.paloaltonetworks.com/idira/machine/secrets-management
Supports
- Palo Alto Networks application and machine credential management placement
- https://www.akeyless.io/
Supports
- Akeyless static, dynamic, and identity-based secrets management placement
- https://infisical.com/
Supports
- Infisical hosted and self-managed application secret delivery placement
- https://aws.amazon.com/secrets-manager/
Supports
- AWS Secrets Manager market placement
- https://azure.microsoft.com/en-us/products/key-vault
Supports
- Azure Key Vault market placement
- https://cloud.google.com/security/products/secret-manager
Supports
- Google Cloud Secret Manager market placement
- https://1password.com/developers/secrets-management
Supports
- 1Password workload and automation secret delivery placement
- https://www.doppler.com/
Supports
- Doppler project and environment secret delivery placement
- https://delinea.com/products/secret-server
Supports
- Delinea privileged credential discovery, access, rotation, and oversight placement
