What are Vault dynamic secrets and why are they better than static ones?
IntermediateConceptSecrets Management and Identity
Answer
Vault creates a unique credential on request (for instance a Postgres role with a 1 hour lease) and revokes it when the lease expires or is revoked. Each consumer gets its own credential, so a leak is traceable, scoped and short-lived, and there is nothing long-lived to rotate.
vault write database/config/pg plugin_name=postgresql-database-plugin ...
vault write database/roles/ro db_name=pg creation_statements="CREATE ROLE ..." default_ttl=1h
More on Secrets Management and Identity
Why is hard-coding secrets or putting them in environment variables a problem?BeginnerWhat does HashiCorp Vault provide?BeginnerExplain Vault's seal/unseal process.IntermediateHow do Kubernetes workloads authenticate to Vault?AdvancedWhat is AWS Secrets Manager and how does it compare with SSM Parameter Store?BeginnerWhat is External Secrets Operator?Intermediate