01DataRLS on exposed tables
stops an exposed table from ignoring the boundaries between usersPending
When it appliesExposed Supabase/Postgres
What you're checkingTables reachable from the Data API have RLS and explicit policies for the allowed operations. A table that's never exposed can use a different access boundary.
Quick test
Create two test accounts. Create a record with one. Try to read, modify and delete it using the other.
It passes if
The second account can't access or alter the record, and the first one's legitimate operations still work.
If you use Supabase or Expo
Turning on RLS without policies doesn't set up permissions: it leaves the table closed to the publishable key. Also review views and functions, which can bypass what you expect.
Technical detail
An inventory of exposed tables and their policies, one per operation:
select schemaname, tablename, rowsecurity
from pg_tables
where schemaname in ('public')
order by tablename;
select schemaname, tablename, policyname, cmd, roles, qual, with_check
from pg_policies
where schemaname in ('public')
order by tablename, cmd, policyname;Adapt the list of schemas to the ones your API exposes. Then repeat the tests as anonymous and as an authenticated user for all four operations.
Evidence I accept: a complete inventory, policies per operation and tests that prove what's allowed and what's denied.