Code RoomSecret rotation automation
HardPrep Room Coding #20

Secret rotation automation

Vibe & agenticAI agents & automationSecuritySenior–Staff~18 min

Secret rotation at your company is manual, dreaded, and overdue everywhere. Design an agent that drives rotation across services — with one absolute rule you must design around: it never sees a secret in plaintext. How does it verify a rotation actually worked without reading the credential? What can it trigger versus what needs a human? Lay out the evaluation before it touches production credentials, and make the case that automating this reduces risk instead of adding it.

Implement
decide_rotation_action(secret_kind: str, canary_auth_passed: bool, old_version_still_used: bool, consumer_error_rate: float, rollback_rehearsed: bool) → str
Examples
in["service",true,false,0.001,true]out"retire_old_version"
in["service",false,true,0.001,true]out"rollback"
in["break_glass",true,false,0,true]out"hold_for_human"
What a strong answer looks like

Turn the fuzzy goal into a bounded agent task. Say what the agent reads, what it may do on its own versus draft for a human, and what it must never touch. Then earn the trust: how you’d verify it before rollout, and the pitch (the problem, what you built, why it matters).

0:00 of about 18 min

Agent build: design the agent in plain language (or narrate it). The coach grades the decomposition, the guardrails, the verification plan, and the pitch.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.