Subscribe to the Non-Human & AI Identity Journal

When should organisations move from secret rotation to secretless access?

Organisations should move when rotation still leaves too many valid copies, too much reuse across environments, or too much reliance on manual cleanup. At that point, rotation is managing symptoms. Secretless access is the better choice when the workload can prove its runtime identity and receive short-lived access instead.

Why This Matters for Security Teams

Secret rotation remains useful, but it stops being effective when the same credential exists in multiple places, is reused across pipelines, or survives long enough for an attacker to harvest it after issuance. At that point, the problem is not just rotation cadence. It is that the workload still depends on a secret as a standing proof of access. Current guidance from the OWASP Non-Human Identity Top 10 and NHIMG’s Guide to the Secret Sprawl Challenge points to the same operational risk: secrets sprawl creates more exposure than most teams can reliably see or revoke.

NHI Management Group research also shows why this transition matters. In the 2024 State of Secrets Management Survey, 88% of organisations said they are concerned about secrets sprawl, which is a strong signal that manual rotation alone is not closing the gap. The key question is whether the workload can prove what it is at runtime and receive short-lived access instead of carrying a reusable secret forward. In practice, many security teams encounter secretless access only after a leaked credential has already spread across environments.

How It Works in Practice

Secretless access works by shifting trust from a stored secret to runtime identity. Instead of embedding a password, API key, or long-lived token into a workload, the workload authenticates with cryptographic proof of identity and receives ephemeral access for a specific task. That runtime proof may come from workload identity standards such as SPIFFE/SPIRE, OIDC-based federation, or cloud-native identity brokers. The practical goal is to replace static credentials with short-lived authorization that can be issued, scoped, and revoked automatically.

This is where secret rotation and secretless access diverge. Rotation still assumes a secret exists and must be replaced periodically. Secretless access removes the secret from the steady state. That matters for CI/CD systems, containers, agentic workloads, and multi-cloud services where copying a secret into logs, configs, caches, or sidecars creates persistent risk. NHIMG’s Guide to NHI Rotation Challenges and Ultimate Guide to NHIs — Static vs Dynamic Secrets show why dynamic credentials are increasingly preferred when workload identity can be validated at request time.

  • Use workload identity as the primary authenticator, not a stored shared secret.
  • Issue short-lived credentials only when the workload is active and authorized.
  • Evaluate policy at request time so access reflects current context, not yesterday’s entitlements.
  • Revoke access automatically when the job, pod, or agent completes.

That model aligns with zero standing privilege and reduces cleanup burden after compromise. Where teams still need secrets, rotation remains a control, but it should not be the only control protecting a machine identity. These controls tend to break down when workloads are copied across environments without a reliable runtime identity source, because the trust anchor disappears and teams fall back to shared credentials.

Common Variations and Edge Cases

Tighter secretless controls often increase integration effort, so organisations have to balance reduced credential exposure against the operational cost of reworking legacy applications. That tradeoff is real, especially in mixed estates where some services can prove identity natively and others cannot.

Best practice is evolving, but there is no universal standard for immediate secretless migration. Some workloads still need rotation as an interim control, particularly when vendors only support static API keys or when platform constraints prevent workload attestation. In those cases, rotate aggressively, limit scope, and pair rotation with strong detection for reuse and leakage. For mature environments, secretless access becomes the better choice when the workload can authenticate via runtime identity and access can be granted just in time. That approach is consistent with NHI Lifecycle Management Guide and the broader direction described in the Ultimate Guide to NHIs.

The practical decision point is not whether rotation is “bad.” It is whether rotation still leaves too many valid copies, too much reuse across environments, or too much manual cleanup to be reliable. When that is true, the organisation has outgrown rotation and should move to secretless access for workloads that can prove their identity at runtime.

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 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Covers over-reliance on static secrets and weak rotation practices.
CSA MAESTRO Addresses agent and workload identity patterns that enable secretless access.
NIST AI RMF Runtime identity and access decisions support trustworthy AI and automated workload governance.

Apply runtime policy and accountability controls before extending autonomous systems access to sensitive resources.