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
Intro
Secrets Management
A secret is a value whose possession grants access or enables a protected operation. Database passwords, API keys, signing keys, private keys, and bearer tokens are common examples. Secrets management controls these values from creation through revocation and destruction.
The useful mental model is identity requests capability, policy permits access, and a broker delivers a bounded secret.
human or workload identity
|
v
authentication -> authorization policy -> secret broker
| |
audit event version
| |
v v
protected service
The broker may be a managed cloud service, a self-hosted vault, a platform facility, or an encrypted-file workflow. The architecture matters less than the controls it preserves: authenticated access, least privilege, encryption, versioning, rotation, revocation, availability, and useful audit records.
Why configuration storage is not enough
Ordinary configuration tells software how to behave. A secret proves authority. Copying a database password into source code, an image, a ticket, or a shared configuration file creates another uncontrolled credential copy.
Encryption at rest protects stored bytes from some storage-layer disclosure. It does not decide which workload may retrieve a secret, prevent an authorized process from logging it, or rotate the credential at the system that accepts it. Secrets management combines protected storage with identity, policy, delivery, lifecycle, and evidence.
Base64 encoding is not encryption. Environment variables are a delivery mechanism, not a vault. A Kubernetes Secret is intended for confidential data, but its values require encryption at rest, restrictive role-based access control, and careful container scoping. The application must still protect a value after reading it.
The control path
Secrets management begins before a value exists.
Continue the course
This section is part of the paid course.
See pricing to subscribe, or log in if you already have access.
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
