Kubernetes workload identity review
Skill Raishin/vanguard-frontier-agentic/skills/kubernetes/kubernetes-workload-identity-review
Curated marketplace of AI skills, agents, and rules for cloud, zero-trust, and compliance-aware engineering - works with Claude Code, Codex, Cursor, Copilot, and more.
npx -y skills add Raishin/vanguard-frontier-agentic --skill kubernetes-workload-identity-reviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 18 stars18 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use this skill for Kubernetes workload identity review covering AWS IRSA (IAM Roles for Service Accounts), Azure Workload Identity, GCP Workload Identity Federation, and the underlying ServiceAccount token volume projection plus OIDC issuer trust. Trigger when the user asks how a pod should authenticate to cloud services, whether long-lived credentials in a Secret can be replaced, whether the OIDC trust policy is correctly scoped, or whether ServiceAccount token reuse is a risk.
SKILL.md
3.7 KB, 640 tokens by cl100k_base, as published. Nobody here has run it
Kubernetes Workload Identity Review
Purpose
Review how pods authenticate to cloud services. Long-lived static credentials in Secrets are the largest unmanaged credential surface in most Kubernetes deployments. Workload identity replaces them with short-lived federated tokens via the cluster's OIDC issuer. The review covers ServiceAccount token projection, OIDC issuer trust policy, the cloud-provider IAM mapping, and the runtime check that the pod is actually using the federated token rather than falling back to a static credential.
Lean operating rules
- Prefer live cluster evidence (
kubectl get serviceaccount,pods -A -o yamlplus the cluster's OIDC issuer URL and the cloud-provider IAM trust policy) when the active client exposes it; otherwise fall back to official cloud-provider and Kubernetes documentation. - Separate confirmed facts from inference. If the OIDC issuer URL, IAM trust policy, or pod's projected token volume was not queried, say so.
- Treat a Pod with both a workload-identity ServiceAccount AND a long-lived credential Secret mounted as a critical finding — credential precedence often falls back to the static credential, defeating the migration.
- Treat an OIDC trust policy with
StringEqualsonaudbutStringLike(wildcard) onsubas a critical finding — any ServiceAccount in the cluster can assume the role. - Treat
automountServiceAccountToken: trueon pods that don't use the Kubernetes API as a high finding — token is mounted and exfiltratable, even when not used. - Challenge ServiceAccount tokens with no
audiencesclaim — projected tokens should target a specific cloud audience (sts.amazonaws.com,api://AzureADTokenExchange,https://iam.googleapis.com/projects/.../workloadIdentityPools/...). - Challenge token expiry windows longer than 1 hour — projected tokens should be short-lived.
- Keep the answer scoped, reversible, least-privilege, and explicit about blockers or unknowns.
References
Load these only when needed:
- Evidence path and tooling — use when choosing live evidence, confirming OIDC issuer and IAM trust state, or switching to documentation mode.
- Workflow and output contract — use when executing the full review, applying provider-specific stress checks, or formatting the final answer.
- Official sources — use when you need the detailed AWS / Azure / GCP / Kubernetes documentation list and grounded insights.
Response minimum
Return, at minimum:
- the cloud provider (AWS, Azure, GCP, or generic OIDC) and evidence level,
- the ServiceAccount → IAM identity binding (annotation, label, or trust policy claim) and whether it is correctly scoped,
- the OIDC trust policy scope (
aud,sub,iss) — must constrain to a specific ServiceAccount, - whether long-lived credentials still exist anywhere in the workload (Secret mounts, env vars, sidecars),
- the safest next actions and rollback plan,
- the assumptions or blockers that prevent stronger conclusions.
What ships with it: 4 files
19.7 KB alongside SKILL.md
references/
- mcp-and-evidence.md3.0 KB
- official-sources.md5.8 KB
- workflow-and-output.md9.4 KB
- metadata.json1.5 KB