gke-workload-identity

gke-workload-identity is a skill for Claude Code, Codex from gke-labs/kube-agents. It costs 180 tokens per session (4,411 once invoked), scanned C, a copy of gke-workload-identity, Apache-2.0.

A diagnostic tool for Google Kubernetes Engine, a Google Cloud service that runs applications in containers. It investigates why a containerised application cannot obtain Google Cloud credentials through Workload Identity Federation, which connects Kubernetes workloads to cloud accounts.

In plain words
What is it for?
Use it to inspect cluster, node-pool, Kubernetes service-account, IAM, and logging state when a workload receives permission errors, cannot find credentials, or uses the wrong cloud account.
Why use it?
It helps distinguish configuration, permission, and metadata-service problems without changing the cluster or its access settings. It produces proposed commands or configuration changes for a human to review and apply.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect cluster, node-pool, Kubernetes service-account, IAM, and logging state when a workload receives permission errors, cannot find credentials, or uses the wrong cloud account.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gke-labs/kube-agents/gke-workload-identity
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gke-labs/kube-agents --skill gke-workload-identity
Clone the repo
git clone --depth 1 https://github.com/gke-labs/kube-agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gke-workload-identity

README.md
[![agentmods](https://agentmods.dev/badge/skills/gke-labs/kube-agents/gke-workload-identity/github.svg)](https://agentmods.dev/skills/gke-labs/kube-agents/gke-workload-identity)
Your own site
<a href="https://agentmods.dev/skills/gke-labs/kube-agents/gke-workload-identity"><img src="https://agentmods.dev/badge/skills/gke-labs/kube-agents/gke-workload-identity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gke-workload-identity

Your own site · 80×15
<a href="https://agentmods.dev/skills/gke-labs/kube-agents/gke-workload-identity"><img src="https://agentmods.dev/badge/skills/gke-labs/kube-agents/gke-workload-identity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 180 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,411 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00180 $0.04411
Opus 5.5 $0.00072 $0.01764
Sonnet 5.5 $0.00036 $0.00882
Haiku 4.5 $0.00018 $0.00441

Measured 2d ago against content hash 796850f0d8db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

gke-workload-identity scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

to `169.254.169.254` are redirected to it, so a Pod fails closed if it cannot

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS -H 'Metadata-Flavor: Google' \
Origin

This is a copy

92% identical to gke-workload-identity — 82 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/platform/skills/gke-workload-identity/SKILL.md · 383 lines

How it starts

The opening of the file, as written. The whole thing — 383 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GKE Workload Identity Federation Troubleshooting Skill

Use this skill to systematically diagnose why a Pod using Workload Identity Federation for GKE cannot authenticate to Google Cloud APIs. Typical symptoms:

  • HTTP/403 ... Permission 'iam.serviceAccounts.getAccessToken' denied on resource
  • google.auth.exceptions ... could not find default credentials / ComputeEngineCredentials cannot find the metadata server
  • API calls that unexpectedly use the node's default Compute Engine service account instead of the workload's identity.

Read-only boundary

This skill is diagnostic and non-interactive. It only reads cluster, IAM, and logging state and proposes fixes as a pull request to the GitOps repository for a human to review. It must never create or modify IAM bindings, KSA annotations, node pools, or clusters automatically. When evidence is missing or the fix requires a privileged change, summarize findings and hand off to a human (see Step 7).

A change goes out as a pull request to the GitOps repository, never as a write from here: Kubernetes objects as YAML through gke-manifest-generation, cluster settings and other Google Cloud resources as Config Connector YAML through gcp-config-connector, opened with submit-suggestion. Each profile's config offers only the gke MCP server's read tools, and the broker refuses kubectl and gcloud writes.

Output discipline (apply to every conclusion)

When you report a diagnosis, always:

  1. Name the single most-likely root cause (not an open-ended list of possibilities).
  2. Explicitly rule out the other plausible causes, citing the evidence that excludes them. In particular, when the cause is node-pool configuration, state plainly that it is not a KSA annotation or IAM binding problem; when the cause is a missing role on a target resource, state that Workload Identity itself is not misconfigured.
  3. Give the exact remediation as a proposed change for a human — a pull request with the real identifiers filled in — and never apply it automatically.

Read the full file on GitHub · 383 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · -3 lines 796850f0d8db
  2. 12d ago First seen · 386 lines · 180 tokens per session scan C b8ca3bc0ccf2

Subscribe to this mod's changes

gke-workload-identity is a skill published in the GitHub repository gke-labs/kube-agents (109 stars, last pushed today), licensed Apache-2.0. It adds 180 tokens to every session and 4,411 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it C with 2 findings (cloud metadata endpoint, makes network calls). It is 92% identical to gke-workload-identity, differing in 82 lines, and is treated as a copy.

Related

Other skills, from other repositories

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

gke-workload-security

Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (auditcluster.sh), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (gVisor), enforcing Pod…

google/skills · 171 tokens

gke-reliability

Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for generating K8s YAML manifests (use gke-manifest-generation) or disaster recovery…

google/skills · 85 tokens

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens