agentleFS
abevzabevz/devops-skills/skills/vault/SKILL.md

vault

Skill0 starsChanged 41 days agoMITView on GitHub

Use when deploying, configuring, or operating HashiCorp Vault (or OpenBao) — HA/storage, seal/auto-unseal, auth methods, policies, secret engines (KV/dynamic/PKI/transit), Kubernetes integration, and DR. Mention "vault", "openbao", "auto-unseal", "vault policy", "dynamic secrets", "vault pki", "vault kubernetes auth" as triggers.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not propose shared broad tokens or a recovery story without a tested restore.

    line 22
  2. Distinctive:

    Follow the Workflow, Safety rules, and Quality checklist below.

    line 26
  3. Distinctive:

    Use when standing up or operating HashiCorp Vault / OpenBao: HA topology and storage, seal / auto-unseal, auth methods, policy design, …

    line 37
  4. Distinctive:

    Never read, print, or exfiltrate secret values, tokens, unseal/recovery keys, or root tokens — work with paths, policies, and metadata only.

    line 92
  5. Distinctive:

    Treat unseal, root rotation, and snapshot restore as destructive/critical — explicit confirmation, never automatic.

    line 99

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Vault

TL;DR checklist

  • Choose the Vault/OpenBao operation area and its reference.
  • Record version, storage, seal, HA, and authentication baseline.
  • Check least-privilege policy and off-box recovery before a design recommendation.

Key read-only checks

  • Inspect configured auth roles, policy paths, lease settings, and snapshot evidence without revealing secret values.

Common pitfalls

  • Do not propose shared broad tokens or a recovery story without a tested restore.

Agent procedure

Follow the Workflow, Safety rules, and Quality checklist below.

Quick references

  • references/deploy-ha.md
  • references/auth-policies.md

Last verified: unverified

When to use

Use when standing up or operating HashiCorp Vault / OpenBao: HA topology and storage, seal / auto-unseal, auth methods, policy design, secret engines (static KV, dynamic DB/cloud creds, PKI, transit encryption-as-a-service), Kubernetes integration (k8s auth, Agent injector, Secrets Store CSI, or External Secrets pulling from Vault), and backup/DR. For consuming Vault secrets into Kubernetes specifically, secrets-management covers the ESO-vs-alternatives choice; this skill is Vault itself.

Goal

A Vault that is highly available, recoverable, and least-privilege by construction — sealed safely, authenticating workloads by identity (not shared tokens), issuing the narrowest secrets possible (prefer dynamic/short-lived over static), with a tested unseal and restore path.

Workflow

  1. Scope to an area and load its reference:

    AreaReference
    Deploy, HA (Raft/Consul), seal & auto-unseal, upgrades, OpenBaoreferences/deploy-ha.md
    Auth methods (k8s, JWT/OIDC, AppRole, cloud IAM) + policy (HCL, path grants, templating)references/auth-policies.md
    Secret engines: KV v2, dynamic DB/cloud, PKI, transit; leases & rotationreferences/secret-engines.md
    Kubernetes consumption (k8s auth, Agent injector, CSI, ESO) + backup/DRreferences/kubernetes-and-dr.md
  2. Confirm the baseline — Vault vs OpenBao, version, storage backend (integrated Raft vs Consul vs cloud), seal type (auto-unseal configured or manual keys?), HA replica count, and how workloads authenticate today.
  3. Least privilege by default — policies grant the narrowest paths; prefer dynamic, short-lived secrets (DB/cloud creds that expire) over long-lived static KV where the engine supports it; every token/role has a bounded TTL.
  4. Auth by workload identity, not shared secrets — Kubernetes auth (SA token → Vault role), JWT/OIDC, or cloud IAM over a shared AppRole secret-id sitting in a k8s Secret.
  5. Seal safety is the availability story — a manual-unseal Vault is a 3am-page waiting to happen; auto-unseal (cloud KMS/HSM) is the operational default. The unseal/recovery keys are the crown jewels — their custody is a documented, split (Shamir) process.
  6. Make it recoverable — Raft snapshots (or Consul backups) on a schedule, stored off-box, and a tested restore. Losing Vault storage without a snapshot = every dynamic credential and the root of trust gone.
  7. GitOps the config, not the secrets — policies, auth roles, engine mounts are declarative (Terraform Vault provider / vault-operator / config files) and belong in version control; the secret values never do.
  8. Verify read-only — vault status, vault policy read, vault auth list, vault secrets list, vault token lookup; never read a secret value or mutate config as "investigation."

References

  • references/deploy-ha.md, references/auth-policies.md, references/secret-engines.md, references/kubernetes-and-dr.md — one per area, with decision tables, config/HCL examples, prerequisites, and gotchas.

Safety rules

  • Design/operate-planning skill: do not vault write/kv put, apply policies, unseal, rotate roots, or run restores against a live Vault — propose config for the user.
  • Never read, print, or exfiltrate secret values, tokens, unseal/recovery keys, or root tokens — work with paths, policies, and metadata only. If a task requires a secret value, stop and say why not.
  • Root tokens are for break-glass only — recommend revoking after setup (vault token revoke); never propose leaving a root token in use or in a file.
  • Unseal/recovery keys and auto-unseal KMS access are the highest-value targets — reference their custody process, never handle the actual key material.
  • Treat unseal, root rotation, and snapshot restore as destructive/critical — explicit confirmation, never automatic.

Output format

## Area & baseline (Vault/OpenBao, version, storage, seal type, HA?, auth model)
## Recommendation (what to configure, and explicitly what NOT to over-build)
## Prerequisites & blast radius
## Proposed config (HCL policies / auth roles / engine mounts — for review)
## Rollout & rollback
## DR/verification (snapshot coverage, unseal path, read-only checks)

Quality checklist

  • The relevant area reference was consulted, not reasoned from memory
  • Policies grant least-privilege paths; dynamic/short-lived secrets preferred over static
  • Workloads authenticate by identity (k8s/JWT/cloud IAM), not a shared long-lived secret
  • Auto-unseal + documented key custody, not manual unseal by default
  • Snapshot/restore path is defined and tested; root token revoked after setup
  • No secret/key/token value was read; nothing was written/unsealed on a live Vault

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.