/major-ai-skills:vaultfrom major-ai-skills
Configure Vault auth methods, least-privilege policies, and dynamic secrets with correct K8s TokenReview wiring; never log secret material or treat root tokens as routine.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Vault centralizes secrets, encryption (Transit), and dynamic credentials (DB, PKI, cloud) behind authentication and ACL policies. Clients authenticate → receive a token with lease TTL → access only allowed paths. HA depends on storage backend and unseal procedures (Shamir or auto-unseal)—agents document patterns but never invent production unseal keys.
┌─────────────────────────────────────────────────────────────┐
│ Vault request path │
│ │
│ Auth (K8s / AppRole / OIDC / cloud) │
│ ↓ token + policies │
│ Secret engines: KV v2, database, PKI, Transit │
│ ↓ leases / versions │
│ Audit devices → immutable log (no secret echo in chat) │
└─────────────────────────────────────────────────────────────┘
Use when
Do not use when
@lets-encrypt may suffice; Vault PKI for internal mesh.secret/data/... for reads/writes; secret/metadata/... for policies; enable versioning; use cas for concurrent writers.vault lease revoke -prefix).system:auth-delegator; short-lived reviewer tokens expiring breaks all logins.token_reviewer_jwt, use local projected SA token with periodic reload (Vault ≥1.9.3); set disable_local_ca_jwt=true when using client JWT as reviewer per docs.token_ttl, bind secret_id delivery out-of-band; rotate role IDs on compromise.Policy api-prod.hcl:
path "secret/data/api/prod" {
capabilities = ["read"]
}
path "secret/metadata/api/prod" {
capabilities = ["read", "list"]
}
path "database/creds/api-readonly" {
capabilities = ["read"]
}
Enable and configure (sketch):
vault secrets enable -path=secret kv-v2
vault policy write api-prod api-prod.hcl
vault auth enable kubernetes
vault write auth/kubernetes/config \
kubernetes_host="https://kubernetes.default.svc:443" \
disable_local_ca_jwt=true
vault write auth/kubernetes/role/api \
bound_service_account_names=api \
bound_service_account_namespaces=api \
token_policies=api-prod \
token_ttl=20m
ClusterRoleBinding for reviewer SA (when external Vault):
# vault-auth SA needs system:auth-delegator to call TokenReview
AppRole for CI (short TTL):
vault auth enable approle
vault write auth/approle/role/ci token_policies="api-prod" token_ttl=15m token_max_ttl=1h
| Signature | Likely cause | Fix |
|---|---|---|
403 tokenreviews forbidden | Reviewer SA lacks delegator | ClusterRoleBinding system:auth-delegator |
| All K8s logins fail after ~24h | Expired reviewer JWT | In-cluster Vault or rotate long-lived reviewer |
permission denied on path | Policy typo / wrong mount | vault token capabilities with test token |
| Leaked approle secret_id | Credential theft | Rotate secret_id; revoke accessors |
| Sealed vault | Restart/unseal event | Operator unseal ceremony—agents don’t guess keys |
| DB creds still work after revoke | App cached password | Revoke lease + restart app |
@kubernetes CSI/driver or external-secrets for pod injection.@kubernetes — service accounts, projected tokens, injectors@terraform — Vault provider resources (if used)@github-actions — AppRole/OIDC for CI secrets@mysql / @postgresql — dynamic DB enginesMANDATORY: Never output secret values or root/unseal material. Default to dynamic secrets and short TTLs. For Kubernetes auth, verify TokenReview permissions and reviewer JWT lifetime. On leak: revoke token/lease first, then rotate upstream credentials. Test policies with non-admin tokens before declaring least privilege done.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.