Skip to content
Skillpedia
Security29k · #9599

secrets-vault-manager

What it does

This skill helps teams set up and run systems that store passwords, API keys and certificates. It is for engineers responsible for secret management and security compliance.

When to use it

  • ✓When you are setting up HashiCorp Vault or a cloud secret manager.
  • ✓When you need to rotate passwords, API keys or certificates on a schedule.
  • ✓When you need to review who accessed secrets for an audit.

Skill link

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/secrets-vault-manager/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/secrets-vault-manager/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Help me set up HashiCorp Vault for our team and plan how we rotate our database passwords.”

5 new skills a week. 1 minute to read.

How it works

It generates configuration for the secret store, plans key and password rotation steps, and reviews audit logs to show how secrets were accessed.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Secrets Vault Manager

Tier: POWERFUL Category: Engineering Domain: Security / Infrastructure / DevOps


Overview

Production secret infrastructure management for teams running HashiCorp Vault, cloud-native secret stores, or hybrid architectures. This skill covers policy authoring, auth method configuration, automated rotation, dynamic secrets, audit logging, and incident response.

Distinct from env-secrets-manager which handles local .env file hygiene and leak detection. This skill operates at the infrastructure layer — Vault clusters, cloud KMS, certificate authorities, and CI/CD secret injection.

When to Use

  • Standing up a new Vault cluster or migrating to a managed secret store
  • Designing auth methods for services, CI runners, and human operators
  • Implementing automated credential rotation (database, API keys, certificates)
  • Auditing secret access patterns for compliance (SOC 2, ISO 27001, HIPAA)
  • Responding to a secret leak that requires mass revocation
  • Integrating secrets into Kubernetes workloads or CI/CD pipelines

HashiCorp Vault Patterns

Architecture Decisions

Decision Recommendation Rationale
Deployment mode HA with Raft storage No external dependency, built-in leader election
Auto-unseal Cloud KMS (AWS KMS / Azure Key Vault / GCP KMS) Eliminates manual unseal, enables automated restarts
Namespaces One per environment (dev/staging/prod) Blast-radius isolation, independent policies
Audit devices File + syslog (dual) Vault refuses requests if all audit devices fail — dual prevents outages

Auth Methods

AppRole — Machine-to-machine authentication for services and batch jobs.

# Enable AppRole
path "auth/approle/*" {
  capabilities = ["create", "read", "update", "delete", "list"]
}

# Application-specific role
vault write auth/approle/role/payment-service \
  token_ttl=1h \
  token_max_ttl=4h \
  secret_id_num_uses=1 \
  secret_id_ttl=10m \
  token_policies="payment-service-read"

Kubernetes — Pod-native authentication via service account tokens.

vault write auth/kubernetes/role/api-server \
  bound_service_account_names=api-server \
  bound_service_account_namespaces=production \
  policies=api-server-secrets \
  ttl=1h

OIDC — Human operator access via SSO provider (Okta, Azure AD, Google Workspace).

vault write auth/oidc/role/engineering \
  bound_audiences="vault" \
  allowed_redirect_uris="https://vault.example.com/ui/vault/auth/oidc/oidc/callback" \
  user_claim="email" \
  oidc_scopes="openid,profile,email" \
  policies="engineering-read" \
  ttl=8h

Secret Engines

Engine Use Case TTL Strategy
KV v2 Static secrets (API keys, config) Versioned, manual rotation
Database Dynamic DB credentials 1h default, 24h max
PKI TLS certificates 90d leaf certs, 5y intermediate CA
Transit Encryption-as-a-service Key rotation every 90d
SSH Signed SSH certificates 30m for interactive, 8h for automation

Policy Design

Follow least-privilege with path-based granularity:

# payment-service-read policy
path "secret/data/production/payment/*" {
  capabilities = ["read"]
}

path "database/creds/payment-readonly" {
  capabilities = ["read"]
}

# Deny access to admin paths explicitly
path "sys/*" {
  capabilities = ["deny"]
}

Policy naming convention: {service}-{access-level} (e.g., payment-service-read, api-gateway-admin).


Cloud Secret Store Integration

Comparison Matrix

Feature AWS Secrets Manager Azure Key Vault GCP Secret Manager
Rotation Built-in Lambda Custom logic via Functions Cloud Functions
Versioning Automatic Manual or automatic Automatic
Encryption AWS KMS (default or CMK) HSM-backed Google-managed or CMEK
Access control IAM policies + resource policy RBAC + Access Policies IAM bindings
Cross-region Replication supported Geo-redundant by default Replication supported
Audit CloudTrail Azure Monitor + Diagnostic Logs Cloud Audit Logs
Pricing model Per-secret + per-API call Per-operation + per-key Per-secret version + per-access

When to Use Which

  • AWS Secrets Manager: RDS/Aurora credential rotation out of the box. Best when fully on AWS.
  • **Azur
FAQ

Which secret stores does it cover?

It covers HashiCorp Vault, AWS Secrets Manager, Azure Key Vault and GCP Secret Manager.

Is it the same as checking .env files for leaks?

No, that is a different skill; this one works at the infrastructure level.

Can it help after a leak?

Yes, it covers responding to a secret leak that needs mass revocation.

Details

Original description by the author

Use when setting up HashiCorp Vault, AWS Secrets Manager, Azure Key Vault or GCP Secret Manager, rotating secrets or auditing secret access. Generates config with vault_config_generator.py, plans rotation with rotation_planner.py and analyzes audit logs.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9599
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills