Skip to main content

build-a-secret-rotation-workflow

Build a secret rotation workflow with consumer inventory, overlapping trust, staged distribution, verification, revocation, rollback, and evidence. Use when credentials must change without unknown outage or residual access.

来源信息

仓库
protosphinx/sphinxstack
最近来源活动
2026年7月29日 13:55
检测到的 SKILL.md 语言
英语
星标
2
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
build-a-secret-rotation-workflow
category
code
description
Build a secret rotation workflow with consumer inventory, overlapping trust, staged distribution, verification, revocation, rollback, and evidence. Use when credentials must change without unknown outage or residual access.
# build-a-secret-rotation-workflow ## When to use - Use for passwords, tokens, keys, certificates, signing material, or machine identities. - Never store secret values in plans, logs, tickets, or source. ## Preconditions - Inventory issuer, consumers, privileges, storage, delivery, sessions, dependencies, owners, and revocation. ## Procedure 1. Assign a versioned secret identity and affected trust boundary. 2. Discover direct, transitive, offline, emergency, and dormant consumers. 3. Create new trust through authorized isolated generation. 4. Distribute least-privilege references and verify each consumer on the new version. 5. Handle dual trust only for a bounded recorded overlap. 6. Revoke old trust, reject it in tests, close sessions, and monitor residual use. 7. Preserve rollback without silently reactivating compromised material. ## Failure plan - Stop revocation when a critical unknown consumer appears, contain its privilege, and resolve ownership. ## Worked example A database credential rotates by workload cohort, with old-login rejection and session closure proven afterward. ## Done - A rotation workflow document records secret identity, consumers, generation, distribution, verification, revocation, rollback, and ownership - Unknown-consumer, overlap, session, stale-copy, least-privilege, old-secret-rejection, and recovery tests verify closure
在 GitHub 查看