Securitydynamic secretsephemeral credentialsshort-lived credentials

Dynamic credentials

Definition

Dynamic credentials are unique, short-lived accounts or keys generated per request by a secrets manager for a target system (a database, cloud IAM, a broker), bound to a lease that can be renewed or revoked.

In practice

Static shared passwords never get rotated because rotating them breaks everything at once, and nobody knows which service used them. Dynamic credentials fix both: each instance gets its own username, so audits show who ran a query, and a compromised service can have all its credentials revoked without touching anyone else.

The manager must be able to administer the target, which adds moving parts and permissions of its own. Lease length is a trade-off: short leases shrink the exposure window but mean more renewals and less tolerance for a manager outage. Alert on renewal failures; they are the early warning.

Example

Each orders pod asks for database/creds/orders and receives user v-orders-8f2k with SELECT, INSERT on two tables and a 1-hour lease; on pod shutdown the lease is revoked and the user dropped.