TL;DR: A Kubernetes dashboard used runtime-injected, policy-based access to Qase.io and Slack instead of environment variables and long-lived tokens, reducing secret handling while keeping test results and delivery signals visible each morning, according to Aembit. Static credentials are still a governance liability even when the workload is not an AI system, because scheduled non-human access behaves like an identity problem, not just an application problem.
At a glance
What this is: This is an Aembit case study showing how a Kubernetes dashboard used workload identity controls instead of embedded secrets to reach Qase.io and Slack.
Why it matters: It matters because IAM and PAM teams need the same runtime access discipline for service workloads, dashboards, and eventually AI agents, not just for human users.
👉 Read Aembit’s case study on runtime workload identity for a Kubernetes dashboard
Context
Kubernetes workloads that need to call external services are not just application components, they are identity-bearing actors that need controlled access. When that access is handled with environment variables, copied tokens, or manually managed secrets, the governance problem shifts from deployment convenience to credential exposure and lifecycle drift.
The article focuses on a simple but important operating model change: keep the access layer separate from application logic, inject credentials at runtime, and define access centrally through policy. That is the same direction security teams need across workload identity, service accounts, and any non-human process that acts on a schedule without human intervention.
Key questions
Q: How should security teams govern scheduled workload access in Kubernetes?
A: Treat scheduled workloads as non-human identities with named owners, explicit service dependencies, and centrally governed runtime policy. Do not leave credentials inside manifests or environment variables. The control objective is to make access revocable, auditable, and short-lived so the workload can function without creating reusable secret exposure.
Q: Why do long-lived tokens create more risk for dashboards and automation jobs?
A: Long-lived tokens turn routine automation into reusable access that can be copied, replayed, or moved across environments. For dashboards and background jobs, that creates a wider blast radius than the function requires. Short-lived, policy-issued credentials reduce persistence and make revocation meaningful.
Q: What breaks when developers keep handling secrets directly in application workflows?
A: The break is governance, not just convenience. Once developers copy credentials between environments, access becomes dispersed across code, machines, and human memory, which makes revocation, review, and separation of duties unreliable. The result is a secret management problem that cannot be cleanly audited.
Q: How do workload identity controls differ from human IAM controls?
A: Human IAM focuses on login, session, and user behaviour, while workload identity focuses on runtime access between systems. Workloads need policy-based authorisation, short-lived credentials, and ownership tied to the service rather than the person who deployed it. That is why non-human access should not be governed as a user account.
Technical breakdown
Runtime credential injection for Kubernetes workloads
Runtime credential injection means the application receives access only when it executes, rather than carrying long-lived secrets in code, configuration, or environment variables. In this pattern, the identity layer brokers access to external services such as Qase.io and Slack based on policy, then removes the need for developers to handle tokens directly. The architectural point is separation of duties: the workload uses identity, while the operator governs policy and trust. That reduces credential sprawl and makes access review possible at the control plane rather than inside each app.
Practical implication: move service-to-service credentials out of application manifests and into centrally governed runtime policy.
Why scheduled non-human workloads behave like identity problems
A dashboard that runs every night, authenticates repeatedly, and acts without human intervention is still a non-human identity even if it is not an AI agent. The important factor is that it has independent operational access to external systems and must be governed as a workload identity. That changes the security model from user-centric login controls to policy-based authorisation, short-lived credentials, and traceable service access. The same logic applies to many background jobs, automation services, and future agentic workflows.
Practical implication: classify scheduled automation as governed workload identity, not as ordinary application plumbing.
Policy-based access as a control boundary
Policy-based access control moves the decision about whether a workload may connect to a service out of the application and into the identity platform. That creates a cleaner boundary for audit, revocation, and environment separation, especially when a workload moves across Kubernetes clusters or deployment stages. It also reduces the temptation to recreate authorisation logic in code, which is where many teams drift into inconsistent controls. For identity teams, the key insight is that runtime policy is the governance object, not the secret itself.
Practical implication: treat runtime policy as the primary artefact for review, not the token stored behind it.
Threat narrative
Attacker objective: The practical attacker objective in this pattern is to obtain reusable non-human credentials that can be copied, replayed, or moved between environments.
- Entry occurs through developer convenience when access to Qase.io and Slack would otherwise have been implemented with environment variables or long-lived tokens. Escalation is avoided because the dashboard receives credentials at runtime instead of retaining them as reusable secrets. Impact is limited because the access layer stays separate from application logic, reducing the chance of secret leakage or cross-environment reuse.
Breaches seen in the wild
- Salesloft OAuth token breach — hackers stole OAuth tokens to access Salesforce data via Salesloft.
- 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
Runtime secret injection is now a governance control, not just a deployment convenience. This article shows why the old split between application code and access governance no longer holds for non-human workloads. When the workload can authenticate itself repeatedly to external services, credential handling becomes part of the control surface. Practitioners should treat the access path as a governed identity channel, not as an engineering shortcut.
Scheduled automation should be governed as workload identity, even when it is not autonomous. The dashboard is not an AI agent, but it still acts on a schedule, uses external tools, and depends on trusted access. That means the right frame is NHI governance, not human IAM, and not generic application security. Teams should align it to OWASP-NHI and zero trust access principles because its risk profile is defined by non-human execution.
Ephemeral credential trust debt: The longer teams rely on copied tokens and static environment variables, the more their operating model depends on unreviewed trust. That assumption was designed for manual developer workflows, not for always-on Kubernetes services that touch multiple systems every night. The implication is that access governance must move closer to runtime execution and away from durable secrets.
Workload access separation is becoming a baseline expectation for mixed human and machine programmes. This case is modest in scope, but it reflects the direction of travel across enterprise identity: humans increasingly orchestrate systems that then act on their own schedule. The same control pattern that protects a dashboard also prepares the ground for service accounts, automation jobs, and agentic workflows. Practitioners should converge governance across those actor types instead of managing them as separate exceptions.
Identity blast radius matters more than interface convenience. The article’s operational win was better morning visibility, but the security win was narrower credential exposure and clearer control boundaries. In multi-environment estates, the real question is how far a reused secret could move if it were exposed. Practitioners should measure workload identity by the damage it can contain, not by how easy it is for developers to ship.
From our research:
- Only 19.6% of security professionals express strong confidence in their organisation's ability to securely manage non-human workload identities, according to The 2024 Non-Human Identity Security Report.
- 59.8% of organisations see value in a solution that simplifies non-human access management and introduces dynamic ephemeral credentials.
- The practical next step is to pair runtime access policy with lifecycle governance, as outlined in the Ultimate Guide to NHIs , 2025 Outlook and Predictions.
What this signals
Ephemeral credential trust debt: The longer a programme tolerates copied tokens and environment-scoped secrets, the more it accumulates hidden trust debt that only appears during incident response or environment migration. For identity teams, that means workload access should be reviewed as a control object, not as implementation detail.
A growing number of environments are converging on runtime policy and short-lived credentials because static secrets create too much operational drag. The programme-level signal is clear: if your access reviews still focus on people while service workloads are using durable credentials, the governance model is already behind the architecture.
Security teams that are formalising workload identity now should anchor their controls in the SPIFFE workload identity specification and map them to NIST AI Risk Management Framework principles where machine decisioning or agentic execution enters the stack. The same runtime-control pattern will matter even more as more systems begin acting with partial autonomy.
For practitioners
- Replace embedded secrets with runtime-issued access Move service-to-service authentication for dashboards and background jobs out of environment variables and into centrally governed runtime policy. Keep the application unaware of the underlying token format so access can be revoked without code changes.
- Classify scheduled workloads as governed identities Inventory nightly jobs, dashboards, and automation services as workload identities with named owners, explicit service dependencies, and separate access review paths from human accounts.
- Separate access validation from application debugging When a job fails, inspect the identity layer first so teams can distinguish a code defect from an authentication or authorisation failure. That shortens triage and prevents teams from reusing secrets to diagnose access problems.
- Reduce credential persistence across environments Eliminate copied tokens and long-lived credentials that travel between dev, test, and production. Use short-lived runtime access so a compromise in one environment does not create reusable access in another.
Key takeaways
- Dashboards and automation jobs are identity-bearing workloads, not just application code, so their access needs explicit governance.
- Runtime credential injection reduces secret exposure, but only if teams also separate access policy from application logic.
- Static secrets create the wrong trust model for scheduled non-human access, especially when multiple environments and external services are involved.
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 Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Runtime secrets handling and lifecycle risk are central to this workload identity case. |
| NIST CSF 2.0 | PR.AC-4 | Policy-based access for services maps directly to access control governance. |
| NIST Zero Trust (SP 800-207) | The article’s separation of access from application logic aligns with zero trust. |
Move non-human credentials to short-lived runtime access and remove durable secrets from app code.
Key terms
- Workload Identity: A workload identity is the non-human identity used by a service, job, or application to authenticate and obtain access to other systems. It replaces shared secrets with a governed identity boundary, allowing access to be issued, reviewed, and revoked at the service level rather than embedded in code.
- Runtime Credential Injection: Runtime credential injection is the practice of supplying credentials only when a workload executes, instead of storing them in code, environment variables, or configuration files. It lowers secret persistence and makes access policy enforceable at request time, which is the right control point for non-human access.
- Secret Sprawl: Secret sprawl is the uncontrolled distribution of credentials across files, environments, teams, and automation systems. It increases the chance of leakage, reuse, and delayed revocation, especially when developers copy tokens between dev, test, and production to keep workflows moving.
- Identity Blast Radius: Identity blast radius is the amount of damage a compromised identity can cause before it is detected or revoked. For workloads, it depends on how long credentials last, how broadly they can be reused, and how many external services they can reach from one authenticated session.
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 responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
This post draws on content published by Aembit: a case study on runtime workload identity for a Kubernetes dashboard. Read the original.
Published by the NHIMG editorial team on 2026-01-08.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org