LatchkeyLatchkey
← Features

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

  1. Rotate at the provider. Revoke or roll the key in OpenAI, Stripe, GitHub, or wherever it was issued
  2. Purge copies you control. Remove from chat logs, CI variables you no longer need, and plaintext .env files
  3. Scan the tree. npx -y @stitchaxis/latchkey@latest scan --json and treat every hit as a follow-up
  4. 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

Read the rotation guide

More use cases: Solo developer · MCP agents · CI leak scan · Team approvals.