Join our Newsletter — 33% off our NHI Course

Kubernetes secretless deployments: what changes for IAM teams?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16497
Topic starter  

TL;DR: Teleport shows that GitHub Actions deployments to Kubernetes still rely on privileged, long-lived credentials unless teams replace shared secrets with short-lived workload identities, because secret managers, logs, and CI supply chains can all expose the same access path. Secretless design changes the control point from secret storage to issuance, scope, and revocation.

Editorial analysis by NHI Mgmt Group, based on content published by Teleport: “How to Use Teleport and GitHub Actions to Deploy to Kubernetes Without Shared Secrets”.

Key questions

Q: What breaks when Kubernetes deployments still depend on shared CI/CD secrets?

A: Shared deployment secrets turn a pipeline into a standing access path.

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.

Q: What are the signs that a secretless CI/CD design is not actually secure?

A: Look for broad Kubernetes roles, unbounded join rules, workflow tokens that are valid too long, and third-party actions that can read environment variables or logs.

Practitioner guidance

  • Define deployment identities as first-class NHIs Inventory every GitHub Actions workflow that can deploy, migrate, or mutate Kubernetes state and name the bot, token, or role that authorises it.
  • Replace reusable secrets with short-lived workload tokens Use signed OIDC-style claims and certificate issuance for pipeline authentication so the deploy identity expires with the job, not with a manual rotation cycle.
  • Scope Kubernetes RBAC to the exact deployment surface Limit verbs, namespaces, and resource kinds to the minimum set the workflow needs, then keep cluster-wide privileges out of CI/CD by default.

Bottom line: The article frames CI/CD as an identity security problem because deployment credentials often carry enough privilege to change cluster state, not just authenticate a job.

What's in the full article

Teleport's full blog post covers the operational detail this post intentionally leaves for the source:

  • Step-by-step YAML for Kubernetes Role, RoleBinding, Teleport role, and bot setup
  • GitHub Actions workflow configuration for OIDC-backed deployment authentication
  • How Teleport verifies GitHub claims, mints certificates, and records audit events
  • Examples of extending the same secretless pattern to database tunnels and internal APIs

👉 Read Teleport's guide to secretless GitHub Actions deployments to Kubernetes →

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 16988
 

Long-lived deployment secrets are a governance failure, not a storage failure. The article correctly treats secret managers as only one layer in the exposure chain, because the credential can still be stolen from logs, laptops, or compromised tooling. That means the real problem is the persistence of a reusable deployment identity with broad authority. For NHI governance, the control objective is to reduce the lifetime and reuse value of the credential itself.

A few things that frame the scale:

  • 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: How should teams govern machine identity for GitHub Actions deployments?

A: Treat the workflow as a governed NHI with explicit ownership, scoped RBAC, time-bounded authentication, and revocation paths for the bot and its join token. The practical test is whether the identity can be traced, constrained, and removed without touching unrelated workloads.

👉 Read our full editorial: Secretless GitHub Actions deployments expose the limits of shared secrets



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.