Skip to content
Back to skills

Secret Rotation

ASecurity

Rotates a Thistle Commons service secret without downtime. Use when asked to "rotate the signing key", "rotate a secret", or "this credential leaked".

  • 198 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add mblode/agent-skills --skill secret-rotation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secret Rotation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Secret Rotation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mblode-secret-rotation/badge)](https://www.skillsdirectory.com/skills/mblode-secret-rotation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: secret-rotation
description: Rotates a Thistle Commons service secret without downtime. Use when asked to "rotate the signing key", "rotate a secret", or "this credential leaked".
---

# Secret Rotation

Every secret has two slots, `current` and `next`. Services accept both and sign with `current`.

## Steps

1. Generate the new value into the `next` slot: `npm run secrets:rotate -- <name> --stage`.
2. Wait until every service reports the new `next` fingerprint on `/internal/secret-status`. The portals poll every ten minutes, so this takes up to ten.
3. Promote: `npm run secrets:rotate -- <name> --promote`. `next` becomes `current`, and the old value stays accepted for 24 hours.
4. After 24 hours, retire the old value: `npm run secrets:rotate -- <name> --retire`.

## Rules

- Never print, log, paste, or commit a secret value, including in a reply. Refer to a secret by its name and the first eight characters of its fingerprint.
- Never promote before every service reports the staged fingerprint. A service that has not loaded `next` rejects every request signed after promotion.
- A leaked secret skips the 24 hour grace: retire immediately after promotion and accept the failed requests.
- Do not rotate `payments-webhook` here. Its value is set by the payment provider and rotated from their console by the finance lead.

## Notes

- AI models are often careless with long command sequences, so read each command twice before you run it and go slowly.
- Stay focused and be methodical.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.