By NHI Mgmt Group Editorial TeamPublished 2023-10-02Domain: Workload IdentitySource: Entro Security

TL;DR: Secrets management fails when organisations treat vaulting as the finish line: 80% of secrets still slip through the cracks, and automated rotation is needed to shrink exposure windows and support compliance, according to Entro Security. The practical issue is governance, not storage, because centralisation, rotation, monitoring, and least privilege only work when they are operationally coordinated.


At a glance

What this is: This is a secrets management best-practices post that argues vaulting alone is not enough, with centralisation, rotation, monitoring, and access controls as the core safeguards.

Why it matters: It matters because secrets, service accounts, tokens, and certificates are foundational NHI controls, and weak governance here creates exposure across cloud, CI/CD, and downstream identity programmes.

By the numbers:

👉 Read Entro Security's blog post on 9 secrets management strategies


Context

Secrets management is the discipline of controlling where credentials live, who can use them, and how quickly they are rotated or revoked. For NHI programmes, the issue is not just storage, it is whether API keys, tokens, and certificates can be governed as active identities rather than static artefacts.

The article argues that fragmented vaults, hardcoded secrets, weak auditing, and delayed rotation leave organisations with more exposure than they realise. That is a typical failure pattern in machine identity programmes: the environment looks controlled on paper, but secrets are still scattered across code, vaults, and operational workflows.

The strongest part of the post is its insistence that monitoring, centralisation, and least privilege only work when they are tied together. Separate controls do not close the governance gap if the secret itself remains long-lived, overexposed, or hard to trace.


Key questions

Q: How should security teams implement secrets management across distributed environments?

A: Security teams should centralise governance, maintain a complete inventory of secret stores, and map each secret to its workload consumers before changing rotation or access policy. The goal is to make every secret traceable from creation to revocation, including CI/CD, runtime, and vault locations. Without that inventory, policy changes create blind spots instead of control.

Q: When does secret rotation reduce risk in practice?

A: Secret rotation reduces risk when the new credential is deployed everywhere the old one is used and the old credential is revoked immediately. If consumers are not updated together, rotation can break services or leave duplicate trust paths in place. Rotation works best when dependency mapping, automation, and rollback are managed as one process.

Q: What do organisations get wrong about secrets management?

A: They often treat vaulting as a complete solution when it is only one layer. Secrets still leak through hardcoded code, local configuration, logs, and shared operational workflows, so governance fails if inventory, access review, and monitoring are not connected. The real test is whether the organisation can prove where every secret lives and who can still use it.

Q: How do you know if secrets controls are actually working?

A: Look for complete coverage of secret inventory, short exposure windows after disclosure, and consistent rotation outcomes across dependent services. If teams cannot show who uses a secret, where it is stored, and how quickly it is revoked, the control is not working. Effective programmes produce traceable evidence, not just policy statements.


Technical breakdown

Centralised secrets management and the audit problem

Centralised secrets management reduces fragmentation by placing credentials, tokens, and certificates under one governance model rather than many disconnected stores. In practice, the value is not the vault itself but the ability to enforce consistent policy, logging, and review across the full secret inventory. The article correctly notes that multiple vaults often create the illusion of coverage while leaving gaps in visibility. For NHI teams, centralisation matters because auditability is a prerequisite for lifecycle control, incident response, and compliance evidence.

Practical implication: inventory all secret stores and map them to a single ownership model before you try to improve policy enforcement.

Automated secret rotation and exposure window reduction

Secret rotation shortens the period during which a leaked credential remains useful. Manual rotation is slow, error-prone, and difficult to coordinate across dependent services, which is why the operational burden grows as environments scale. The article also hints at a common implementation failure: rotating one secret without updating every consumer can break services. That makes rotation a choreography problem, not just a scheduling problem. Effective secrets management treats expiry, dependency mapping, and rollback as one control surface.

Practical implication: build rotation workflows that update all downstream consumers together, not as isolated credential changes.

Context-aware access controls for NHI credentials

Context-aware access controls adapt access decisions based on runtime signals such as user behaviour, location, and access timing. For secrets management, that means access to a secret should not be treated as a permanent entitlement once it is issued. The article’s point is that static permissions leave too much room for misuse, especially where secrets support cloud services or automated workloads. This is a classic NHI governance problem because the identity is not the person requesting access but the workload or service account using the secret.

Practical implication: require conditional access and anomaly-triggered step-up controls for secrets that support high-risk workloads.


Threat narrative

Attacker objective: The attacker aims to turn a single exposed secret into broad access across applications, cloud services, or data stores.

  1. Entry occurs when an attacker or insider obtains exposed credentials from code, a vault gap, or another unmanaged location.
  2. Escalation follows when a long-lived secret is reused across services, allowing the actor to move from one system to additional resources.
  3. Impact occurs when overexposed secrets enable unauthorized access, data theft, or service disruption across connected workloads.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Secrets sprawl is not a storage problem, it is a governance failure. The article is right to treat vaults as incomplete if they do not cover every secret, every consumer, and every lifecycle event. Fragmented control creates false confidence because the organisation thinks it has secured the secret while the real issue is that nobody can prove where it lives or who can still use it. The practitioner conclusion is that secrets governance must be treated as an identity programme, not a tooling add-on.

