Responding to a leaked key
Leaked key response
Do not only delete the line in git. Assume the value is burned, rotate at the provider, then stop the next leak.
Workflow
- Rotate at the provider. Revoke or roll the key in OpenAI, Stripe, GitHub, or wherever it was issued
- Purge copies you control. Remove from chat logs, CI variables you no longer need, and plaintext .env files
- Scan the tree. npx -y @stitchaxis/latchkey@latest scan --json and treat every hit as a follow-up
- Store the replacement in Latchkey. latchkey add NAME, commit .latchkey.toml, run agents through latchkey run
What you get
- Blog walkthrough: /blog/rotating-a-leaked-key
- History scrub waitlist and tools live under /scrub
- Open-access scan needs no licence
More use cases: Solo developer · MCP agents · CI leak scan · Team approvals.