TL;DR: Traditional PAM built for static human administration is being stretched by CI/CD, Kubernetes, Ansible, and service accounts that need privileged access only for the task at hand, according to SSH Communications Security. The governance problem is that standing credentials and permanent permissions turn automated delivery into a persistent blast-radius problem, not a simple speed trade-off.
At a glance
What this is: This article argues that DevOps-era privileged access should shift from standing credentials to ephemeral, just-in-time access for humans and machine identities.
Why it matters: That matters because IAM, PAM, and NHI programmes now have to govern privileged automation without breaking delivery speed, auditability, or least-privilege boundaries.
👉 Read SSH Communications Security's analysis of ephemeral privileged access for DevOps
Context
DevOps privilege is no longer a human-only problem. Pipelines, Kubernetes, Ansible, cloud infrastructure, and service accounts now perform privileged actions that were once limited to administrators, which means access control has to follow machine speed rather than ticket-driven human workflows. The primary identity challenge is not just who logs in, but what identity can act, for how long, and under which task scope.
Traditional PAM assumptions break when access is continuous, embedded, and automated. Standing SSH keys, long-lived API tokens, and permanent cluster-admin permissions create exposure that is hard to observe and harder to revoke, especially when the privileged actor is a pipeline or automation platform rather than a person. That is why this topic sits at the intersection of PAM governance, NHI lifecycle control, and infrastructure automation.
The article’s underlying premise is typical of modern enterprise environments rather than an edge case. Most organisations running CI/CD, cloud orchestration, or infrastructure-as-code now face the same governance tension: keep automation fast, but stop privilege from becoming persistent by default.
Key questions
Q: How should security teams remove standing privilege from CI/CD and automation workflows?
A: Start by replacing embedded secrets, static SSH keys, and permanent role grants with task-scoped access that expires after the job completes. That keeps pipelines functional while preventing the credential from becoming a reusable path into production. The key is to govern the workflow identity, not just the human developer who wrote it.
Q: Why do long-lived Kubernetes credentials increase security risk?
A: Long-lived credentials extend the window in which stolen or over-scoped access can be reused across cluster resources. They also weaken accountability because the same credential can be shared, copied, or reused outside its intended context. In Kubernetes, short-lived, identity-bound access reduces the chance that an old entitlement becomes a standing foothold.
Q: What are the signs that privileged automation is still relying on unsafe access patterns?
A: Look for reusable pipeline tokens, permanent cluster-admin roles, service accounts with broad scope, and automation systems that can act without a fresh authorization event. Those are the clearest signs that access is still standing privilege dressed up as automation. Visibility into session activity is another useful warning signal.
Q: What is the difference between IAM and PAM for machine identities?
A: IAM establishes who or what can authenticate and what baseline access it should have. PAM controls elevated access, especially when a service account or workload can reach production, infrastructure, or sensitive data paths. For machine identities, the two must work together because a credential can be legitimate and still be dangerously over-privileged.
Technical breakdown
Why standing credentials fail in automated privilege flows
Standing credentials assume that privileged access is granted to a known operator for a bounded session and then removed later. That model fits human administration poorly already, and it fits pipelines, service accounts, and orchestration tools even less well. In CI/CD or Ansible workflows, the access bearer is often a non-human identity that can execute repeatedly without a fresh human decision. Once a static secret is embedded in the workflow, privilege becomes reusable rather than task-scoped, which increases exposure and weakens audit clarity.
Practical implication: move privileged automation off persistent credentials and onto task-scoped, ephemeral authorization.
How just-in-time access changes Kubernetes and CI/CD governance
Just-in-time access means credentials and permissions are issued only when a specific task requires them, then revoked or expired once the task is complete. In Kubernetes, that can mean temporary kubectl permission rather than permanent cluster-admin rights. In CI/CD, it means a pipeline receives only the access needed for the deployment step, not a reusable token that can be replayed across future runs. The important architectural shift is that the identity boundary moves from static entitlement to runtime policy enforcement.
Practical implication: bind deployment and cluster access to task-level policy rather than durable identity grants.
Why ephemeral certificates matter for machine identities
Ephemeral certificates replace long-lived secrets with short-duration credentials that are harder to steal and reuse. For service accounts, automation tools, and machine-to-machine workflows, certificate-based authentication can preserve non-human access while reducing the lifetime of any credential an attacker could capture. This also supports centralized auditing because access can be issued, observed, and closed within a controlled session boundary. The model is especially relevant where static SSH keys or API tokens would otherwise persist across many systems and many executions.
Practical implication: use short-lived certificates to collapse the usable window for machine identity compromise.
Threat narrative
Attacker objective: The attacker wants to turn one exposed automation credential into repeatable privileged control over deployment and infrastructure workflows.
- Entry occurs when a CI/CD pipeline, automation platform, or service account relies on an embedded secret, static SSH key, or long-lived API token that can be reused outside the original task.
- Escalation follows when that non-human identity already has broad infrastructure reach, allowing the attacker to move from a single credential to production-wide privileged actions.
- Impact is the ability to deploy code, modify infrastructure, or execute administrative changes across many systems with little resistance or visibility.
Breaches seen in the wild
- CI/CD pipeline exploitation case study — full server takeover via exposed .git directory and mismanaged CI/CD pipeline secrets.
- Reviewdog GitHub Action supply chain attack — reviewdog/action-setup GitHub Action supply chain attack exposed secrets.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Standing privilege is the wrong default for DevOps-era machine access. Traditional PAM was built around human administrators and relatively static systems. That assumption fails when pipelines, service accounts, and orchestration tools are the actors actually performing privileged work. The result is not just broader exposure, but a governance model that cannot see privilege as a task-bound event. Practitioners should treat persistent access as the exception, not the operating model.
Ephemeral credential trust debt is now a governance problem, not just a hygiene issue. Every long-lived token, static SSH key, and permanent permission adds future revocation work that may never be completed cleanly. This is especially visible in automated infrastructure, where access can be distributed across GitLab, Kubernetes, Ansible, and cloud environments at machine speed. The implication is that access governance must be designed around issuance and expiry, not around hope that cleanup will happen later.
Zero standing privilege is becoming the practical control model for non-human privileged access. The article’s core pattern is not about removing automation, but about making automation compatible with controlled authorization. That aligns with OWASP-NHI and zero trust thinking because access is no longer assumed to persist between tasks. Practitioners should evaluate privileged workflows by how quickly access can be constrained, not by how much automation they preserve.
Ephemeral certificates are the clearest bridge between PAM and NHI governance. Certificates can preserve machine access without leaving a reusable secret behind, which is why they matter in both infrastructure automation and service-account governance. This is a control-design issue, not a tooling preference. The practical conclusion is that certificate lifetime, issuance policy, and revocation path now sit at the center of machine identity governance.
Session recording and centralized audit become more valuable when privilege is short-lived. When access is temporary and task-scoped, the audit trail has to prove what happened during that narrow window. That makes governance stronger, not weaker, because the evidence base aligns with the runtime behavior of the identity. Security teams should treat observability as part of the control, not as an afterthought.
From our research:
- The average time to mitigate a leaked secret is 36 hours, highlighting the operational burden of manual remediation processes, according to The 2024 State of Secrets Management Survey.
- 54% of organisations are dissatisfied with their current secrets management solution because not all secrets are secured, and 43% cite lack of central management.
- That is why NHI Lifecycle Management Guide matters for teams trying to align issuance, rotation, and offboarding with automation speed.
What this signals
Ephemeral access will increasingly become the default language for privileged automation. As pipelines, orchestration tools, and service accounts continue to absorb work once reserved for administrators, governance teams need to measure access by task completion rather than by account existence. The shift is not only technical. It changes how audit, review, and offboarding processes should be built for machine identities.
Credential lifetime is now a program-level risk metric. When a leaked secret takes 36 hours to remediate, the operational lag itself becomes part of the exposure window. That should push security leaders to track mean time to revoke, not just mean time to detect, and to align the programme with the NIST Cybersecurity Framework 2.0 and the access-control expectations in NIST SP 800-53 Rev 5 Security and Privacy Controls.
Task-scoped machine access is the governance concept worth sharpening here. It means the identity that performs work should exist only for the work itself, with issuance, authorization, and revocation tied to the job boundary. For NHI programmes, that is the practical bridge between DevOps velocity and zero standing privilege.
For practitioners
- Replace standing pipeline credentials Issue deployment permissions dynamically for CI/CD jobs and remove embedded SSH keys, static API tokens, and permanent role grants from build workflows.
- Grant ephemeral Kubernetes privileges Limit kubectl and cluster-admin access to task-scoped sessions, and tie elevation to the specific operational action rather than the operator’s default role.
- Move automation onto short-lived certificates Use certificate-based authentication for Ansible, service accounts, and machine-to-machine workflows so compromised secrets expire before they can be reused at scale.
- Record privileged machine sessions centrally Capture session activity for automated and human privileged actions in production so investigations can reconstruct what the identity did during the access window.
- Map non-human privilege to NHI lifecycle controls Treat pipelines, service accounts, and automation identities as governed assets with defined issuance, rotation, review, and offboarding paths, not as background infrastructure.
Key takeaways
- DevOps privilege is shifting from static admin access to ephemeral, task-scoped access for both people and machines.
- Persistent secrets and standing permissions expand blast radius because automation reuses the same access across many systems and runs.
- Security teams should govern pipelines, service accounts, and orchestration tools as NHI assets with short-lived credentials, central audit, and clear lifecycle control.
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, NIST SP 800-53 Rev 5, NIST Zero Trust (SP 800-207) and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 — Secrets and Credential Management | The article centers on replacing embedded secrets and static credentials in machine workflows. |
| Recommendation — Replace embedded secrets with short-lived, governed credentials and tie issuance to the task boundary. | ||
| NIST CSF 2.0 | PR.AC-4 — Access Permissions and Authorisations | Least-privilege authorisation is central to ephemeral CI/CD and machine access. |
| Recommendation — Map privileged automation to PR.AC-4 and restrict access to the minimum task scope. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Standing privilege and broad machine permissions are the main control problem here. |
| Recommendation — Apply AC-6 to remove persistent privileges from pipelines, service accounts, and orchestration tools. | ||
| NIST Zero Trust (SP 800-207) | Least privilege access — Least privilege access | The article’s just-in-time model aligns with zero trust assumptions about continuous verification. |
| Recommendation — Enforce least-privilege access that is issued only for the requested action and then revoked. | ||
| CIS Controls v8 | CIS-5 — Account Management | Automation identities need lifecycle governance, not ad hoc credential sprawl. |
| Recommendation — Use CIS Control 5 to inventory, govern, and retire machine identities with the same discipline as user accounts. | ||
Key terms
- Ephemeral Privilege: Ephemeral privilege is access that exists only for a short task or runtime window, then should disappear. In cloud and container environments, the challenge is not granting it, but proving it was created, used, and removed within the intended boundary before it becomes a lingering exposure.
- Standing Privilege: Standing privilege is access that remains active even when no immediate task requires it. For NHI programmes, it is a common failure mode because long-lived credentials and persistent roles create unnecessary exposure. Reducing standing privilege usually means tighter expiry, on-demand access, and clearer review of who or what still needs access.
- Machine Identity: The digital identity of a machine, device, or workload — such as a server, container, or VM — used to authenticate it within a network. Sometimes used interchangeably with NHI, though NHI is the broader category.
- Task-scoped Authorization: Task-scoped authorization limits an AI agent’s access to the specific data, tools, and actions needed for one bounded objective. It is a stronger fit than static role assignment when the system’s behaviour can change during execution and when overreach creates immediate business risk.
What's in the full article
SSH Communications Security's full article covers the operational detail this post intentionally leaves for the source:
- How PrivX PAM applies ephemeral access across GitLab, Kubernetes, Ansible, CI/CD, and hybrid cloud workflows
- How short-lived certificates and vault-free workflows change the mechanics of privileged automation
- How centralized auditing and session recording work for machine-driven privileged activity
- How to integrate privileged access policy into infrastructure-as-code and DevOps delivery flows
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 building or maturing an IAM or PAM programme, it is worth exploring.
Published by the NHIMG editorial team on September 11, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org