TL;DR: DevOps teams still manage workloads with static credentials even though non-human identities now outnumber humans 45:1, and that mismatch makes least privilege hard to enforce across cloud, SaaS, and CI/CD environments, according to Aembit. The practical break point is structural: dynamic, policy-driven access is the only model that scales with modern workload identity.
At a glance
What this is: This is an analysis of why least privilege breaks down for workloads and why ephemeral, policy-driven access is presented as the workable alternative.
Why it matters: It matters because IAM and NHI programmes still inherit human-era control assumptions, while workloads, containers, and CI/CD jobs now need identity governance that matches machine speed and short-lived access patterns.
By the numbers:
- Workloads now outnumber human users 45:1, according to Aembit.
Context
Least privilege depends on matching access scope to the identity that is using it. For workloads, that model breaks when access is still anchored in static credentials, shared service accounts, and permissions that outlive the task they were meant to support.
The governance gap is not just technical. DevOps teams are asked to secure identities that spin up and down continuously, cross cloud and SaaS boundaries, and often authenticate through secrets that were never designed for that operating model.
This makes workload identity a lifecycle problem as much as an access problem. The article’s starting position is typical of modern delivery teams: they have distributed execution, but they still manage identity as if systems were stable and human-paced.
Key questions
Q: What breaks when workloads still rely on static credentials for service-to-service access?
A: Static credentials break down when workloads are ephemeral, distributed across multiple environments, or expected to authenticate without preconfigured secrets. They are difficult to rotate safely, easy to expose in configuration or environment variables, and poorly matched to dynamic infrastructure. The result is brittle access control, weaker auditability, and a larger attack surface for compromise and lateral movement.
Q: Why do static credentials create more risk in CI/CD and Kubernetes environments?
A: Static credentials are copied into many places, reused by many systems, and difficult to revoke cleanly once they spread. In CI/CD and Kubernetes, that persistence increases blast radius because one exposed secret can unlock multiple workloads, environments, or cloud resources.
Q: How do security teams know whether least privilege is actually working?
A: Least privilege is working when identities have narrowly scoped permissions, unused credentials are removed or quarantined, and repeated access reviews consistently shrink entitlements. A good signal is whether a compromised identity would be unable to move beyond one bounded workflow. If broad resource reach still exists, the control is not effective.
Q: How should organisations reduce dependence on shared service accounts?
A: They should assign identity and permissions to the workload or task, not to a reusable account that several systems inherit. Shared service accounts hide ownership, blur accountability, and make offboarding unreliable. A cleaner model is task-scoped access with short-lived credentials and explicit policy boundaries.
Technical breakdown
Why static credentials undermine workload least privilege
Static credentials assume the identity, task, and access scope remain stable long enough to be provisioned, reviewed, and rotated. Workloads do not behave that way. Containers, functions, CI/CD jobs, and service-to-service calls change rapidly, so long-lived API keys and embedded passwords create broad, durable access that is difficult to constrain at issuance time. Once a secret is copied into a pipeline, config file, or image, the control surface shifts from identity governance to secret hunting.
Practical implication: Treat static credentials as the architectural cause of least-privilege failure, not as a tuning problem.
What secret zero means for workload authentication
Secret zero is the bootstrap problem where a workload needs an initial secret to authenticate to a vault, broker, or downstream service. That first secret usually has to live somewhere persistent, which reintroduces the very exposure the control was meant to remove. The article frames this as a structural limitation of secrets-based design: even mature secrets management still depends on stored trust before dynamic trust can begin. The result is a chain that starts with static material and only later becomes ephemeral.
Practical implication: Design workload authentication so the bootstrap step does not depend on a reusable secret.
How policy-driven access changes the identity model
Policy-driven access shifts the decision from a stored credential to a runtime judgment. A workload proves its identity, a provider validates context, and a short-lived credential is issued only for the task that is actually happening. That changes the control point from perpetual entitlement to time-bound authorisation. In practice, this is the difference between a role that persists and a credential that exists only long enough to complete one exchange. For workload identity, that is the mechanism that makes least privilege operational rather than aspirational.
Practical implication: Move from standing privileges to task-scoped issuance with automatic expiry.
Threat narrative
Attacker objective: Obtain durable access through workload credentials that can be reused across environments and outlive the original operational need.
- Entry begins when static API keys, hardcoded passwords, or reused service accounts are embedded in CI/CD systems, config files, or application code.
- Credential access occurs when those long-lived secrets are copied across environments, shared between workloads, or left in place after deployment and incident response.
- Escalation follows as broad permissions accumulate across cloud, SaaS, and pipeline environments, giving the workload more reach than its task requires.
- Impact is the ability to move through connected systems with persistent access that is hard to review, hard to revoke, and easy to misuse.
Breaches seen in the wild
- CI/CD pipeline exploitation case study: Credentials in an exposed .git/config let a researcher edit a Bitbucket pipeline so it planted their SSH key on the server. No victim was named.
- Shai Hulud npm malware campaign: Shai Hulud campaign: npm malware exposed secrets on GitHub.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Static secrets are a workload governance debt, not a convenience. The article shows that least privilege fails when teams accept reusable credentials as normal operating infrastructure. That choice creates access that persists beyond task boundaries, which means the control problem starts at design time, not during incident response. Practitioners should treat every static secret as accumulated privilege that must eventually be justified.
Secret zero is the point where least privilege stops being theoretical. If a workload needs an initial long-lived credential to reach a vault or broker, the environment still depends on durable trust before dynamic trust can begin. That is a broken premise for modern delivery pipelines and ephemeral compute. The implication is that workload access governance has to be redesigned around bootstrap-free or bootstrap-minimised identity proof.
Ephemeral access is the governance model that matches machine-speed identity. Traditional IAM patterns are built around accounts that exist long enough to be provisioned, reviewed, and recertified. Workloads do not stay still long enough for that to be reliable, so policy-scoped issuance becomes the only control that aligns access with execution. Practitioners should stop treating short-lived credentials as an optimisation and recognise them as the baseline for workload least privilege.
Workload identity federation changes the boundary of trust, but not the need for control. Federation helps avoid credential duplication across cloud and SaaS environments, yet it still requires clear ownership, validation rules, and lifecycle accountability for each non-human identity. The field is moving away from secret custody toward runtime assurance, and that shift only works when identity, policy, and revocation are governed together. Teams should re-evaluate whether their access model is still anchored to stored secrets or to verifiable task scope.
Workload IAM is converging with broader NHI governance. The same structural issue appears across CI/CD, cloud workloads, scripts, and emerging AI-adjacent automation: access that is easy to copy is also hard to govern. That makes NHI governance the right frame, not a niche sub-discipline. Practitioners should use the workload identity lens to expose where their IAM programme still assumes human-paced, static access patterns.
From our research library:
- 67% of organisations still rely heavily on static credentials despite the risks they pose to agentic AI deployments, according to the 2026 Infrastructure Identity Survey.
- Read next: Ultimate Guide to NHIs — Why NHI Security Matters Now
What this signals
Static credential dependence is now the clearest signal that workload IAM is lagging the environment it protects. When secrets are still embedded in CI/CD tools, code, or deployment scripts, access governance is being decided at build time instead of at use time. That is a programme design issue, not just a hygiene issue, and it should trigger a reassessment of where the trust boundary really sits.
Workload identity governance has to move from review cycles to issuance decisions. Access reviews can still matter for ownership and policy drift, but they are too slow to be the primary control for ephemeral compute. Teams should focus on attestation, short-lived credentials, and task-scoped policy as the controls that actually match how modern workloads operate.
For practitioners
- Target secretless pilots at the highest-risk workloads Start with CI/CD jobs, deployment scripts, and service-to-service integrations that currently depend on embedded API keys or passwords. Use those pilots to prove whether short-lived, policy-scoped access reduces operational burden without blocking delivery.
- Inventory where static credentials still bootstrap trust Map every place a workload needs an initial secret to reach a vault, broker, or downstream resource. The goal is to identify where secret zero still exists so those paths can be redesigned around attestation or other non-persistent trust.
- Separate workload privileges by task and environment Stop sharing service accounts across multiple applications or deployment stages. Assign credentials and policies to the smallest practical task scope so development, staging, and production access do not collapse into one broad entitlement set.
- Replace manual privilege reviews with runtime validation Use runtime checks to decide whether a workload should receive a credential at the moment of access, instead of relying on periodic reviews of entitlements that may already be obsolete.
Key takeaways
- Workload least privilege fails when identity is still governed through reusable secrets and shared accounts rather than task-scoped access.
- The article’s core evidence is that modern workloads outnumber humans 45:1, which makes manual privilege management structurally unfit for the environment.
- Ephemeral access changes the control point from stored trust to runtime verification, which is the practical path to workload least privilege.
Key terms
- Workload Identity: The identity assigned to a software workload, such as a containerised application, serverless function, or microservice, enabling it to authenticate to other services without storing static credentials.
- Secret Zero: Secret zero is the first credential needed to reach a secrets store, identity broker, or protected system. It is the root trust dependency that often survives even when everything else is rotated. If that initial credential is exposed, the rest of the secret model can collapse very quickly.
- Policy-Scoped Access: Policy-scoped access is access that is granted only after a runtime policy decision and only for a defined task or context. The credential is temporary and expires automatically. For workloads, this replaces standing entitlements with just-enough access that is validated at the moment of use.
- Credential Sprawl: Credential sprawl is the uncontrolled accumulation of machine secrets, keys, and tokens across systems, teams, and environments. It usually starts with a single use case and ends with overlapping permissions, unclear ownership, and a larger attack surface than the organisation expected.
Deepen your knowledge
NHI governance, workload identity security, and secrets management are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on June 25, 2026.
Updated on October 6, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org