Skip to content

Supabase's October 30 change: new public tables need a grant for Data API access. What to doSupabase's October 30 change is live: new public tables need a grant for Data API access. What broke and how to fix it

25 tools · 142 fixes · 43 issue guides · Sources: Supabase, GitHub, Vercel, postgresql.org + 56

Topics

Database and row level security

These guides are about data that the client can reach. On Supabase, tables in the public schema are on the API, and row level security is what decides who can read a row. Firebase rules and storage policies do the same job for Firestore, Storage, and file buckets. Lovable's own Supabase notes call missing policies a common way app data gets exposed, so that guide sits here too.

Grants sit under row level security and decide whether a role reaches a table at all. On existing Supabase projects, the October 30, 2026 change means a new table in the public schema gets no Data API access until a role is granted it. The grant guides here cover the change itself, a read-only check for what each role is missing, and writing grants into your migrations.

Functions and views need their own checks. Any role with EXECUTE on a function in public can call it at /rest/v1/rpc, as Can anyone call your Supabase functions? explains. A view in the default mode reads its tables as its owner, which is why Do Supabase views bypass RLS? sets security_invoker.

These pages are guides to checks and fixes. Dated reports about missing or bypassed row checks are on Row Level Security incidents, including CVE-2025-48757 for Lovable-generated sites, and Supabase fixes lists the guides that include a Supabase section.

Guides

Questions

Does turning on row level security without a policy lock the table?

On Supabase, enabling row level security with no policy means the anon and authenticated roles cannot read or write through the API. That is safer than leaving it off, and it will also break the app until you add the policy you actually want. Write the policy, then test it as a second user.

Will a secret key still read every row after I add policies?

Yes. Supabase documents that the secret key bypasses row level security. Policies apply to the publishable key and to signed-in users. Keep the secret key in server code only.

Is a public storage bucket the same bug as a public table?

It is the same kind of mistake. Anyone with the file URL can read the object. User uploads belong in a private bucket, with a policy that checks the owner, and the file should not be served as HTML from your own origin.

Firebase says the client API key is fine to ship. What is the control?

The web config is meant to live in the client. Firestore and Storage rules are the control. Rules that allow any read and write, or that are still in test mode, make the database public to the client SDK.

Recently updated