If a client writes that the new feature you added "says permission denied", the cause is probably not your code. Since 30 October 2026, a table created in a Supabase project is no longer reachable from the app until someone says it should be.
The change closes a real gap, and it also invites a quick fix that reopens it. This is what changed, what it does to the apps you have already delivered, and how to grant access without undoing the point.
What changed
A Supabase app reaches its database through the Data API, which the app in the browser calls with the project's public key. Until this year, every table created in the public schema was handed to that API automatically. Whether anyone could read it then depended on Row Level Security alone, and a table created without it was open to the internet from its first second.
Supabase has now removed the automatic step. In its announcement of the change, the rollout has three dates: it became optional for new projects in April 2026, the default for new projects from the end of May, and it applies to every existing project from 30 October 2026.
From that date a new table needs a grant, a statement that gives a role the right to use it, before the API will touch it:
grant select on public.orders to anon;
grant select, insert, update, delete on public.orders to authenticated;
Two roles matter. The anon role is every visitor who has not signed in. The authenticated role is everyone who has.
What breaks, and what does not
Tables that existed before the change keep the access they had. An app you delivered in the spring works as it did, and so do its gaps.
What breaks is new work on an old app. A table added today, by you or by a prompt in an AI app builder, answers the app with an error until it has a grant. On a test project the reply looks like this:
{
"code": "42501",
"message": "permission denied for table orders",
"hint": "Grant the required privileges to the current role with: GRANT SELECT ON public.orders TO anon;"
}
The same code, 42501, is also what a blocked write under Row Level Security returns. They are different problems. "Permission denied for table" means the grant is missing. A message about a row violating a policy means the grant is there and a policy said no.
The fix to avoid
The hint in the error is helpful and a little dangerous. Pasting it, or asking an AI tool to "fix the permission error", tends to end with every right granted to both roles on every table:
grant all on all tables in schema public to anon, authenticated;
That makes the error go away by putting the project back where it was before the change. For any table without Row Level Security, it is public again.
Grant what the screen needs and nothing more. A product list that visitors browse needs select for anon. A table of orders needs nothing for anon at all, and select, insert and update for authenticated. A table that only server code uses needs no grant for either role, which is now the default and a good one.
A grant is not an access rule
It is easy to read the change as "tables are safe now". They are not, and the two layers are worth keeping apart.
- A grant decides whether a role may use the table at all.
- Row Level Security decides which rows that role gets.
A table with a grant to authenticated and a policy whose condition is always true is exactly as open as it was last year: every signed-in user can read every row. The change stops the accident where a forgotten table is public. It does nothing about a policy that lets the wrong user in, which is the more common fault in apps built with AI tools. Five policies that leave a table open covers those.
The opposite mistake exists too. A grant with Row Level Security switched off gives the role every row. If you grant, switch the rules on in the same breath:
alter table public.orders enable row level security;
What to do with the apps you maintain
For each delivered app, three things are worth an hour:
- List what each role can reach. In the SQL editor, ask which tables anon and authenticated have rights on. Anything anon can write to should be there on purpose.
- Take away grants nobody uses. Old projects gave both roles every right on every table. A table the app never reads from the browser can lose them, and a revoke is easy to undo if a screen turns out to need it.
- Change how you add tables. Make the grant and the policy part of creating a table, in the same migration, so that the access a table has is something somebody decided.
The keys have changed as well. New projects use a publishable key in place of the anon key, and the Supabase documentation on API keys says the older keys are being phased out. Both work the same way in the app: they identify the project and are meant to be public. If you look for a key in an app's JavaScript, the new one starts with sb_publishable_ and the old one is a long string starting with eyJ.
What it means for the client
A client does not need to hear about grants. They need to hear that the platform under their app became stricter, that their app keeps working, and that additions now take one more deliberate step. That is a good line in a monthly report, and a fair example of why a delivered app needs someone looking after it: the ground under it moves even when nobody touches the code.
The change also gives you a natural moment to check what the app answers to a stranger. Ask for each table without signing in, and again as a second user. Whatever comes back was open before 30 October, and it still is.