security_kubeconfig_check
Kubeconfig security audit — Offline security audit of a Kubernetes kubeconfig (text= YAML or JSON, or url=). Checks insecure-skip-tls-verify, plain-HTTP / legacy 8080 API servers, public-IP endpoints, CA and client-cert expiry, client certs in system:masters (unrevocable cluster-admin, parsed from the X.509 subject), long-lived certs, embedded private keys, static and non-expiring service-account tokens (JWT decoded locally), basic auth, deprecated gcp/azure auth-providers with inline refresh tokens, exec plugins (v1alpha1, untrusted paths, remote scripts, inline secrets in env/args), broken contexts and a production default context. Secrets are never echoed; you may replace token values with REDACTED. Returns PASS/REVIEW/FAIL, score, grade, shareable flag, per-cluster/user summary and findings with fixes. Price: $0.006 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "security_kubeconfig_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | apiVersion: v1 kind: Config clusters: - name: dev cluster: server: https://203.0.113.10:6443 insecure-skip-tls-verify: true users: - name: ci user: token: REDACTED contexts: - name: dev context: cluster: dev user: ci current-context: dev |