Supabase / Data API / 2026-10-30
New Supabase tables stop being public by default on October 30.
After 2026-10-30, a table you create in the public schema is not automatically granted to the Data API roles. Your app gets "permission denied" until you add the GRANT. Here is what that looks like and the lines to run.
The short answer
For every new table the client should reach: turn on RLS, write the policy, then GRANT to the roles that need it. A GRANT is access to the table; RLS still decides which rows. Symptom of a missing GRANT: HTTP 401 or 403 with code 42501 "permission denied for table".
The GRANT lines to add.
-- Run per table, in a migration. Enable RLS first. alter table public.your_table enable row level security; grant select on public.your_table to anon; -- only if a public read is intended grant select, insert, update, delete on public.your_table to authenticated; grant all on public.your_table to service_role;
If you create tables often, including through an AI builder, set default privileges once so a new table does not ship with no grants:
-- Optional: make future tables in this schema pick up the same grants. alter default privileges in schema public grant select, insert, update, delete on tables to authenticated; alter default privileges in schema public grant all on tables to service_role; -- Add anon only if every new table should be publicly readable (rarely true).
Test it from the outside, the way a visitor would: request the table with your public key and confirm you get rows back where a read is meant to be public, and a permission error where it is not.
Ship Check now flags this.
The Ship Check Complete Scan reads the tables your public site already queries and reports any that answer "permission denied" to the anon role, with the exact GRANT statement. It is read-only: one request per table, no rows downloaded, nothing written.
Grant change questions, straight answers.
Do not find out from
a broken signup form.
Last updated: October 2026