What is Supabase RLS?

Published 2026-11-16, updated 2026-11-30 by Nordik. Written with AI from the sources listed at the end.

Short answerRow Level Security (RLS) is the database's own set of rules about who may read or change each record (row).

RLS is a Postgres (database software) feature that Supabase uses to control access to your app's data. A row is one record, such as one order, and each policy (one rule) is an extra condition added to every request to a table, so a signed-in user can be limited to their own rows.

It matters because your public key is in every browser. Supabase's documentation says to turn RLS on for every table your app's API can reach: a table without RLS there can be read by anyone who has your public key.

To check, run this read-only query in the Supabase SQL editor; it lists each public table with true or false for RLS.

Query

select tablename, rowsecurity from pg_tables where schemaname = 'public' order by tablename;

Then read each policy under Authentication, Policies. Supabase's documentation says a condition of true for the anon role (visitors not signed in) gives every visitor read access, and that views bypass RLS by default.

RLS can be on and still leak. Each common mistake, with a fix prompt to paste, is in Supabase RLS mistakes that still leak data.

Sources

Each source below was accessed on the date shown. Documentation changes over time, so check the source for the current wording.

  • Supabase documentation, Row Level Security, accessed 2026-11-29

See what your live app shows strangers

Paste the link to your app: in under a minute the free scan shows what your live app hands to any visitor, and where to look first. No sign-up, and it never signs in or changes anything.

Run a free scan

Want the code itself read? Order the $49 audit or see a sample report. Your card is held and charged only when your report is delivered. It is not a pentest: the audit is done by AI, and a second AI checks each serious finding.