PeekLok

All posts

Your tables have RLS. Do your views?

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

If your Lovable, Bolt or v0 app shows a dashboard, leaderboard or summary page, your builder may have made a Supabase view: a saved query that acts like a table.

Supabase's docs say views bypass RLS by default, because they're usually created by the postgres user. So a view over a protected table can return every row your policies were meant to hide.

Quick check: in your Supabase dashboard, open the Security Advisor. A "Security Definer View" finding names a view that skips RLS.

If you find one, ask your builder to set security_invoker = true on it (Postgres 15 and above), so it follows the RLS of the tables underneath. On older Postgres, revoke access from anon and authenticated, or move the view out of an exposed schema.

Want a free check of your live app? https://peeklok.com

Chris, PeekLok

Scan my app free