Subscribe to the Non-Human & AI Identity Journal

Why do vaults not solve secrets security on their own?

Vaults centralise storage, but they do not control where a secret goes after it is retrieved. Secrets can still appear in logs, environment variables, command lines, caches, and deployment artefacts. That is why vault adoption must be paired with discovery, rotation, audit logging, and downstream leakage controls.

Why Vaults Help, and Why They Do Not Finish the Job

Vaults are useful because they reduce hard-coded secrets and give security teams one place to store, issue, and revoke credentials. The problem is that retrieval is only one step in the lifecycle. Once a secret is released to an application, pipeline, shell, or agent, the vault no longer controls every copy, redirect, cache, or log line that follows.

This is why vaults should be treated as one control inside a broader secrets architecture, not as the architecture itself. NHI Management Group has documented how secrets spread into code commits, ticketing systems, and collaboration tools in Guide to the Secret Sprawl Challenge, and vendor research in the 2025 State of NHIs and Secrets in Cybersecurity found that 62% of secrets are duplicated across multiple locations.

Current guidance from the OWASP Non-Human Identity Top 10 aligns with this reality: the risk is not just storage, but exposure after issuance. In practice, many security teams discover the weakness only after a leaked token has already been copied into a build log, pasted into a ticket, or reused by an automated workflow.

How Vaults Fit Into a Real Secrets Security Model

A vault works best when it is paired with controls that manage the full secret lifecycle: discovery, classification, issuance, rotation, revocation, and downstream detection. The operational question is not only “is the secret stored centrally?” but also “where can that secret travel after retrieval, and who can observe it?” That is why the strongest programs combine vaults with secret scanning, short TTLs, workload identity, and logging controls that avoid emitting sensitive material.

In practice, mature teams use a vault to broker access at runtime and then reduce the usefulness of the secret if it escapes. For example, a build system should retrieve a short-lived token only when needed, use it for one task, and revoke it immediately after completion. Static credentials should be replaced wherever possible with dynamic credentials or workload-issued tokens, because the smaller the lifetime, the smaller the blast radius. The Ultimate Guide to NHIs — Static vs Dynamic Secrets explains why long-lived secrets fail under modern automation, and OWASP’s NHI guidance reinforces that retrieval without containment still leaves exposure paths open.

  • Scan source, images, CI/CD logs, tickets, and chat tools for leaked secrets.
  • Prefer ephemeral issuance over reusable static values wherever possible.
  • Enforce revocation and rotation on completion, not on a fixed annual schedule alone.
  • Block secrets from entering logs, environment snapshots, and deployment artefacts.
  • Monitor for duplication so one leaked secret does not persist in several systems.

For implementation detail, the OWASP Non-Human Identity Top 10 is a useful baseline, and the broader NHIMG breach analyses show how quickly a single exposed credential can become a multi-system incident when pipeline trust is too broad. These controls tend to break down when teams treat vault retrieval as proof of protection, because the highest-risk copies usually appear outside the vault in automation and collaboration tooling.

Where Vault-Only Thinking Breaks Down

Tighter secrets handling often increases operational overhead, requiring organisations to balance faster developer workflows against stronger containment and observability. That tradeoff becomes visible in environments with many short-lived build jobs, multi-cloud automation, or agentic AI systems that call tools dynamically. In those settings, a secret may be valid for only minutes, but it can still be replayed instantly if it is logged, cached, or handed to another process.

Best practice is evolving toward secret minimisation rather than secret centralisation alone. Some teams will use a vault for legacy systems while moving new workloads to workload identity and policy-based access. Others will keep secrets in a vault but add detection for shell history, CI variables, container layers, and chat exports. The 2024 survey on secrets management reports that only 44% of organisations use a dedicated secrets management system, which helps explain why vault adoption often outpaces governance maturity.

There is no universal standard for this yet, but the direction is clear: vaults solve storage, not exposure, and exposure is where most real incidents happen. The 52 NHI Breaches Analysis and the CI/CD pipeline exploitation case study both illustrate how quickly secrets escape once automation touches them. In practice, vault-only programs usually fail first in CI/CD, where environment variables, debug output, and copied tokens create invisible persistence outside the vault.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Addresses secret lifecycle gaps that vault storage alone does not close.
NIST CSF 2.0 PR.AC-1 Access control must extend beyond the vault to where secrets are used and leaked.
NIST CSF 2.0 DE.CM-8 Secret leakage detection depends on monitoring external to the vault boundary.

Pair vaults with discovery, rotation, and revocation so exposed secrets lose value quickly.