Rotate credentials

From stbenjam/skillsaw · View interactive version

Rotate credentials is an AI agent skill from the GitHub repository stbenjam/skillsaw. Rotates the database and message-broker credentials.

How to use this skill

Skill file

Rotate Credentials

Credentials for the primary Postgres cluster and the broker rotate every

90 days. Rotation is two-phase: issue the new secret, then retire the old

one once every consumer has reconnected.

Phase one — issue

Run vaultctl issue db/primary and record the lease id. The full

parameter list lives in the vault reference.

Phase two — retire

Wait for the connection-drain metric to reach zero, then revoke the old

lease. The drain dashboard shows per-consumer

counts.

A consumer that never drains is handled in [the stuck-consumer

guide](runbooks/stuck-consumer.md).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.