Create a table in Supabase, and it may already have privileges for anon , authenticated and service_role . You never wrote a grant . They come from the default privileges of the role that created the table.
My client portal handled this the slow way: every migration revoked them, table by table. That works until one migration forgets. After a reader asked about it on a post about my RLS review , I tried to close the defaults instead. It took one migration, but two things surprised me on the way.
Why it matters (and why it's usually not a leak)
Privileges decide whether a role can touch a table at all. RLS decides which rows it sees. If RLS is enabled, extra privileges alone don't expose any rows.
The risk is the table where RLS was forgotten. Then the privileges are the only thing left, and they're already open. Closing the defaults means a forgotten grant fails loudly with "permission denied" instead of quietly working.
Step 1: read what new objects actually get
This is read-only.…