secrets-vault-manager
БесплатноЗапускает вложенные скриптыНе проверенGenerates HashiCorp Vault configs, plans secret rotation from an inventory, and flags suspicious access in Vault audit logs. Use when setting up Vault…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Secrets Vault Manager
The agent generates reviewed HashiCorp Vault configuration, turns a secrets inventory into a rotation schedule, and screens Vault audit logs for root-token use, off-hours access, bulk reads, failed authentication and sensitive paths. Nothing here talks to a live Vault: the tools read local files and print or write files.
When to Use
- Setting up Vault for an environment: server config, secrets engines, auth methods and a policy.
- Building or reviewing a rotation schedule for an inventory of secrets.
- Investigating an exported audit log after an alert or as a periodic review.
Clarify First
Before generating configs or plans, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- Task: config generation / rotation planning / audit-log analysis (selects the script and the entire workflow).
- Environment & secrets engines: e.g. production + kv/database/transit (
--env,--secrets-engines; shapes the generated HCL). - Secrets inventory & classification: Critical/High/Medium/Low per secret (drives rotation frequencies and the schedule).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Quick Start
# Generate Vault configuration
python3 scripts/vault_config_generator.py --env production --secrets-engines kv,database,transit
# Plan secret rotation schedule (the sample's dates are relative to today, so the plan always mixes states)
INV="$(mktemp -d)/inventory.json"
python3 scripts/rotation_planner.py --generate-sample > "$INV"
python3 scripts/rotation_planner.py --inventory "$INV" # exit 1: two secrets overdue
# Analyze vault audit logs
python3 scripts/audit_log_analyzer.py --log-file assets/sample_audit_sound.log # exit 0: no alerts
python3 scripts/audit_log_analyzer.py --log-file assets/sample_audit_flawed.log # exit 1: root token at 03:00, policy change
Tools Overview
| Tool | Purpose | Key Flags |
|---|---|---|
vault_config_generator.py |
Generate HashiCorp Vault configurations | --env, --secrets-engines, --auth-methods |
rotation_planner.py |
Plan and schedule secret rotation cycles | --inventory, --generate-sample, --policy, --filter-priority, --filter-owner, --format |
audit_log_analyzer.py |
Analyze vault audit logs for anomalies | --log-file, --bulk-threshold, --auth-threshold, --format |
Exit codes: vault_config_generator.py 0 written, 2 bad option. rotation_planner.py 0 nothing overdue, 1 overdue secrets, 2 unreadable or malformed inventory. audit_log_analyzer.py 0 no alerts, 1 alerts (critical ones are marked in the report), 2 missing file or no parseable audit entries. A log with nothing parseable is an error, not a clean result; skipped lines are counted on stderr.
Workflows
Initial Vault Setup
- Define environment and required secrets engines
- Run
vault_config_generator.pyto generate HCL configs - Review and customize generated configurations
- Apply via Terraform or Vault CLI
Secret Rotation Planning
- Create secrets inventory (JSON)
- Run
rotation_planner.pyto generate schedule - Review rotation plan and adjust frequencies
- Implement automated rotation where possible
Audit Log Investigation
- Export the file audit device log (one JSON entry per line).
- Run
audit_log_analyzer.py; read the skipped-line count on stderr, because skipped lines are events nobody screened. - Review each alert against change records and on-call notes.
- Validation checkpoint: every high alert is explained or escalated; root-token use outside a documented break-glass event is an incident.
Scope & Limitations
In Scope:
- HashiCorp Vault configuration files from
vault_config_generator.py: server config, secrets engines (kv, database, transit, pki, aws, ssh), auth methods (approle, kubernetes, oidc, token, userpass) and a policy, per environment, with optional HA. - Rotation schedules from a JSON secrets inventory with
rotation_planner.py, including custom policies, priority and owner filters, and a sample inventory generator. - Anomaly checks on Vault audit logs in JSON format with
audit_log_analyzer.py: off-hours access, bulk reads, failed authentication, root token use and unusual paths. - Classification, rotation and audit guidance in
references/secrets-management-guide.md.
Out of Scope:
- Connecting to a running Vault server, applying configuration or rotating any secret. The scripts only read local files and print or write files.
.envscaffolding, leaked-secret scanning and other secret stores (seeengineering/env-secrets-manager/).- Cloud KMS, IAM and secret-manager posture in live accounts (see
engineering/cloud-security/). - Provisioning Vault infrastruc
Установить secrets-vault-manager в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл secrets-vault-manager?
Generates HashiCorp Vault configs, plans secret rotation from an inventory, and flags suspicious access in Vault audit logs. Use when setting up Vault, scheduling rotation, or investigating secret access.
Как установить скилл secrets-vault-manager?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл secrets-vault-manager запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic