- Home
- Skills
- DevOps & Cloud
- AKS Workload Identity Manifest Checker
AKS Workload Identity Manifest Checker
This skill gives your agent a deterministic, offline workflow over the manifests in git.
$9.99
What it does
- Scans Kubernetes YAML and JSON for ServiceAccounts and workload pod templates
- Checks that a workload-identity pod sets serviceAccountName and the use label
- Verifies the ServiceAccount (or pod) carries the client-id annotation
- Flags leftover AZURE_CLIENT_SECRET, credential secret mounts and disabled token automount
- Warns about misplaced labels, non-UUID client ids and retired AAD Pod Identity bindings
Who it's for
Platform and application engineers on AKS
who are adopting workload identity, migrating off service-principal secrets or AAD Pod Identity, or reviewing a GitOps pull request.
AKS Workload Identity Manifest Checker
Example session with this skill installed
Command: python3 scripts/check_workload_identity.py examples/dirty
- Read your context and instructions
- Compiled the aks workload identity
The sample repo has three workloads in the payments namespace. payments-api is labelled for workload identity but still carries a client secret, mounts azure-sp, disables token automount, and never sets serviceAccountName. worker has the use label and also has no service account. invoices points at a correctly annotated ServiceAccount but forgot the pod label.
[WARN] workloads.yaml: ServiceAccount/payments-sa: has label azure.workload.identity/use on the ServiceAccount; this label must be on the pod template
[WARN] workloads.yaml: ServiceAccount/payments-sa: azure.workload.identity/client-id is not a UUID: not-a-guid
[WARN] workloads.yaml: Deployment/payments-api: azure.workload.identity/client-id is set on the Deployment metadata; put it on the ServiceAccount or the pod template
[WARN] workloads.yaml: Deployment/payments-api: uses label aadpodidbinding (AAD Pod Identity is retired; migrate to workload identity)
[BLOCKER] workloads.yaml: Deployment/payments-api: automountServiceAccountToken is false on a workload-identity pod (the webhook cannot inject the token)
[BLOCKER] workloads.yaml: Deployment/payments-api container 'api': env AZURE_CLIENT_SECRET is set (legacy client secret; use workload identity instead)
[BLOCKER] workloads.yaml: Deployment/payments-api container 'api': envFrom secretRef 'azure-credentials' looks like a cloud credential secret
[BLOCKER] workloads.yaml: Deployment/payments-api: mounts secret 'azure-sp' (looks like Azure or client credentials; prefer workload identity)
[BLOCKER] workloads.yaml: Deployment/payments-api: has azure.workload.identity/use=true but serviceAccountName is not set (will use 'default')
[BLOCKER] workloads.yaml: Deployment/worker: has azure.workload.identity/use=true but serviceAccountName is not set (will use 'default')
[BLOCKER] workloads.yaml: Deployment/invoices: ServiceAccount or pod has azure.workload.identity/client-id but the pod template is missing label azure.workload.identity/use=true
Summary: 7 blocker(s), 4 warning(s), 1 file(s)
The corrected manifests in examples/clean (a Deployment and a CronJob that share a ServiceAccount with a UUID client-id, the use label on both pod templates, and no credential secrets) return exit code 0:
Summary: 0 blocker(s), 0 warning(s), 1 file(s)
Connects securely to your tools. The creator never sees your data.
About this skill
A pod that is "almost" wired for AKS workload identity still fails at runtime: the webhook only mutates pods that carry the use label, the token is projected from the ServiceAccount you name, and a leftover client secret quietly wins in the Azure SDK. This skill gives your agent a deterministic, offline workflow over the manifests in git.
The scanner is a single standard-library script. It does not call the cluster or Entra. It reads Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, Pods and ServiceAccounts, including across files in the same scan. It reports blockers when the use label is set but serviceAccountName is missing, when a client-id annotation has no matching use label, when automount of the service-account token is disabled, and when a container still injects AZURE_CLIENT_SECRET or mounts a credential secret. Warnings cover labels or annotations on the wrong object, a client-id that is not a UUID, a ServiceAccount that was not in the scan set, and the retired AAD Pod Identity label.
Synthetic example manifests with expected output are included so you can verify the behaviour in seconds.
- File-based only: it cannot see the cluster, the OIDC issuer, or the federated credential on the Entra application.
- YAML support is a subset parser for typical manifests. It does not evaluate Helm conditionals; scan helm template output for exact results. Anchors and unusual flow style may produce a parse warning.
- If a manifest has no namespace, ServiceAccount matching assumes
default. - Reports and explains; it does not rewrite your manifests or create federated credentials.
The scanner is a single standard-library Python script. It makes no network calls and never writes files or talks to a cluster. Give it files or directories; it walks .yaml, .yml and .json. YAML is parsed with a built-in subset parser for typical Kubernetes manifests (block mappings and sequences, quoted scalars, comments, multi-document files). JSON lists, single objects and List items are accepted. Helm is not evaluated; scan rendered output. It indexes ServiceAccount objects by namespace and name, then inspects Pod, Deployment, StatefulSet, DaemonSet, Job, ReplicaSet, ReplicationController and CronJob pod templates (including CronJob jobTemplate). Cross-file references in the same scan set are resolved. Exit codes: 0 no blockers, 1 blockers found, 2 bad arguments. Optional --format json. It cannot see the cluster OIDC issuer or the Entra federated credential.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.