What goes wrong
Your public Supabase key can reach every table the Data API exposes, and RLS decides which rows. The anon key, called the publishable key in newer projects, sits in your app for everyone to see, and that is expected. For an exposed table with RLS switched off, the Supabase Security Advisor warns that anyone with your project URL can read, edit and delete all of its data.
How to check
- Open the Security Advisor in the Supabase dashboard and read every error it lists.
- Look for the error called Table publicly accessible: a table in the public schema without RLS.
- Ask your developer which tables were created with SQL, because only the Table Editor switches RLS on for you.
- For each table, ask what a visitor who is not signed in can read.
How to fix
Switch on RLS for every table in the public schema, then add policies for the access you actually want. Supabase has announced that new tables will no longer be exposed to the Data API automatically, and existing tables keep their current access, so check every table you already have.
What good looks like: The Security Advisor lists no RLS errors, and a visitor who is not signed in can read only what you meant to publish.
Rather have someone run this check for you?
Have your Supabase rules tested