Home / Supabase Oct 30 change
SupabaseLovable · Bolt · Replit · CursorOct 30, 2026Supabase Oct 30 change: what breaks and how to fix it
On October 30, 2026 Supabase applies a new default to every existing project: new tables in the public schema are no longer reachable through the Data API until you grant access. Here's what that means for an AI-built app.
Short answer
Per Supabase's changelog, after the change reaches your project, any new table you create in public needs an explicit GRANT before supabase-js (or REST/GraphQL) can see it. Existing tables keep their current grants and stay reachable. If you only connect over a direct Postgres connection (psql, an ORM, a server with a connection string), you're not affected.
Timeline
- Apr 28, 2026: opt-in toggle at project creation.
- May 18, 2026: pg_graphql no longer enabled by default.
- May 30, 2026: new behavior becomes the default for new projects (gradual rollout).
- Oct 30, 2026: new behavior enforced on all existing projects.
What breaks
Previously, Supabase granted select, insert, update and delete on every new public table to anon, authenticated and service_role. After the change, a new table exists but isn't reachable, and requests fail with:
{
"code": "42501",
"message": "permission denied for table your_table",
"hint": "Grant the required privileges to the current role with: GRANT SELECT ON public.your_table TO anon;"
}
Supabase says you need to act if your app uses the Data API on public tables, your migrations create public tables without GRANT statements, or your AI coding tool, CLI script or Management API call creates tables and expects them to work right away. Tables in storage, auth, realtime and custom schemas are not affected. RLS behavior is unchanged.
Seeing the error already? Our full walkthrough is here: Supabase error 42501: "permission denied for table".
How to fix it
Supabase recommends treating grant, RLS and policies as one unit, in the same migration that creates the table:
-- 1. Grant only what each role needs grant select on public.your_table to anon; grant select, insert, update, delete on public.your_table to authenticated; grant select, insert, update, delete on public.your_table to service_role; -- 2. Enable RLS alter table public.your_table enable row level security; -- 3. Add policies create policy "users can read their own rows" on public.your_table for select to authenticated using ((select auth.uid()) = user_id);
Skip the anon grant if logged-out visitors shouldn't read the table. Before Oct 30, Supabase's Security Advisor flags affected tables and shows remediation SQL, and the Table Editor shows a Data API exposure badge.
anon with RLS off, or putting the service_role/secret key in frontend code. Both make the error go away by making your data public.Want to switch now?
Supabase documents running these in the SQL Editor to adopt the new behavior early. Existing objects keep their grants:
alter default privileges for role postgres in schema public revoke select, insert, update, delete on tables from anon, authenticated, service_role; alter default privileges for role postgres in schema public revoke usage, select on sequences from anon, authenticated, service_role;
The changelog also documents a rollback if this breaks an opted-in project.
Copy-paste prompt for your AI tool
Supabase no longer auto-grants Data API access to new tables in the public schema (enforced on existing projects from Oct 30, 2026). For every table you create from now on, write ONE migration that: 1. Grants only the privileges anon, authenticated and service_role need. 2. Enables Row Level Security. 3. Adds policies scoped to (select auth.uid()) = user_id. Never disable RLS, never grant everything to anon, never use the service_role key in client code. Then list any existing migrations that create public tables without GRANT statements.
Not sure your app is ready?
The $15 pre-launch safety check looks for missing grants, tables with RLS off, and keys in your frontend, and gives you paste-in fix prompts.
Target turnaround 24h · Refund if it finds nothing useful
Sources
- Supabase changelog: Breaking change — tables not exposed to Data and GraphQL API automatically
- Supabase docs: Database API 42501 errors
- Supabase docs: Row Level Security
Last reviewed Oct 26, 2026. Unbreak My Code is independent and not affiliated with Supabase.