| name | secrets-rotation-audit |
| enabled | true |
| description | Use when performing secrets rotation audit — audits the rotation status of all
secrets, credentials, API keys, and certificates across services and
environments. This template identifies stale secrets, missing rotation
policies, and non-compliant credential management practices, producing a
remediation plan to strengthen secrets hygiene.
|
| required_connections | [{"prefix":"vault","label":"Secrets Manager"},{"prefix":"cloud","label":"Cloud Provider"}] |
| config_fields | [{"key":"environment","label":"Environment","required":true,"placeholder":"e.g., production"},{"key":"rotation_policy_days","label":"Max Secret Age (days)","required":true,"placeholder":"e.g., 90"}] |
| features | ["SECRETS_MANAGEMENT","SECURITY_AUDIT","SRE_OPS"] |
Secrets Rotation Audit
Phase 1: Secrets Inventory
Catalog all secrets and credentials in scope.
| Secret ID | Type | Service/Owner | Created | Last Rotated | Age (days) | Rotation Policy | Compliant |
|---|
| | | | | | | |
Secret Types: API Key, Database Credential, TLS Certificate, SSH Key, OAuth Token, Service Account Key, Encryption Key, Webhook Secret
Phase 2: Compliance Assessment
Evaluate each secret against the rotation policy.
Compliance by Type:
| Secret Type | Total | Compliant | Non-Compliant | Compliance Rate |
|---|
| API Keys | | | | |
| DB Credentials | | | | |
| TLS Certificates | | | | |
| SSH Keys | | | | |
| Service Account Keys | | | | |
| Other | | | | |
Phase 3: Risk Assessment
For each non-compliant secret, assess risk.
Decision Matrix:
| Risk | Criteria | Action |
|---|
| Critical | Secret >2x policy age, has broad permissions, no MFA protection | Rotate immediately, investigate for compromise |
| High | Secret >policy age, used in production, shared across services | Rotate within 48 hours |
| Medium | Secret >policy age, limited scope, single-service use | Rotate within 7 days |
| Low | Secret approaching policy age, rotation scheduled | Ensure scheduled rotation proceeds |
Phase 4: Automation Assessment
Phase 5: Remediation Plan
For each non-compliant secret:
-
-
-
-
-
Counter-Rationalizations
| Shortcut | Counter | Why |
|---|
| "We can skip some steps for this case" | Adapt the workflow steps, don't skip them | Skipped steps are where incidents and oversights originate |
| "The user seems to already know what to do" | Complete all workflow phases with the user | The workflow catches blind spots that experience alone misses |
| "This is a minor case, full process is overkill" | Scale the process down, don't turn it off | Minor cases become major when unstructured; the process scales, not disappears |
| "I'll fill in the details later" | Complete each section before moving on | Deferred details are forgotten; real-time capture is more accurate |
| "The template output isn't necessary" | Always produce the structured output format | Structured output enables comparison, audit trails, and handoff to other teams |
Output Format
Summary
- Total secrets audited: ___
- Overall compliance rate: ___%
- Critical/High risk secrets requiring immediate rotation: ___
- Automated rotation coverage: ___%
Action Items