TL;DR: Kubernetes Secrets still leave organisations exposed through default base64 storage, manual encryption setup, limited auditing, and no automatic rotation, according to Akeyless. The real issue is not Kubernetes itself but the assumption that cluster-native secret handling can satisfy modern NHI governance, compliance, and blast-radius requirements.
At a glance
What this is: This is an analysis of why Kubernetes Secrets create governance, audit, and rotation gaps for sensitive credentials, with the key finding that cluster-native handling is not enough for modern secrets management.
Why it matters: IAM, PAM, and platform security teams need to treat Kubernetes secrets as governed NHI credentials, because default exposure paths and weak lifecycle controls can turn a deployment convenience into a systemic access risk.
By the numbers:
- Lack of credential rotation is cited as the top cause of NHI-related attacks by 45% of organisations, followed by inadequate monitoring and logging (37%) and over-privileged accounts (37%).
👉 Read Akeyless's analysis of why Kubernetes Secrets create compliance and rotation gaps
Context
Kubernetes Secrets are the built-in mechanism many teams use to store passwords, API keys, OAuth tokens, SSH keys, and similar credentials for workloads. The problem is that convenience does not equal governance, and default handling can leave sensitive values exposed to anyone who can reach cluster state, logs, memory, or misconfigured access paths.
For identity and access programmes, this is a Non-Human Identity issue first, not just a platform feature issue. Secrets used by workloads need lifecycle control, rotation, auditability, and access boundaries that survive cluster sprawl, CI/CD integration, and multi-environment deployment patterns.
The article argues that Kubernetes’ native secret model can be workable only with substantial extra controls, but many organisations do not operate it that way in practice. That makes the topic relevant to both platform security and identity teams that own credential governance across workloads.
Key questions
Q: How should teams manage Kubernetes Secrets in production clusters?
A: Treat Kubernetes Secrets as a convenience layer, not the governance authority. Production use should require encryption at rest, tight RBAC, auditable access, and a defined rotation process. For high-value credentials, move to centrally governed lifecycle controls so revocation, ownership, and expiry are explicit rather than assumed.
Q: Why do Kubernetes secrets bridges create operational risk for NHI programmes?
A: They create risk because machine credentials are only useful if delivery, rotation, and refresh continue to work at cluster speed. A paused or stale bridge can extend credential lifetime, delay revocation, and leave workloads operating on old material. That is an identity lifecycle problem, not only a platform concern.
Q: What breaks when Kubernetes secrets are handled manually?
A: Manual handling usually creates duplication, stale credentials, and unclear ownership. Once secrets are copied into files, CI jobs, or shared configurations, no one can reliably prove where they exist or who can still use them. That turns rotation into a reactive cleanup exercise instead of a controlled lifecycle process.
Q: Who is accountable when a Kubernetes secret is exposed?
A: Accountability usually sits with the platform, security, and application owners together, because secret exposure is a shared control failure. The key question is which team owns rotation, which team owns audit evidence, and which team can revoke access before the secret is reused elsewhere.
Technical breakdown
Why Kubernetes Secrets are exposed by default
Kubernetes Secrets are stored as data objects in the cluster control plane and, unless encryption at rest is explicitly configured, their contents can be decoded from base64 rather than protected. Even when encryption is enabled, the protection only applies while the secret sits in etcd. Once applications consume it, the value can reappear in memory, pod configuration, logs, or other components that are much harder to govern centrally.
Practical implication: treat cluster-native secret storage as a transport and lifecycle problem, not a durable protection boundary.
RBAC and audit limitations in secret governance
Secret access in Kubernetes depends heavily on RBAC, but RBAC granularity is often too coarse to express the exact conditions under which a workload should read a credential. Native audit logging can help, but it is not always configured with enough fidelity to show who accessed which secret, when, and through what path. That means failed segregation of duties and weak detection can persist unnoticed until an incident forces discovery.
Practical implication: tie secret access to explicit identity paths and audit events rather than assuming the cluster enforces intent correctly.
Why manual rotation breaks at scale
Secrets without automatic rotation become durable credentials, which is the opposite of modern NHI security practice. In distributed Kubernetes estates, each cluster can end up carrying its own version of a secret, creating inconsistency, duplication, and drift across environments. Rotation then becomes an orchestration exercise across applications, not a simple credential update, and that makes downtime, missed updates, and stale access far more likely.
Practical implication: map every Kubernetes secret to an owner, an expiry expectation, and a rotation process before the estate expands further.
Threat narrative
Attacker objective: The objective is to turn a single exposed workload credential into broader cluster or application access with little detection.
- Entry begins when an attacker or unauthorised process reaches cluster state, etcd, or another location where Kubernetes Secrets are readable without strong encryption or access boundaries.
- Escalation follows when RBAC misconfiguration, insufficient audit coverage, or exposed runtime values allow the same secret to be reused across workloads or services.
- Impact occurs when the credential is used for lateral access, data retrieval, or privileged operational change across the Kubernetes estate and connected systems.
Breaches seen in the wild
- Dropbox Sign breach — compromised Dropbox Sign service account exposed API keys and OAuth tokens.
- Salesloft OAuth token breach — hackers stole OAuth tokens to access Salesforce data via Salesloft.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Cluster-native secret storage is not a governance model. Kubernetes Secrets solve a packaging problem, not a lifecycle problem. If an organisation treats base64-encoded cluster data as a sufficient control, it is relying on a mechanism that was never designed to enforce durable ownership, rotation, or revocation across distributed workloads.
Secret rotation is the control that changes the risk profile, not encryption alone. Encryption at rest reduces one exposure path, but it does not remove standing credential risk once a workload reads the secret. The practical boundary is lifecycle, because a credential that stays valid across deployments, namespaces, and clusters behaves like persistent privilege.
Identity blast radius grows when each cluster becomes its own secret island. Centralised governance disappears when every cluster owns duplicate credentials, independent audit trails, and separate update timing. That fragmentation makes it harder to prove who had access, when access ended, and whether the same secret was reused elsewhere.
Secret sprawl is the named concept this article exposes. A secret sprawl problem appears when the organisation multiplies credential copies faster than it can govern rotation, revocation, and audit. The implication is straightforward: the more clusters and integrations you add, the more your credential estate behaves like unmanaged NHI sprawl rather than controlled access.
From our research:
- Lack of credential rotation is cited as the top cause of NHI-related attacks by 45% of organisations, followed by inadequate monitoring and logging (37%) and over-privileged accounts (37%), according to The State of Non-Human Identity Security.
- Another finding from the same research shows that only 1.5 out of 10 organisations are highly confident in their ability to secure NHIs, compared with nearly 1 in 4 for securing human identities.
- For a lifecycle view of this problem, pair that research with Guide to the Secret Sprawl Challenge and assess where credential copies, ownership, and revocation controls diverge across clusters.
What this signals
Secret sprawl is becoming a programme-level risk rather than a platform inconvenience. As Kubernetes estates grow, the question is no longer whether secrets can be stored, but whether they can be owned, rotated, and revoked fast enough to keep pace with deployment velocity. Teams that still treat secrets as static configuration will accumulate hidden access paths that are difficult to audit and harder to remove.
With 85% of organisations lacking full visibility into third-party vendors connected via OAuth apps, per The State of Non-Human Identity Security, the same visibility problem now extends to workloads, tokens, and cluster-bound credentials. That makes secret governance a cross-domain identity issue, not a storage-choice debate.
For practitioners
- Inventory every Kubernetes-managed credential path Map which secrets are stored in etcd, injected into pods, passed through CI/CD, or duplicated across clusters. Include owners, consuming workloads, rotation frequency, and revocation path so the credential estate can be governed as NHI.
- Disable implicit trust in default secret handling Require explicit encryption at rest, strict RBAC scoping, and audit logging before any secret is treated as production-ready. If the cluster cannot show who accessed a secret and when, the control is incomplete.
- Move high-value credentials to centrally governed lifecycle controls Reserve Kubernetes-native storage for low-risk values where possible, and use centrally managed secret lifecycle tooling for credentials that can affect data access, deployment pipelines, or service-to-service trust.
- Test rotation under real workload conditions Validate that rotating a secret does not break applications, create hidden fallback credentials, or leave stale values in sidecars and caches. Rotation only counts when the old value is no longer usable.
Key takeaways
- Kubernetes Secrets are a governance problem as much as a storage problem, because default handling does not enforce lifecycle control.
- The main risk is not just exposure at rest, but the persistence of standing workload credentials across clusters and deployments.
- Teams that want resilient secrets governance need ownership, rotation, auditability, and central revocation before scale makes drift irreversible.
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 | The article centers on secret rotation, exposure, and overprivilege in workload credentials. |
| NIST CSF 2.0 | PR.AC-4 | Secret access depends on least-privilege access control and workload entitlement governance. |
| NIST SP 800-53 Rev 5 | IA-5 | IA-5 covers authenticator management, including credential lifecycle and revocation. |
| NIST Zero Trust (SP 800-207) | Section 2.1 | Zero trust requires continuous verification of workload access to sensitive credentials. |
| CIS Controls v8 | CIS-5 , Account Management | Account and credential lifecycle management directly addresses long-lived Kubernetes secrets. |
Map Kubernetes secret handling to NHI-03 and remove long-lived credentials from cluster-native storage.
Key terms
- Kubernetes Secret: A Kubernetes Secret is an object used to store sensitive data such as passwords, tokens, certificates, and API keys outside application code. It simplifies delivery to Pods, but it does not automatically protect the data. Security depends on storage encryption, access control, and monitoring of how the secret is used.
- Secrets Sprawl: The uncontrolled proliferation of sensitive credentials — API keys, tokens, passwords, certificates — across codebases, cloud environments, CI/CD pipelines, and configuration files. In 2024, over 50 million leaked secrets were found on the dark web.
- Standing Credential: A standing credential is any secret that remains usable until it is manually rotated or revoked. In NHI governance, it creates durable access that can be stolen, replayed, or propagated from trusted tooling unless runtime boundaries and expiry are built in.
- Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.
What's in the full article
Akeyless's full blog post covers the operational detail this post intentionally leaves for the source:
- Step-by-step explanation of how its Kubernetes integrations inject secrets into pods and containers.
- Detailed description of the encryption and access-control mechanisms it claims to apply across environments.
- Specific compliance claims and audit-trail capabilities described for production deployment planning.
- The platform integration points with external secrets tooling and the Kubernetes secrets injector.
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 August 17, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org