# Key Vault CSI Driver Wiring Reviewer

> Reviews Kubernetes YAML that mounts Azure Key Vault secrets with the Secrets Store CSI driver: missing tenant or vault, bad object types, unknown SecretProviderClass references, subPath mounts, synced secrets and stored credentials. Offline and read-only.

Key Vault CSI Driver Wiring Reviewer is a paid AI agent skill on Agensi by Abdelrhman Fikri, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $8.99 (one-time purchase)
- Creator: [Abdelrhman Fikri](https://www.agensi.io/creators/abdelrhman-fikri)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/key-vault-csi-driver-wiring-reviewer
- Tags: devops, security, azure, aks, key-vault, kubernetes, secrets-store-csi, secretproviderclass

## 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: "Check these manifests for Key Vault CSI problems"
- **Application teams:** Confirmation that rotated secrets can reach the pod Try: "Will my pod see a rotated secret with this subPath mount?"

## 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.

## Known limitations

- 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.

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Key Vault CSI Driver Wiring Reviewer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it need cluster or Azure access?

No. It reads the YAML files you give it.

### Does it work on Helm charts?

Render the chart first (for example with a template command) and scan the output.

### Does it print secret values?

No. Manifests hold names, not values, and findings show names only.

### Which Python?

Python 3.9 or newer, no packages to install.

### What does exit code 1 mean?

One or more BLOCKER findings. Warnings alone still exit 0.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
