implementing-hashicorp-vault-dynamic-secrets
CommunityReplace static creds with Vault dynamic secrets
Software Engineering#secrets-management#pki#approle#dynamic-secrets#hashicorp-vault#database-credentials#aws-iam
AuthorAcczdy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates static, long-lived credentials by implementing HashiCorp Vault dynamic secrets for databases, AWS IAM, and PKI certificates, reducing credential sprawl and enabling automated rotation and revocation for improved security and compliance.
Core Features & Use Cases
- Dynamic Database Credentials: Create time-limited PostgreSQL and MySQL users on demand with revocation statements and TTL controls.
- Ephemeral AWS IAM Keys: Generate IAM user keys, assumed-role STS tokens, and federation tokens with configurable leases to avoid long-lived AWS credentials.
- PKI Certificate Issuance: Issue short-lived TLS certificates via Vault PKI (root/intermediate) for web services and service mesh.
- Lease Management & Monitoring: Automatic lease renewal patterns, scripted revocation, audit log analysis, and Prometheus metrics for operational visibility.
- Application Integration: AppRole authentication examples and a Python agent demonstrating credential retrieval, renewal, and revocation for microservices and CI/CD pipelines.
- Use Case: Migrate many microservices from environment-stored DB passwords to per-service Vault roles with automatic rotation and minimal code changes.
Quick Start
Request dynamic database credentials for role app-readonly and return the username, password, lease_id, and lease_duration.
Dependency Matrix
Required Modules
hvac
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: implementing-hashicorp-vault-dynamic-secrets Download link: https://github.com/Acczdy/MoZiSec/archive/main.zip#implementing-hashicorp-vault-dynamic-secrets Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.