Rotation & dynamic credentials
Schedule credential rotation and issue temporary AWS credentials on demand.
Everything here is in the app's Credentials tab (server-side encrypted apps). You can also start from an environment: New Secret → Rotating Secret or New Secret → Dynamic Secret creates one in the folder you are viewing, and the folder lists them under its secrets. Integrations → Dynamic Secrets shows every dynamic credential you can use, across apps.
Reminders#
Add a reminder for a secret (every n days).
Secrets that are due or overdue are listed there, can be marked as rotated, and
trigger
secret.rotation_due and secret.rotation_overdue events.
Automatic rotation#
For server-side encrypted apps the service can rotate a credential itself. Create a policy under Automatic rotation:
random_value— Generates a new random value (length and alphabet configurable). For shared secrets such as signing keys.postgres_dual_role— Alternates between two PostgreSQL login roles: sets a new password on the idle role, verifies it can log in, switches the secret to it, and retires the other after a grace period. Consumers never see a broken credential.openai_service_account— Creates a new OpenAI project service account and stores its API key; after the grace period the previous service account and key are deleted. Uses the organisation's OpenAI integration (an admin key).litellm_virtual_key— Generates a new LiteLLM proxy virtual key (optionally limited to some models) and deletes the previous one after the grace period. Uses the organisation's LiteLLM integration (gateway URL and master key).
Strategies that use the organisation's integrations (OpenAI, LiteLLM) can be set up by Owners, Admins and Managers. A new key is checked before it replaces the old one; if the check fails, the new key is deleted and the old one stays.
A rotation runs on its interval or on demand (Rotate now); pause a policy
with its switch and see each run in its history. Each run is
recorded with its state, and a failed run keeps the old credential in place,
backs off and raises secret.rotation_failed.
Rotation writes into protected environments only when the protection allows automation.
Dynamic AWS credentials#
Instead of storing an AWS access key, define a dynamic credential: each time someone (or a pipeline) asks, the service assumes an IAM role and returns temporary credentials that expire on their own (15 minutes to 12 hours; at most one hour when the organisation's AWS integration itself uses a role).
- Owners, Admins and Managers define them: the AWS integration to use, the role to assume, an optional external ID and session policy, and the default and maximum duration.
- Issuing credentials needs the
DynamicSecretLeases: createpermission and permission to reveal secrets in the environment. Every issue is audited with the temporary access key id, so it can be matched with CloudTrail, where the session name shows who asked. - The role's trust policy must allow the integration's principal, and its maximum session duration must cover the longest lease.
adera dynamic lease deploy --app Payments --env production --ttl 30m --format shell
adera run --app Payments --env production --dynamic deploy -- terraform apply
AWS cannot revoke a single set of temporary credentials; keep durations short, and to cut off everything issued so far, revoke the role's active sessions in IAM.