Close the hole first, then find out what was exposed, then decide who you must tell. If you have users in the EU or the UK, the GDPR gives you 72 hours from when you become aware of a breach to report it to the data protection authority, unless it is unlikely to put people at risk.
Hours 0 to 2: stop the leak
- Close what is open: turn on Row Level Security, make the storage bucket private, or take the endpoint offline.
- Rotate every secret key that was in the browser or the repository: the Supabase secret or service_role key, Stripe, OpenAI, Anthropic and your email provider.
- If sign-in was affected, sign everyone out and force password resets.
Hours 2 to 8: find out what was exposed
- Export your database, API and hosting logs now. Some plans keep them for only a day or a week.
- List which tables and files were open, for how long, and whether the logs show access from outside.
- Write down what you find, with times. You will need it for any report.
Hours 8 to 24: decide who you must tell
- Users in the EU and the UK: report to the data protection authority within 72 hours of becoming aware, unless the breach is unlikely to put people at risk. Tell the people affected directly when the risk to them is high.
- Users in the US: every state has a breach notification law, with its own triggers and deadlines.
- Business customers: B2B contracts often require notice within a set time.
Talk to a lawyer before you send anything, and keep what you share to facts you have confirmed.
After the first day
Fix the cause, not only the symptom, then run the production checklist so the next problem doesn't come from somewhere else.
Top-rated companies for an urgent fix
Ranked by our score: published prices, scope of work, AI tools named, timing and a low-risk first step. How we score.
- 1Afterbuild Labs10.0/10Best for: A check before launchFree first step · from $49
- 2Redlab10.0/10Best for: A full rescue by one team that keeps buildingFree first step · from $490
- 3Vibe Code Rescue (Lev Arakelyan)9.0/10Best for: A one-off check and a cleanupFrom $299