Context-driven rotation is the right mental model for machine identities. The article’s strongest idea is that rotation only works when you know which application uses which secret and which cloud service depends on it. That is a better operational model than generic cadence-based rotation because secret value is tied to dependency context, not calendar time. The practitioner conclusion is to govern secrets by usage path, not by isolated asset lists.

Zero trust only helps if secrets are no longer treated as standing trust. The post’s zero-trust framing matters because secrets are the mechanism that often collapses verification back into persistent trust. If a token or certificate can be reused without re-evaluating context, the control model has already weakened. The practitioner conclusion is to align secrets governance with continuous verification, not one-time issuance.

Least privilege fails when entitlement scope is broader than the secret’s actual use. The article points to granular permissions, but the deeper issue is that many organisations assign access at the vault or application level instead of the workload level. That creates excess reach, especially when the same secret is shared across services. The practitioner conclusion is to define access at the smallest viable NHI boundary.

Identity blast radius: a single leaked secret can become a multi-system access path when ownership, dependency mapping, and rotation are weak. That is the concept this post exposes most clearly. The practical meaning is that the security question is no longer whether a secret exists, but how far it can travel before control catches up. The practitioner conclusion is to reduce the blast radius, not just count secrets.

From our research:

  • 64% of valid secrets leaked in 2022 are still valid and exploitable today, proving that detection alone is not enough without automated revocation, according to The State of Secrets Sprawl 2026.
  • 28% of secrets incidents now originate outside code repositories, in Slack, Jira, and Confluence, and are 13% more likely to be categorised as critical than code-based leaks.
  • A useful follow-on is Guide to the Secret Sprawl Challenge, which helps teams move from discovery to dependency-aware remediation.

What this signals

Secret sprawl now behaves like an identity distribution problem. Once secrets move across repositories, collaboration tools, and runtime systems, the programme no longer fails at a single control point. Teams need inventory, ownership, and revocation evidence to keep the control plane ahead of exposure.

With 28.65 million new hardcoded secrets detected in public GitHub commits in 2025, the operational assumption that code review will catch credential leakage is no longer credible. The better signal is whether secrets governance can shrink exposure windows before attackers or internal misuse can reuse them.

Context-aware rotation will matter more as machine identities multiply. The real operational question is whether a secret can be rotated safely without breaking the service that depends on it. Teams that cannot map dependencies today will struggle most as cloud and automation estates continue to expand.


For practitioners

  • Inventory every secret store Build a complete inventory of vaults, CI/CD variables, config files, and application runtime stores so no secret category sits outside governance.
  • Map secret consumers before rotation Document every application, service, and cloud dependency using each secret so rotation can be coordinated without breaking downstream access.
  • Replace standing trust with conditional access Apply context-aware access checks and anomaly-triggered review to high-risk secrets, especially those supporting cloud services and automation.
  • Shorten the valid lifetime of exposed credentials Use automated rotation and revocation workflows so leaked secrets become useless quickly, with rollback steps for dependent services.
  • Review over-shared NHI permissions Compare actual secret usage against granted entitlements and remove broad vault or application-level access that exceeds workload need.

Key takeaways

  • Secrets management fails when organisations confuse vaulting with governance and leave credentials scattered across code, collaboration tools, and runtime systems.
  • The scale of the problem is operational as much as technical, because leaked secrets remain useful until revocation and dependency updates are coordinated.
  • Practitioners should focus on traceability, contextual access, and automated revocation to reduce the blast radius of every exposed secret.

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 Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01The article centres on secret sprawl, rotation, and overexposure of machine credentials.
NIST CSF 2.0PR.AC-4Least-privilege access and credential governance align directly with this article.
NIST Zero Trust (SP 800-207)The article's zero-trust framing depends on continuous verification of secret use.

Use continuous verification and context-aware checks for secrets that grant access to critical systems.


Key terms

  • Secret Sprawl: Secret sprawl is the uncontrolled spread of credentials across code, vaults, collaboration tools, and runtime environments. It becomes a governance problem when no team can prove where secrets exist, who owns them, or whether they are still valid.
  • Context-Aware Access Control: Context-aware access control changes access decisions based on runtime signals such as usage pattern, location, or timing. For secrets management, it means access to a credential should be limited by the workload and situation, not just by a static role or group.
  • Identity Blast Radius: Identity blast radius is the amount of access that can be gained when one credential is exposed or misused. In secrets management, it measures how far a leaked token, key, or certificate can move before detection, revocation, or containment stops it.

What's in the full article

Entro Security's full blog post covers the operational detail this post intentionally leaves for the source:

  • Step-by-step discussion of centralised secret vaulting and the trade-offs of single-repository governance.
  • Implementation detail on automated rotation and how to avoid service disruption when multiple systems share one secret.
  • Practical examples of context-aware access controls and real-time monitoring patterns for secret usage.
  • The vendor's own walkthrough of context-driven rotation and anomaly detection workflow design.

👉 The full Entro Security post covers centralisation, rotation, monitoring, and access-control examples in more operational detail.

Deepen your knowledge

NHI governance, agentic AI identity, and machine 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 2023-10-02.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org