Leaked a key? Rotate it, because deleting it isn't enough
It happens a lot with vibe-coded apps: a Stripe, OpenAI or Supabase key gets pasted into the code, pushed to a public GitHub repo, or shipped in the site's JavaScript. The usual reaction is to delete the line and redeploy.
That doesn't fix it. Old commits keep the key in your Git history, and anyone who already copied it can keep using it.
The fix: treat any exposed key as burned. Create a new key in the provider's dashboard, put it in your hosting's environment variables (server-side only), redeploy, then revoke the old key. Afterwards, check the provider's usage page for calls you don't recognize.
Want to know if your live site still exposes a key? Run the free scan at leakyvibe.com/?demo=1&ref=blog-rotate-leaked-keys-deleting-is-not-enough. It takes about 15 seconds.