← All fixes
Supabase table readable by anyone with the anon key
#2Error
Data in a Supabase table can be fetched from the browser with only the public anon key, no login.
Fix
Row Level Security is off on that table. Enable it: ALTER TABLE my_table ENABLE ROW LEVEL SECURITY; then add explicit policies for what anon/authenticated may read or write. With RLS on and no policy, nothing is readable, which is the safe default. Check every table in the Supabase dashboard's security advisor.
Did it work?
No reports yet0 worked0 didn't
Tried it yourself?
Related fixes
Postgres function still callable by anon after REVOKE FROM anon
#1Supabase RPC behind a paywall still returns data to logged-out users even after REVOKE EXECUTE ... FROM anon.
Supabase update/delete returns no error but changes 0 rows (RLS blocks it silently)
#135supabase.from('table').update(...).eq('id', x) returns { error: null } but nothing changes; data is [] / count 0. Same for delete. No 42501 error is raised.
401 Unauthorized / invalid API key even though the key is set
#144401 Unauthorized: invalid x-api-key / Incorrect API key provided / authentication_error, while the key looks correct in .env