A quick test for your Supabase access rules before launch
If your Lovable, Bolt or Replit app runs on Supabase, the question that matters before launch is simple: can one user see another user's data?
Here's a quick test you can run on your own app, with test accounts and fake data:
1. Sign up as two different users (two emails).
2. As user A, create something private: a note, an order, a profile field.
3. Sign in as user B and try to see or change it. Try opening it by its link, too.
4. Sign out completely and try again.
If B or a signed-out visitor can see A's data, your access rules (RLS) need fixing. One thing people often worry about that isn't the problem on its own: the anon or publishable key showing in your browser code is meant to be public. What matters is what your rules let that key read. A rule like `using (true)` lets everyone in. An owner check looks like `(select auth.uid()) = user_id`.
The key that must stay out of the browser is the service_role (or sb_secret_) key. It skips your rules entirely. If it's there, replace it.
Free step-by-step guide:
https://patchandship.com/guides/check-supabase-app-before-launch
If the test turns something up and you'd rather have it fixed, our Security Fix ($149) here on Contra covers RLS on every table, storage policies and a key scan.
PatchAndShip is not affiliated with Supabase.