hashimiche/hal/database
Claude Code and agent skill by hashimiche/hal
- community
Checking that the SKILL.md file is still in the repository.
Deploy, verify, and troubleshoot the Vault database secrets lab in hal. Use this skill when the user asks to enable the database secrets engine, generate dynamic DB credentials, debug database leases, rotate the root connection, run the KinD + VSO VaultDynamicSecret demo, or reset the local database demo. Triggers include "enable database", "dynamic db credentials", "Vault database engine", "rotate root", "database --k8s", "VaultDynamicSecret", and "hal vault database".
Install
npx vskill@latest install hashimiche/hal/databaseSKILL.md
The same SKILL.md was published earlier as hashimiche/hal/database.
Hal Vault Database Configurator
This skill covers the local Vault database secrets engine lab implemented by hal vault database.
Lab Assumptions
- Vault runs locally at
http://vault.localhost:8200 - Root token defaults to
root - Backend defaults to MariaDB (
--backend mariadb); Postgres is planned but not implemented yet. - Prefer
halfor deployment and cleanup, then usevault read/writefor day-2 operations
What The Command Actually Sets Up
- Vault secrets engine:
database/ - Connection name:
database/config/hal-vault-mariadb - Dynamic role:
database/roles/dba-role - Root connection user initially created:
vaultadmin - Vault rotates the
vaultadminpassword so it becomes Vault-owned hal-vault-mariadbis shared (consumervault-database; the Agentic IAM lab is another):enablereuses it when running,disablekeeps it while another consumer remains, and onlyvault-database's owndatabase/mount andvaultadminbroker are removed
--k8s mode (adds KinD + VSO VaultDynamicSecret demo)
- Shared KinD cluster on
hal-netviaensureHALKindCluster()(port30084→ host8091) - Dedicated Vault Kubernetes auth mount:
kubernetes-db/(neverkubernetes/) - Vault Secrets Operator +
VaultDynamicSecretwriting rotating DB creds into a Kubernetes Secret - Demo app at
http://db.localhost:8091(15s TTL, non-renewable leases so each cycle mints a new username/password)
Workflow
Step 1: Choose the lifecycle action
Use smart status mode if needed:
hal vault database
Then use the correct lifecycle command:
hal vault database enable --backend mariadb --vault-mariadb-tag 11.8 hal vault database enable --k8s hal vault database update hal vault database disable hal vault database disable --k8s
Step 2: Enrich with Vault MCP Context
Once the hal command completes successfully, verify the configuration using Vault MCP when available.
Inspect:
database/config/hal-vault-mariadbdatabase/roles/dba-rolesys/mounts
Step 3: Present structured results
Tier 1 — Success Summary Provide a brief confirmation that the database is running and the engine is mounted.
Tier 2 — Configuration Details Table
| Component | Value | Description | |
|---|---|---|---|
| DB Container | hal-vault-mariadb | Local Docker network hostname | |
| Connection Name | hal-vault-mariadb | Vault's internal reference to the selected DB | |
| Vault Role | dba-role | The role used to generate dynamic creds | |
| Mount Path | database/ | The database secrets engine |
Tier 3 — Actionable Testing Commands
export VAULT_ADDR='http://vault.localhost:8200' export VAULT_TOKEN='root'
vault read database/creds/dba-role vault read database/config/hal-vault-mariadb vault read database/roles/dba-role
Handling Edge Cases
- Vault is not running: Instruct the user to run
hal vault createfirst. - Port conflicts: If Docker fails to bind
3306or5432, advise the user to stop local DB services using those ports. - Dangling leases prevent cleanup: Explain that the code force-revokes
database/leases during teardown. - User wants to change SQL statements or TTLs after deployment: Provide exact
vault write database/roles/dba-role ...commands rather than suggesting Go edits. - VSO cannot reach Vault / KinD not on `hal-net`: Re-run
hal vault database enable --k8s(orupdate --k8s) soensureHALKindCluster()attacheskind-control-planetohal-net. Do not tell the user to recreate the cluster unless the port map is stale.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/skills/data/vault/database/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hashimiche/hal/database)