Vibe Coding playbook/Module 7 · Guardrails & security

Day 61 / 100 · Guardrails & security

Leaked a key? Rotate, don’t delete.

Once a secret has been seen, deleting it doesn't un-see it. The only fix is to make the old key useless. Act in this order.

Revoke

First · Minutes

Kill the old key in the provider's dashboard.

Replace

Second

Issue a new key. Update .env and the host.

Review

Third

Check usage logs for anything you didn't do.

Remove

Fourth

Clean it from Git history if needed.

Record

Last

What happened, and what stops it next time.

Revoke first. Clean up second.