Blog · November 26, 2026
With anonymous sign-ins on, "authenticated only" means anyone
Many AI-written Supabase policies say to authenticated using (true) and treat it as "signed-in users only".
Supabase's RLS docs note that an anonymous user from Supabase Auth assumes the authenticated role. If anonymous sign-ins are on, any visitor can call supabase.auth.signInAnonymously() with your public key and pass that policy. Even without them, anyone who can sign up counts as authenticated.
Fix: scope rows to their owner with (select auth.uid()) = user_id. For data that needs a real account, also require (auth.jwt() ->> 'is_anonymous')::boolean is false. Turn anonymous sign-ins off if you don't use them.
Source: https://supabase.com/docs/guides/database/postgres/row-level-security
Check your live app for readable Supabase tables and leaked keys with a free, read-only scan at https://leaklatch.vercel.app