- Home
- Skills
- DevOps & Cloud
- Key Vault CSI Driver Wiring Reviewer
Key Vault CSI Driver Wiring Reviewer
Point your agent at your Kubernetes YAML and run this skill.
$8.99
What it does
- Reads SecretProviderClass and workload YAML for Deployments, StatefulSets, CronJobs and Pods
- Flags a missing vault name or tenant ID, empty objects and invalid object types as blockers
- Flags workloads that use a SecretProviderClass missing from their namespace
- Flags environment variables that read a synced secret the workload never mounts
- Warns about pinned versions, subPath mounts, writable volumes and stored credentials
- Warns about unused classes, deprecated pod identity and conflicting identity settings
Who it's for
AKS platform engineers
A list of wiring mistakes before pods fail to start
Try asking: “Check these manifests for Key Vault CSI problems”
Application teams
Confirmation that rotated secrets can reach the pod
Try asking: “Will my pod see a rotated secret with this subPath mount?”
Key Vault CSI Driver Wiring Reviewer
Example session with this skill installed
Run the reviewer on the dirty example: python3 scripts/review_secret_provider_class.py examples/dirty
- Read your context and instructions
- Compiled the key vault csi
The sample has classes with a missing tenant, a missing vault name, an invalid object type and an entry without a name; workloads that use a class that does not exist or sits in another namespace; an environment variable that reads a secret its pod never mounts; a subPath mount, a writable volume and a stored credential.
[BLOCKER] secret-provider-classes.yaml: SecretProviderClass 'kv-prod' (namespace payments): tenantId is missing
[WARN] secret-provider-classes.yaml: SecretProviderClass 'kv-prod' (namespace payments): usePodIdentity is true; pod-managed identity was deprecated, use workload identity
[WARN] secret-provider-classes.yaml: SecretProviderClass 'kv-prod' (namespace payments): more than one identity method is set; keep only one
[WARN] secret-provider-classes.yaml: SecretProviderClass 'kv-prod' (namespace payments): object 'db-connection' pins objectVersion, so rotation will not pick up new versions
[BLOCKER] secret-provider-classes.yaml: SecretProviderClass 'kv-prod' (namespace payments): object 'signing-cert' has objectType 'certificate'; use secret, key or cert
[BLOCKER] secret-provider-classes.yaml: SecretProviderClass 'kv-prod' (namespace payments): an objects entry has no objectName
[INFO] secret-provider-classes.yaml: SecretProviderClass 'kv-prod' (namespace payments): syncs secret 'db-secret' into Kubernetes; the value is then stored in the cluster, so use it only when something needs a Secret
[BLOCKER] secret-provider-classes.yaml: SecretProviderClass 'kv-prod' (namespace payments): secretObjects 'db-secret' uses objectName 'missing-obj', which is not in objects (or its alias)
[BLOCKER] secret-provider-classes.yaml: SecretProviderClass 'kv-no-identity' (namespace payments): keyvaultName is missing
[WARN] secret-provider-classes.yaml: SecretProviderClass 'kv-no-identity' (namespace payments): no identity method set (clientID for workload identity, or a managed identity option); mounts depend on a node credential reference
[BLOCKER] secret-provider-classes.yaml: SecretProviderClass 'kv-no-identity' (namespace payments): objects lists no Key Vault objects
[WARN] workloads.yaml: Deployment 'web': volume 'kv' is not readOnly: true
[WARN] workloads.yaml: Deployment 'web': container 'web' mounts 'kv' with subPath, which does not receive rotated values
[INFO] workloads.yaml: Deployment 'web': env 'DB_CONN' reads synced secret 'db-secret'; environment values do not change on rotation until the pod restarts
[BLOCKER] workloads.yaml: Deployment 'worker': volume 'kv' uses SecretProviderClass 'kv-missing', which is not defined in namespace payments in the scanned files
[BLOCKER] workloads.yaml: Deployment 'worker': env 'DB_CONN' reads secret 'db-secret', which exists only while a pod mounts the CSI volume that syncs it; this workload does not
[WARN] workloads.yaml: Pod 'legacy': volume 'kv' authenticates with a stored credential (nodePublishSecretRef); prefer workload identity
[BLOCKER] workloads.yaml: Pod 'reporter': volume 'kv' uses SecretProviderClass 'kv-prod', which is not defined in namespace batch in the scanned files
[WARN] secret-provider-classes.yaml: SecretProviderClass 'kv-unused' (namespace payments): not mounted by any scanned workload
Summary: 9 blocker(s), 8 warning(s), 3 secret provider class(es), 4 workload(s), 2 file(s)
Command: python3 scripts/review_secret_provider_class.py examples/clean
The clean sample uses workload identity, mounts read-only, covers a Deployment, a StatefulSet and a CronJob, and returns exit code 0:
Summary: 0 blocker(s), 0 warning(s), 1 secret provider class(es), 6 workload(s), 1 file(s)
Connects securely to your tools. The creator never sees your data.
About this skill
Mounting Key Vault secrets into pods takes three pieces that must agree: a SecretProviderClass, a volume in the pod, and the secret names the app expects. A wrong tenant ID, a class in the wrong namespace or an environment variable that points at a secret nobody mounts only shows up when pods fail to start or secrets stop updating.
Point your agent at your Kubernetes YAML and run this skill. It reads the files on your machine, never contacts the cluster or Azure, and lists blockers to fix first, warnings to review and notes. Each line names the class or workload and says what is wrong.
It also points out choices that hurt rotation, such as subPath mounts and pinned object versions, and credentials stored in the cluster. Example manifests with expected results are included so you can see it work before you use your own.
- It reads manifests only; it cannot see the cluster, the vault, access policies, role assignments or federated credentials.
- The YAML reader is small: Helm templates, anchors and Kustomize output that is not rendered are not understood.
- Namespace matching uses metadata.namespace, or default when it is absent; namespaces set at apply time are invisible.
- Only the Azure provider is reviewed; other providers are skipped with a note.
- Reports and explains; it never edits manifests.
A single standard-library Python script with a small built-in YAML reader (multi-document files, lists, maps and block scalars). It makes no network calls and never writes files. Give it files or directories; it reads .yaml, .yml and .json. SecretProviderClass checks (provider azure): keyvaultName and tenantId present; objects parsed from the objects block (objectName, objectType, objectVersion, objectAlias); objectType must be secret, key or cert; identity method (clientID for workload identity, userAssignedIdentityID, useVMManagedIdentity, usePodIdentity); secretObjects entries must name an object or alias. Workload checks (Pod, Deployment, StatefulSet, DaemonSet, Job, ReplicaSet, CronJob): CSI volumes with the secrets-store driver, the referenced class in the same namespace, readOnly, subPath mounts, nodePublishSecretRef, and secretKeyRef environment variables that name a secret a SecretProviderClass syncs. Exit codes: 0 no blockers, 1 blockers found, 2 bad arguments. Options: --format json, --hide-info. The YAML reader is deliberately small; anchors, templates and Helm syntax are not supported.
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 today
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.