PeekLok

All posts

Row-level security is on. Is it actually doing anything?

Free scan: check my app Just your web address. Results in seconds. No signup, no card.

If your Lovable, Bolt or v0 app uses Supabase, turning on row-level security is step one. Step two is the policy, and that's where it can quietly go wrong.

Supabase's docs warn that a policy reading to anon using (true) lets every signed-out visitor read every row. Builders sometimes add one just to make an error go away.

Quick check: open the Policies page in your Supabase dashboard and look for any policy whose rule is just true. Keep it only on data that's meant to be public. For customer data, ask your builder for a rule like (select auth.uid()) = user_id, so each person sees only their own rows.

Want us to test it on your live app? The first check is free at https://peeklok.com

Chris, PeekLok

Related guides

Scan my app free