Independent analysis by NHI Mgmt GroupSource article: Doppler, “The 5 pillars of secrets management” (July 29, 2026)

TL;DR: Secrets sprawl remains a structural failure in modern programmes, according to Doppler, because storage, access control, delivery, lifecycle automation and auditability are often implemented as isolated tasks rather than one governed system. Static secrets only become manageable when exposure, rotation and logging are treated as linked controls, not separate chores.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Doppler's blog post: Secrets sprawl becomes manageable only when storage, access, delivery, rotation and auditability operate as one system.

Why it matters: IAM, PAM and platform teams need a single lifecycle view of secrets because isolated controls leave long-lived credentials exposed, over-privileged and difficult to trace.


Context

Secrets management breaks down when organisations treat vaulting, access policy, runtime delivery and rotation as disconnected tasks. A secret can be encrypted and still be operationally unsafe if its lifecycle, scope and usage are not governed together.

The core governance problem is not whether a vault exists. It is whether the programme can answer where a secret lives, who can retrieve it, how long it remains valid and where it may have leaked across the development lifecycle.

This is an NHI governance problem because service accounts, API keys, tokens and certificates behave like identities with lifecycles, not static configuration values. Secrets management guide helps frame that distinction before the controls are broken into layers.


Key questions

Q: How do I reduce secrets sprawl across repositories and pipelines?

A: Consolidate API keys, tokens and certificates into a single controlled secrets system, then remove hard-coded values from repositories and CI/CD variables. Enforce short-lived credentials, secret scanning in commits and build logs, and automatic rotation on a set schedule or after exposure. Use one governed vault for issuance, retrieval and revocation so pipelines fetch secrets at runtime instead of copying them everywhere.

Q: What is the difference between dynamic secrets management and static secret storage?

A: Dynamic secrets management issues credentials that are time bound, renewable, and revocable, while static secret storage keeps the same secret available until someone changes it manually. The dynamic model better fits cloud and DevOps environments because access can expire automatically, reducing the window for misuse and improving control over distributed application access.

Q: How does least privilege apply to service account credentials?

A: Least privilege for service account credentials means each credential can only call the specific APIs, hosts or data stores it needs, and only for the shortest time necessary. That usually means scoped tokens, per-workload service accounts, just-in-time elevation where possible, and rapid rotation or revocation when a job finishes or is replaced.

Q: What should teams do when a secret may already be exposed?

A: They should assume the secret is compromised until proven otherwise, revoke it, rotate dependent credentials, and check for secondary copies across repositories, tickets, and collaboration tools. The goal is to limit reuse before an attacker can convert exposure into access. Waiting for confirmation usually gives the attacker more time than defenders have.


Technical breakdown

Why centralised storage changes the attack surface

Centralised storage matters because the location of a secret determines how many systems can leak it, log it or copy it. Secrets scattered across source code, environment variables, CI pipelines and collaboration tools create multiple disclosure paths and make ownership unclear. A vault does not solve the problem by itself. It only becomes effective when it is the authoritative place for retrieval, encryption and policy enforcement, instead of a passive repository for values that still circulate everywhere else. Read Guide to the Secret Sprawl Challenge.

Practical implication: Map every secret location and collapse duplicate storage paths into one governed retrieval source.

How least privilege works for service accounts and pipelines

Secrets access control should limit who or what can retrieve a credential, where it can be used and for how long. In practice, that means treating pipelines, workloads and service accounts as distinct identities with different access boundaries. RBAC helps when access patterns are stable, but dynamic secrets narrow the window further by issuing credentials on demand and expiring them automatically. The important point is that privilege is not just about who can read the secret. It is also about the environment, timing and downstream systems that can consume it. See the API Key Management Guide.

Practical implication: Separate human, pipeline and workload access paths and enforce environment-scoped retrieval rules.

Why runtime delivery beats embedded credentials

Orchestration is the mechanism that moves credentials into the right place at the right moment without leaving them behind in code, logs or long-lived variables. That is why delivery controls belong in the build and runtime path, not only in the vault. Secure delivery also has to account for the places teams forget to monitor, including repositories, chat tools and ticketing systems. The mechanism is simple: inject only what is needed at execution time and keep scanning for anything that escaped those controlled paths.

Practical implication: Shift credential delivery to runtime injection and extend scanning beyond repositories into collaboration tools.


Threat narrative

Attacker objective: The objective is persistent access through a reusable secret that survives beyond its intended operational window.

  1. Entry begins when a secret is exposed in source code, configuration files, a CI pipeline or a collaboration tool, creating a retrievable credential outside the intended vault boundary.
  2. Credential access follows when the exposed secret is reused as a standing authenticator, often with permissions broader than the original task or environment required.
  3. Escalation occurs when the same secret is accepted across multiple systems, allowing the compromise to spread from one workflow into production access or downstream services.
  4. Impact is the loss of containment: attackers or unauthorised insiders can reuse the credential until it is rotated, revoked or invalidated.
  • Rabbit R1 hard-coded API keys 2024: Rabbit R1 source code leaked by an employee held working ElevenLabs, Azure, Yelp and Google Maps API keys; an email key was misused, Rabbit says.
  • Toyota T-Connect key exposure 2022: A subcontractor left a T-Connect server key on public GitHub from 2017 to 2022; 296,019 customers' emails were exposed, misuse unknown.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Secrets management fails when organisations treat credentials as inventory instead of governed identity objects. The article's five-pillar model is useful because it shows that storage, access, delivery, lifecycle and auditability are failure points in the same system. If one pillar is missing, the others compensate poorly and the secret remains exploitable longer than teams expect. The practitioner conclusion is that secrets governance has to be designed as a lifecycle, not as a vault project.

