Subscribe to the Non-Human & AI Identity Journal

When should organisations add dynamic secrets alongside MSI?

They should add dynamic secrets when workloads span multiple clouds, legacy systems, or shared operational paths that MSI cannot govern on its own. Dynamic issuance gives teams a central control point for policy, revocation, and observability where platform-native identity stops at the cloud boundary.

Why This Matters for Security Teams

Managed identity can be the right default inside a single cloud, but it stops being sufficient when a workload must reach SaaS APIs, on-prem systems, partner services, or shared automation paths. That is where dynamic secret become the control plane for access, revocation, and auditability. NHI Management Group’s analysis of the Secret Sprawl Challenge shows how quickly credentials multiply when teams rely on ad hoc exceptions instead of a governed issuance model. OWASP’s Non-Human Identity Top 10 also reinforces that non-human access fails most often at the boundary between convenience and control.

The practical question is not whether MSI is useful, but whether it can express the full access path. When a service identity cannot be projected into another trust domain, dynamic secrets provide a way to issue narrow, short-lived credentials with clear ownership and expiry. That matters most for shared runners, cross-account pipelines, and legacy targets that do not understand cloud-native identity tokens. In practice, many security teams encounter secret reuse only after a pipeline or integration path has already been expanded beyond the original cloud boundary.

How It Works in Practice

The usual pattern is to keep MSI as the primary workload identity inside the cloud platform, then layer dynamic secrets where that identity cannot be consumed directly. The workload authenticates with MSI first, then requests an ephemeral secret from a broker, vault, or policy engine. The secret is issued for a specific purpose, TTL, and target system, then revoked automatically when the task ends or the lease expires.

This approach is most effective when the secret broker is tied to runtime context rather than a static role map. Current guidance suggests that authorization should consider the workload, target system, environment, and task state at the moment of issuance. That is why teams often pair dynamic secrets with policy-as-code controls and workload identity primitives such as SPIFFE. For implementation patterns, SPIFFE workload identity and the NHI Management Group view on Static vs Dynamic Secrets are useful reference points.

  • Use MSI for the cloud-native baseline where the platform already issues trusted workload identity.
  • Add dynamic secrets when a target requires a password, token, certificate, or API key that MSI cannot present directly.
  • Set short TTLs and automatic revocation so access ends with the task, not the account lifecycle.
  • Log issuance, renewal, and revocation events centrally so security teams can trace who got what, when, and why.

Where this model becomes especially valuable is in CI/CD, shared operational tooling, and hybrid integrations that cross trust domains. These controls tend to break down when a legacy system requires long-lived credentials that cannot be rotated without service disruption because the access path itself was never designed for ephemeral identity.

Common Variations and Edge Cases

Tighter dynamic-secret controls often increase operational overhead, requiring organisations to balance stronger revocation and auditability against integration complexity and application change effort. That tradeoff is most visible when teams try to standardize one credential model across cloud services, mainframe-style systems, and third-party platforms. In those cases, the best practice is evolving rather than universal.

Some environments can rely on MSI alone, especially when all downstream services accept federated identity and policy can be enforced consistently at the platform layer. Others need a hybrid model where MSI proves workload identity, but dynamic secrets bridge the gap for external databases, SSH access, or services that only accept secrets. The key is to avoid treating dynamic secrets as a universal replacement. They are a compensating control for trust boundaries, not a substitute for eliminating unnecessary standing access.

For breach-driven perspective, NHI Management Group’s 52 NHI Breaches Analysis is a useful reminder that credential exposure is usually a lifecycle problem, not just a storage problem. The operational rule is simple: if MSI cannot be consumed natively, or if a shared path would otherwise force standing credentials, introduce dynamic issuance. The exception is stable, platform-native access where the added broker would create more risk than it removes.

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 AI RMF 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 weaknesses when MSI cannot cover all targets.
NIST CSF 2.0 PR.AC-1 Dynamic secrets support controlled access for non-human workloads.
NIST AI RMF GOVERN Hybrid identity decisions need ownership and lifecycle governance.

Use short-lived, centrally revocable secrets whenever a workload crosses identity boundaries.