Guide · November 16, 2026

Supabase's Oct 30 change didn't lock your existing tables: how to check and fix them

On October 30, 2026 Supabase applied its new grants default to every existing project. It sounds like the end of open tables. It isn't. The change only covers tables created after it reached your project. In Supabase's words: “Existing tables are not affected in your project, they keep their current grants and stay reachable.” (Supabase changelog)

So if a table was readable with your public anon key on October 29, it's still readable today, unless you fixed it.

Quick check: run the SQL in step 1. Any row with rls_on = false and anon_can_read = true is a table anyone with your anon key can read, all of it.

What changed, and what didn't

1. List the tables a stranger can reach

In the Supabase SQL editor:

select c.relname                                       as table_name,
       c.relrowsecurity                                as rls_on,
       has_table_privilege('anon', c.oid, 'select')    as anon_can_read,
       has_table_privilege('anon', c.oid, 'insert,update,delete') as anon_can_write,
       (select count(*) from pg_policies p
         where p.schemaname = 'public' and p.tablename = c.relname) as policies
from pg_class c
join pg_namespace n on n.oid = c.relnamespace
where n.nspname = 'public' and c.relkind in ('r', 'p')
order by c.relrowsecurity, c.relname;

The Table Editor's Data API exposure badge and the Security Advisor list the same tables if you prefer the dashboard.

2. Close each open table

If the browser never needs the table (server-only data, logs, admin tables), take away the anon grants:

revoke all on table public.your_table from anon;
-- also from authenticated if logged-in users shouldn't reach it from the browser
revoke all on table public.your_table from authenticated;

Server code that uses the service role key keeps working. Don't revoke from service_role unless you're sure nothing server-side calls the table through the Data API.

If the browser does need it, turn RLS on and add policies that name a role and check the owner:

alter table public.your_table enable row level security;

create policy "Users read their own rows"
on public.your_table for select
to authenticated
using ( (select auth.uid()) = user_id );

With RLS on and no policy, Postgres denies everything, so the app may look broken until the policies are in. That's the safe direction to fail in.

3. Check the policies you already have

select tablename, policyname, roles, cmd, qual, with_check
from pg_policies
where schemaname = 'public'
order by tablename;

Watch for qual or with_check that's just true, and policies whose roles is {public} (no TO clause, so logged-out visitors get them too). The Supabase RLS check goes through these, plus privileged columns, views and SECURITY DEFINER functions.

4. Make new tables safe by habit

New tables are now hidden until granted. When your AI tool hits the permission denied for table error, the easy “fix” is a broad grant. Supabase's guidance is to treat three steps as one unit in the same migration: the grant, enable row level security, and the policies. Put that in your agent's rules so a grant never lands without RLS.

5. Prove it from the outside

With only the anon key and no session:

curl -s "https://YOUR_PROJECT.supabase.co/rest/v1/your_table?select=*&limit=5" \
  -H "apikey: YOUR_ANON_KEY" \
  -H "Authorization: Bearer YOUR_ANON_KEY"

Real rows back means the table is still open. A permission error or an empty list is what you want for private data.

Or run the free live-site check on your deployed URL. It finds the Supabase key in your public JS, tries tables while logged out, and gives a copy-paste fix prompt for each finding.

The VibePreflight team