Glossary termPractice

Secrets Management

Tools and practices for securely storing, distributing, rotating and auditing credentials such as passwords, API keys, tokens and encryption keys.

In software operations, a secret is any credential that grants access to something valuable: database passwords, API keys, cloud access tokens, TLS private keys, SSH keys and encryption keys. Secrets management is the discipline of keeping these out of the wrong hands while still delivering them to the applications and people that legitimately need them. It covers where secrets are stored, how they are injected into running systems, who can read them, how often they change and how their use is logged.

A persistent problem is secrets embedded in source code or configuration files, where they end up in version control history, build logs and container images; leaked keys in public repositories are a frequent cause of breaches, which has led code platforms to scan for them automatically. Dedicated tools such as HashiCorp Vault and the secret stores offered by cloud providers keep secrets in encrypted central vaults, enforce access policies and record every access. Some systems issue dynamic secrets, short-lived credentials generated on request and revoked automatically, which limit the damage if one is stolen.

Good practice includes granting each workload only the secrets it needs, in line with the principle of least privilege, rotating credentials regularly and after any suspected exposure and preferring identity-based access over shared static keys. Container platforms provide secret objects, but in Kubernetes, for example, these are stored unencrypted by default unless encryption at rest is configured. CI/CD pipelines are a particular concern because they often hold powerful credentials. For individuals, a password manager applies similar principles to personal accounts.

Key points

  • Hardcoded secrets in source code and repositories are a common cause of security breaches.
  • Central vaults encrypt secrets, enforce access policies and log every access.
  • Short-lived dynamic credentials reduce the harm a stolen secret can cause.
  • Regular rotation and least-privilege access limit the scope of any exposure.

Related entries

Glossary term

Encryption

CybersecurityOPSECDevOps

The process of transforming readable data into ciphertext so that only parties holding the correct key can recover and understand it.

Glossary term

Principle of Least Privilege

CybersecurityDevOps

Security principle that every user, program and process should have only the minimum access rights needed to perform its legitimate function.

Glossary term

Password Manager

OPSECCybersecurity

Software that generates, stores and fills strong, unique passwords and other secrets in an encrypted vault protected by one master credential.

Glossary term

Automated sequence of stages that builds, tests and releases software changes, combining continuous integration with continuous delivery or deployment.

Glossary term

DevSecOps

DevOpsCybersecurity

Extension of DevOps that integrates security practices and automated security testing throughout the software development and delivery life cycle.

Glossary term

Zero Trust

CybersecurityDevOps

Security model that treats no user, device or network location as trusted by default and verifies every access request continuously.

Technology

Kubernetes

DevOpsFOSS

Open-source system for automating deployment, scaling and management of containerized applications across clusters of machines.

Featured in guides

Referenced by

Other entries that discuss or point to Secrets Management.