Interview Prep/DevSecOps/Secrets Management and Identity

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
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets Management and Identity