Secret sprawl is the named failure mode this model exposes. Sprawl is not just a volume problem; it is a governance problem caused by distributed ownership, multiple storage locations and inconsistent retrieval paths. The result is that no one can reliably answer where a secret exists, who can use it, or whether it still belongs in circulation. The practitioner implication is that inventory and lifecycle control must be unified before policy can be enforced credibly.

Centralisation only works when access is identity-bound and time-bound. A central vault that still hands out long-lived credentials simply concentrates risk in a cleaner interface. The governance shift is from static access lists to short-lived, context-aware retrieval decisions tied to workload and environment. The practitioner conclusion is that access scope and credential lifetime must be governed together, not sequentially.

Automation is the difference between an exposed secret and an enduring one. Manual rotation fails because it depends on people noticing the leak, coordinating replacement and updating every dependent system before reuse occurs. That delay is why exposed credentials remain valuable long after discovery. The practitioner conclusion is that lifecycle automation must be treated as a containment control, not an administrative convenience.

Visibility closes the loop only when audit logs are operational, not archival. Logs matter because they reveal which identities actually used which secrets, from where and when, which is the basis for access review and anomaly detection. Without that feedback loop, teams cannot distinguish active secrets from dormant ones or prove that revocation worked. The practitioner conclusion is that auditability has to feed governance decisions continuously.

From our research library:

What this signals

Secret sprawl will keep widening the gap between policy and practice. Teams that rely on separate controls for storage, delivery and rotation will keep discovering that one exposed credential can survive across multiple systems because no single process owns its full lifecycle.

Lifecycle automation is becoming the real containment layer. The average estimated time to remediate a leaked secret is 27 days, according to the State of Secrets in AppSec. That delay is long enough for exposure to become reuse, so practitioners need credential replacement to move at the speed of discovery.

Governance will increasingly depend on retrieval telemetry, not just vault presence. A vault without usable logs cannot tell you whether a secret is still active, who consumed it or which dependency still trusts it. The next maturity step is to turn secret access data into an operational control input.


For practitioners

  • Consolidate secret storage paths Inventory every place credentials currently live, including source repositories, environment files, CI systems, chat tools and container images, then move retrieval to one governed control plane.
  • Scope access by identity and environment Separate human, pipeline and workload access rules so a secret can only be retrieved by the identity that needs it, in the environment where it is valid, for the shortest practical duration.
  • Replace embedded delivery with runtime injection Deliver secrets at execution time instead of hardcoding them into code, configuration or long-lived environment variables, and keep scanning for exposures outside the controlled workflow.
  • Automate rotation and revocation flows Use short-lived dynamic secrets where possible, and wire rotation so leaked credentials can be replaced immediately across dependent systems instead of waiting for a manual cycle.
  • Make audit logs usable for access review Forward secrets access logs into SIEM and review them for stale access, unusual retrieval patterns and identities that no longer need the credential.

Key takeaways

  • Secrets management fails when teams manage storage, access and rotation as isolated tasks instead of one governed lifecycle.
  • The article's strongest point is that secret sprawl multiplies exposure paths, slows response and extends the life of compromised credentials.
  • Practitioners should focus on centralised retrieval, short-lived credentials and audit data that can actually drive revocation decisions.

Related NHI Mgmt Group resources: Guide to the Secret Sprawl Challenge · API Key Management Guide · Secrets Management Guide · Ultimate Guide to NHIs: Lifecycle Processes for Managing NHIs


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 addresses the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageSecrets in code, CI and collaboration tools are the leakage problem this framework names.
NHI-05 — Overprivileged NHIThe post's least-privilege guidance maps directly to over-scoped service accounts and pipeline identities.
NHI-07 — Long-Lived SecretsStatic credentials and slow rotation are central to the article's lifecycle risk model.
Recommendation — Scan every storage path for leaked secrets and revoke any exposed credential immediately. Reduce NHI privilege to the minimum scope needed for each workload and environment. Replace long-lived secrets with short-lived credentials and enforce automated expiry.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsSecrets access depends on entitlement scoping for humans, pipelines and workloads.
DE.CM-01 — Network and Environment MonitoringAuditability and log forwarding support continuous monitoring of secret usage and exposure.
Recommendation — Review entitlements so only authorised identities can retrieve each secret. Forward secrets access logs into monitoring tools and watch for unusual retrieval patterns.
CIS Controls v8CIS-5 — Account ManagementSecrets governance depends on knowing which accounts and service identities still need access.
Recommendation — Remove unused accounts and stale access paths that still trust exposed credentials.

Key terms

  • Dynamic Secret: A secret generated on-demand for a specific task and automatically revoked after use or expiry. Dynamic secrets dramatically reduce the risk of credential exposure compared to static, long-lived secrets and are considered best practice.
  • Secrets Auditability: Secrets auditability is the ability to see who accessed, used, changed or revoked a secret, and when. It usually relies on immutable logs from the secrets system, including request identity, secret version, retrieval events and rotation actions, so owners can trace exposure and verify control over API keys, tokens and certificates.
  • Centralised Secrets Storage: Centralised secrets storage is a single managed repository for credentials such as API keys, tokens and certificates. It stores secrets separately from code and configuration, controls access with policy and logging, and supports retrieval at runtime, rotation and revocation across applications, pipelines and workloads.
  • Static Secret: A secret, such as an API key or password, that does not change automatically over time. Static secrets require manual or scheduled rotation and represent a higher security risk than dynamic secrets or managed identities.

Deepen your knowledge

NHI governance, secrets management, and workload identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 7, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org