TL;DR: The governance question is no longer whether access can be automated, but whether IAM can still see and control the resulting privilege paths, according to SSH Communications Security research. Its latest PrivX release adds API-Proxy controls for Kubernetes, external secrets integration, Terraform-based access configuration, and Ansible deployment automation, aiming to reduce direct cluster access, hard-coded credentials, and manual privilege management.
At a glance
What this is: SSH Communications Security argues that Kubernetes access governance now has to cover API brokering, external secrets, and IaC-based privilege configuration together.
Why it matters: IAM, PAM, and NHI teams need consistent controls across cluster access, secret distribution, and automated access provisioning or they lose visibility into privilege paths.
Context
Kubernetes access governance is no longer just about letting developers reach a cluster. It now includes how credentials are brokered, how secrets move into workloads, and how privilege settings are defined and changed through automation.
The governance gap is that modern DevOps workflows can spread access decisions across tools, pipelines, and runtime sessions while leaving no single control point with full visibility. That is an IAM and PAM problem as much as a platform problem.
SSH Communications Security frames this around cloud-native operations, where direct cluster access, hard-coded credentials, and manual policy changes all widen the attack surface if they are not governed as one system.
Key questions
Q: What breaks when Kubernetes access is still granted directly to clusters?
A: Direct cluster access breaks central visibility because authentication, authorisation, and session monitoring can be bypassed by local tools and ad hoc workflows. The result is weak accountability for elevated actions and a larger operational blast radius when credentials are reused or overextended. Brokered access restores a single control point for governing privileged requests.
Q: Why do external secrets reduce hard-coded credential risk in Kubernetes?
A: External secrets reduce risk because applications stop carrying API keys or database passwords inside manifests and container images. The authoritative secret stays in a governed vault, so rotation and revocation can happen centrally instead of across many workload copies. That shortens exposure windows and makes audit trails easier to defend.
Q: How should security teams govern Terraform-managed access after initial provisioning?
A: They should treat Terraform-managed access as a lifecycle control problem, not a one-time approval event. The practical goal is to reconcile infrastructure state changes with identity posture, ownership, and privilege scope so governance keeps pace with rebuilds, replacements, and environment drift.
Q: When does Kubernetes automation create more governance risk than it removes?
A: Automation creates more risk when it can change access, secrets, or deployment state without a corresponding review point or authoritative record. If configuration can be pushed faster than it can be reconciled, teams inherit hidden privilege paths and unclear ownership. The control question is whether every automated change remains visible enough to reverse.
How it works in practice
API proxy brokering for Kubernetes access
API brokering inserts an intermediary between the operator and the Kubernetes API server so that authentication, authorisation, and session monitoring happen before the request reaches the cluster. In this model, kubectl no longer speaks directly to the control plane. That matters because direct cluster access often bypasses the identity context that PAM needs to govern elevated operations. The technical shift is from raw connectivity to mediated access, where commands, sessions, and privileges are visible as security events rather than hidden inside a developer workflow. Practical implication: Treat the proxy as the control boundary for privileged Kubernetes access, not as a convenience layer.
Practical implication: Treat the proxy as the control boundary for privileged Kubernetes access, not as a convenience layer.
External secrets operator and secret lifecycle control
The External Secrets Operator pattern lets workloads pull secrets from a central vault and materialise them as native Kubernetes Secret objects on demand. That reduces hard-coded credentials in manifests and container images, but it also creates a governance dependency on how the source vault, sync logic, and rotation policy are managed. The security value comes from decoupling secret storage from application deployment, not from Kubernetes Secret objects themselves. Without that central lifecycle, teams end up with duplicated credentials, unclear rotation ownership, and secrets that are easy to copy but hard to revoke. Practical implication: Govern the upstream vault as the system of record for secret creation, rotation, and revocation.
Practical implication: Govern the upstream vault as the system of record for secret creation, rotation, and revocation.
Terraform-based access configuration and policy drift
Using Terraform for access configuration turns roles, targets, permissions, and policies into version-controlled infrastructure definitions. That improves repeatability, but it also means privileged access control is now subject to the same change-management discipline as any other code-driven asset. The architectural risk is policy drift between what is declared in code and what is actually effective in the environment, especially when multiple teams can modify automation pipelines. IaC does not remove governance; it moves governance earlier into review, approval, and version history. Practical implication: Bind access policy changes to code review and drift detection, then reconcile them with live entitlement state.
Practical implication: Bind access policy changes to code review and drift detection, then reconcile them with live entitlement state.
NHI Mgmt Group analysis
Cloud-native access governance now depends on control-plane mediation, not just authentication strength. Direct cluster access gives operators a path around central policy visibility, even when credentials are valid. When access is brokered through an intermediary, the governance question shifts to whether session context, authorisation, and recording are enforced before privilege reaches the cluster. Practitioners should stop treating Kubernetes connectivity as separate from privileged access governance.
Secret decentralisation creates a lifecycle problem unless the vault remains the source of truth. External secrets reduce hard-coded credential exposure, but they only improve governance when rotation, revocation, and ownership are managed upstream. Once credentials are copied into workload-native objects, teams can lose the ability to reason about where the authoritative secret lives and how quickly exposure can be removed. The implication is a single governed secret lifecycle, not multiple local copies with partial control.
Terraform turns access policy into code, which means entitlement drift becomes a software assurance problem. Roles, access groups, targets, and permissions are no longer just console settings. They become reviewable artefacts that can be tested, versioned, and compared against live state. That is useful, but it also means access governance fails when teams treat IaC as deployment convenience instead of controlled policy change. Practitioners should manage entitlements with the same change discipline as application releases.
Identity-driven automation is collapsing the boundary between PAM, secrets management, and deployment tooling. Kubernetes access, secret retrieval, and installation automation are now part of one operational chain. That means a weak link in any one control plane can widen the effective privilege path across the others. The right governance model is cross-domain: access, secrets, and automation need shared accountability rather than separate owners with disconnected review cycles.
Ephemeral and brokered access should be measured by who can still reach what after the session ends. Session monitoring, automatic termination, and central secret handling all point to the same operational question. Can the organisation prove that privilege disappears when the task ends, or do credentials and access paths remain available through other channels? That is the practical test for whether modern Kubernetes governance is working.
From our research library:
- 97% of NHIs carry excessive privileges, increasing unauthorised access and broadening the attack surface, according to the Ultimate Guide to NHIs.
- Read next: Cloud PAM and CIEM Guide
What this signals
Kubernetes programmes are increasingly judged by whether they can govern access, secrets, and automation as one privilege model rather than three disconnected workflows. If those controls are split across platform teams, DevOps pipelines, and IAM owners, policy drift becomes the default failure mode.
Identity-driven automation gap: the real governance issue is not whether Kubernetes can be automated, but whether automation still leaves a durable record of who can reach what, when, and under which authority. That becomes the basis for IAM and PAM oversight across cloud-native estates.
According to the Ultimate Guide to NHIs, 97% of NHIs carry excessive privileges, increasing unauthorised access and broadening the attack surface. In Kubernetes environments, that kind of privilege excess is especially dangerous when secrets and access policies are propagated through automation without a clear offboarding path.
For practitioners
- Broker privileged Kubernetes access through a control layer Require elevated kubectl and API access to pass through a mediated control point that enforces authentication, authorisation, and session recording before the cluster is reached.
- Centralise secret issuance in a single source of truth Use a vault-backed secret lifecycle so applications consume rotated credentials from one governed system rather than embedding API keys or database passwords in manifests and images.
- Version-control access policy changes Manage roles, targets, permissions, and policy changes through code review so entitlement changes are traceable, approvable, and diffable against live configuration.
- Automate deployment only with validation gates Use deployment automation for installation and upgrades, but keep verification steps for dependencies, service health, and environment consistency before changes are accepted.
Key takeaways
- Kubernetes access governance now spans proxy-mediated sessions, vault-backed secrets, and code-managed entitlements, so privileged paths must be controlled end to end.
- The main risk is not automation itself but unmanaged privilege drift across clusters, vaults, and IaC pipelines.
- Teams that centralise secret ownership and version-control access changes are better placed to keep Kubernetes operations auditable and reversible.
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 MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Kubernetes access paths and brokered sessions are framed around reducing excessive privilege. |
| NHI-02 — Secret Leakage | The article explicitly warns against embedded credentials in manifests and container images. | |
| Recommendation — Apply NHI-05 to reduce standing access and constrain privileged Kubernetes sessions to the minimum scope. Use NHI-02 controls to keep API keys and passwords out of manifests, images, and repositories. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Secret rotation and credential lifecycle are central to the external secrets pattern described. |
| Recommendation — Apply IA-5 to govern credential rotation, revocation, and distribution for Kubernetes workloads. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article focuses on access permissions and policy management for privileged Kubernetes operations. |
| Recommendation — Use PR.AA-05 to review Kubernetes entitlements, approvals, and authorisation scope for privileged actions. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | Leaked credentials and excessive access are the attack paths this governance model is trying to narrow. |
| Recommendation — Map exposed Kubernetes credentials to TA0006 and excessive cluster access to TA0008 in detection priorities. | ||
Key terms
- API proxy brokering: API proxy brokering places an intermediary between the operator and a target API so that authentication, authorisation, and recording happen before the request reaches the system. In Kubernetes, this shifts privileged access from direct connection to governed mediation, which improves visibility and reduces uncontrolled control-plane exposure.
- External Secrets Operator: An External Secrets Operator is a Kubernetes integration that synchronises secrets from an external manager into the environment that consumes them. It preserves the external system as the source of truth while making fresh, referenceable secrets available to workloads. This supports rotation without rewriting policy or deployment logic.
- Infrastructure As Code Privilege: The practice of expressing roles, permissions, targets, and policies in versioned automation rather than manually configuring them. It improves consistency, but it also turns the codebase and its credentials into privileged assets that need approval and audit controls.
- Policy Drift Detection: Policy drift detection is the process of identifying when an access policy no longer matches the intended rule or the current business context. It helps teams catch unauthorized changes, stale permissions, and exceptions that have quietly become the new normal, so governance stays aligned with actual identity and app usage.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle 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 6, 2026.
Updated on October 8, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org