/security-tooling-skills:vault-configuration-validationfrom security-tooling-skills
Validates HashiCorp Vault ACL policies, auth method role bindings, and seal/storage configuration before rollout. Catches overly broad path grants, misconfigured role bindings, and unsafe seal migrations.
Ships in security-tooling-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.
None: SKILL.md is the whole skill.
A Vault cluster's actual security guarantee is only as strong as its
policies, auth-method role bindings, and seal configuration — a
correctly-operated, highly-available Vault cluster (see
vault-operations-and-pki-engine-configuration)
still leaks broad access if a policy grants path "secret/*" { capabilities = ["read"] } instead of a scoped path, or if a Kubernetes
auth-method role binds to bound_service_account_names: ["*"] instead
of a specific service account. Because Vault policy changes take effect
immediately and apply broadly (a single policy can be attached to many
tokens/roles), an overly broad or subtly wrong policy is a
production-security-incident-in-waiting the moment it's applied, not
just a code-review nitpick. This skill covers validating policies, auth
method bindings, and seal/storage configuration changes before
rollout — via vault policy fmt/vault policy read inspection,
automated linting in CI, least-privilege review of path grants, and a
staged-rollout discipline for anything cluster-wide (seal migration,
storage backend changes).
sudo capabilities
granted broadly, root tokens still in use for routine operations).vault) matching the target cluster's version, with at
least read access to policies (vault policy list/vault policy read) for inspection — full validation of a proposed change can
happen offline against the HCL file itself without live cluster
access.vault policy write from an ad hoc shell —
version control is what makes CI-based linting and PR review possible
at all.vault-lint or an equivalent policy-linting tool (community tools
exist; a lightweight in-house script checking for wildcard paths and
broad capability sets is also a reasonable, low-dependency starting
point — see the worked example) wired into CI for automated checks
ahead of manual review.vault read auth/kubernetes/role/<name>,
vault read auth/aws/role/<name>, etc.) to inspect bound
constraints.Format and syntax-check every policy file before review — a trivial first gate that catches typos before they reach a human reviewer's attention:
vault policy fmt -check policies/payments-prod-read.hcl
Review every path grant for scope, not just syntax correctness. A policy that's syntactically valid HCL can still be a least-privilege violation:
# Overly broad — grants read on every secret under kv-v2, not just this app's
path "secret/data/*" {
capabilities = ["read"]
}
# Scoped — grants read only on this app's specific path
path "secret/data/payments/prod/*" {
capabilities = ["read"]
}
Flag any policy with a bare * path, a * in the middle of a
segment beyond what's operationally necessary, or capabilities
broader than the workload's actual need (create/update/delete
granted to a workload that only ever reads) as requiring
justification before approval.
Treat sudo and root-token usage as high-scrutiny, rare
exceptions, not routine capabilities:
# Requires explicit justification — sudo capability bypasses most
# other ACL restrictions for the granted path
path "sys/raw/*" {
capabilities = ["sudo", "read"]
}
# Audit whether the root token is still in routine use — it should
# only ever be used for initial setup/emergency recovery, then revoked
vault token lookup # inspect the token currently in use for policy/display_name
Warning: a policy granting broad
sudocapability, or routine operational use of the initial root token instead of scoped, named-identity tokens, undermines least privilege at the platform level — flag both as findings requiring remediation, not accepted operational convenience.
Lint policy files in CI on every change, catching common anti-patterns automatically before human review:
#!/usr/bin/env bash
# scripts/lint_vault_policies.sh (illustrative)
set -euo pipefail
fail=0
for f in policies/*.hcl; do
vault policy fmt -check "$f" || fail=1
if grep -qE 'path\s+"\*"' "$f"; then
echo "FAIL: $f grants a bare wildcard path"
fail=1
fi
if grep -qE 'capabilities\s*=\s*\[.*"sudo"' "$f" && ! grep -q "# sudo-justified:" "$f"; then
echo "FAIL: $f grants sudo capability without a '# sudo-justified:' comment"
fail=1
fi
done
exit $fail
# .github/workflows/vault-policy-lint.yml
name: vault-policy-lint
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./scripts/lint_vault_policies.sh
Validate auth-method role bindings scope to a specific identity, not a wildcard match. Kubernetes auth method example:
vault read auth/kubernetes/role/payments-prod
# Overly broad — any service account in any namespace can assume this role
bound_service_account_names: "*"
bound_service_account_namespaces: "*"
# Scoped — only the specific service account/namespace pair
bound_service_account_names: "payments-svc"
bound_service_account_namespaces: "payments-prod"
AWS IAM auth method equivalent — bind to a specific IAM role/instance
profile ARN, not bound_iam_principal_arn: "*".
Check token TTL and renewal configuration on auth-method roles and policies — a long-lived, broadly-renewable token defeats much of the value of an auth method's identity binding:
vault read auth/kubernetes/role/payments-prod | grep -E "ttl|max_ttl"
Flag token_max_ttl set to 0 (unlimited) or an unusually long
duration (weeks/months) on a role meant to authenticate a
short-lived workload identity.
Validate a seal-migration plan against a non-production cluster first, never directly against production:
# Dry-run/staging validation sequence before touching production
vault operator seal # confirm current seal type and status on staging
vault status
# Apply the new seal stanza to staging config, restart, confirm
# migration completes and staging remains operable
vault status # confirm Type reflects the new seal mechanism
Confirm the exact migration steps (config change, restart sequence, recovery-key handling) are rehearsed and documented, with a rollback plan (reverting the seal stanza and having the prior unseal/recovery material on hand) before scheduling a production maintenance window.
Diff policy/auth-method state against the version-controlled source
of truth periodically, to catch configuration drift from ad hoc
vault policy write/vault write auth/.../role/... changes made
outside the reviewed change process:
vault policy read payments-prod-read > /tmp/live-policy.hcl
diff /tmp/live-policy.hcl policies/payments-prod-read.hcl
vault policy write run
directly from an operator's shell, with no review trail, is exactly
how drift and over-broad grants accumulate unnoticed.sudo/broad-capability grants
in CI, so the cheapest, most common mistakes are caught before a
human reviewer even looks at the diff.token_max_ttl: 0 or an
unusually long duration as a finding.Symptom: A policy review approves a change because the HCL syntax
is valid and the diff "looks small," without checking whether the
path grant itself is appropriately scoped.
Fix: Make explicit least-privilege path review (not just syntax
validity) a required checklist item on every policy PR — a
one-character diff (secret/data/payments/* broadened to
secret/data/*) is exactly the kind of "small" change most likely to
pass an inattentive review.
Symptom: An auth-method role uses a wildcard binding
(bound_service_account_names: "*") "temporarily, to get it working,"
and the wildcard is still in place months later.
Fix: Treat a wildcard binding as a blocking finding at initial
setup, not something to scope down later — retrofitting a specific
binding after workloads are already depending on the broad one is more
disruptive than scoping it correctly from the start.
Symptom: A seal migration is attempted directly against production during a routine maintenance window, with no prior staging rehearsal, and the cluster fails to come back up correctly after restart. Fix: Always rehearse the exact migration steps against a non-production cluster first, and have the prior seal's unseal/recovery material and a documented rollback path ready before touching production — a seal migration is not a low-risk configuration tweak.
Symptom: The initial root token generated at cluster initialization is still being used for routine day-to-day operations a year later. Fix: Revoke the initial root token after setup (or restrict it to emergency-only use with tightly controlled access), and use auth-method-issued, scoped tokens for all routine operations — ongoing root-token use is a standing, unnecessary blast-radius risk.
Symptom: Live Vault policy state has drifted from what's in the
version-controlled repo, because someone ran vault policy write
directly during an incident and never backported the change.
Fix: Run a periodic diff of live policy/auth-method state against
the repo (step 8) as a scheduled check, and require any emergency
direct change to be backported to version control and reviewed
within a fixed follow-up window (mirroring the emergency-change
discipline in
critical-vulnerability-emergency-response).
A platform team reviews a pull request proposing a new Vault policy and
Kubernetes auth-method role for a payments-svc workload, before
applying either to production.
Proposed policy (policies/payments-prod-read.hcl):
# Draft submitted in the PR
path "secret/data/*" {
capabilities = ["read", "list"]
}
path "pki_int/issue/payments-svc" {
capabilities = ["create", "update"]
}
CI lint output:
FAIL: policies/payments-prod-read.hcl grants a bare wildcard path
Reviewer requests the scope be narrowed; revised policy:
path "secret/data/payments/prod/*" {
capabilities = ["read", "list"]
}
path "pki_int/issue/payments-svc" {
capabilities = ["create", "update"]
}
CI lint now passes (vault policy fmt -check clean, no wildcard-path
match).
Proposed auth-method role (also in the PR):
# Draft submitted in the PR
bound_service_account_names: "*"
bound_service_account_namespaces: "payments-prod"
token_ttl: "1h"
token_max_ttl: "4h"
Reviewer flags the service-account wildcard as a required fix; revised:
bound_service_account_names: "payments-svc"
bound_service_account_namespaces: "payments-prod"
token_ttl: "1h"
token_max_ttl: "4h"
Both changes are approved and merged, then applied to the cluster via
the same CI pipeline that ran the lint (not a manual vault policy write from an operator's shell), keeping the version-controlled source
of truth and the live cluster state in sync from the outset.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin security-tooling-skills15 skills in this plugin
/certificate-lifecycle-management-at-scaleGuides managing TLS/mTLS certificate lifecycle across many services and environments beyond a single Kubernetes cluster — enterprise CA integration (ACME private CA, Microsoft AD CS, cloud-managed private CAs), cross-service rotation automation, expiry monitoring/alerting, and CA hierarchy/trust-chain management for a mixed fleet of VMs, on-prem servers, and multiple clusters. Use when the user asks to "automate cert rotation across our whole fleet," "integrate with our enterprise CA," "why do we keep having certificate expiry outages," "design a CA hierarchy for the org," "track every certificate's expiry date across environments," or "cert-manager only covers our Kubernetes clusters, what about everything else." Distinct from cert-manager's Kubernetes-native scope — see `../../../kubernetes-platform/skills/cert-manager-tls-automation/SKILL.md`.
/enterprise-sso-and-idp-federation-configurationGuides configuring enterprise workforce single sign-on — SAML 2.0 and OIDC federation between an identity provider (Okta, Azure AD/Entra ID, Keycloak) and downstream applications, including metadata exchange, attribute/claim mapping, group-to-role provisioning (SCIM), and multi-IdP federation trust. Use when the user asks to "set up SAML SSO with Okta," "configure Azure AD/Entra ID as our OIDC provider," "stand up Keycloak as an internal IdP," "map IdP groups to application roles," "debug a SAML assertion that won't validate," or "federate a second IdP for an acquired company's users." Distinct from cloud-iam-hardening (workload/service IAM in a cloud provider) — this skill is about federating *human workforce* identity into applications for SSO.
/falco-configuration-validationValidates Falco runtime detection rules for false-positive rate and actual firing correctness before trusting them in a channel that pages a human — running new/changed rules in log-only mode against real traffic, measuring alert volume and content, and confirming a rule fires on a deliberate positive-control trigger before promoting it to a higher-severity, paging-routed configuration. Use when the user asks to "validate this Falco rule before enabling it," "why is Falco so noisy," "test our Falco rules don't false-positive on real traffic," "review this rule set before it pages on-call," or "make sure Falco rules aren't about to be enabled in enforce/blocking mode without an audit period." Pairs with falco-runtime-threat-detection-configuration.
/falco-runtime-threat-detection-configurationGuides authoring and deploying Falco runtime threat detection rules — the eBPF/kernel-module-based syscall event stream, Falco's rule syntax (condition/output/priority), writing custom rules for a specific workload's known-good behavior, tuning noisy default rules, and wiring alerts to Falcosidekick outputs. Use when the user asks to "write a Falco rule to detect X," "why is Falco alerting on normal behavior," "detect a shell spawned inside a container at runtime," "set up Falco with eBPF instead of the kernel module," "send Falco alerts to Slack/PagerDuty," or "what's the difference between Falco and admission-control policy engines like OPA/Kyverno." Pairs with falco-configuration-validation for pre-enforcement false-positive testing.
/fortify-static-analysisGuides deep, tool-specific use of OpenText (formerly Micro Focus) Fortify Static Code Analyzer (SCA) and Fortify Audit Workbench for enterprise, on-premises static analysis — the translate/scan build workflow, Fortify Security Rulepacks, audit workbench triage (Not an Issue / Reliability / Suspicious), and how Fortify's on-prem, build-integrated model differs operationally from cloud-native SAST. Use when the user asks to "run a Fortify scan", "configure sourceanalyzer for a build", "triage findings in Fortify Audit Workbench", "integrate Fortify with Jenkins/Azure DevOps", "reduce Fortify SCA false positives", or "compare Fortify against SonarQube/Semgrep for enterprise compliance". Fortify-specific depth on the translate/scan model and enterprise workflow; for the general SAST concept see sast-integration in the devsecops domain.
/kubewarden-admission-policy-configurationGuides configuring Kubewarden as a WASM-based Kubernetes admission policy engine — installing the policy-server and controller, writing or reusing WebAssembly policies from the Kubewarden Policy Hub, ClusterAdmissionPolicy/AdmissionPolicy resources, monitor-mode rollout before enforce, and multi-language policy authoring (Rego, Rust, Go via the SDKs) as an alternative to OPA/Gatekeeper or Kyverno. Use when the user asks to "set up Kubewarden," "write a WASM admission policy," "why use Kubewarden instead of OPA/Kyverno," "reuse a policy from the Kubewarden Policy Hub," "run an admission policy in monitor mode before enforcing it," or "author a Kubernetes admission policy without writing Rego."
Other plugins' skills for the same job