Supabase RLS checker

Drop your project folder (or paste a migration) to find tables without Row Level Security, policies that allow everything, public storage buckets and service_role keys in client code.

Run the check

Drop a project folder or files here

node_modules, .git, virtualenvs and build folders are skipped. Limit 25 MB / 5,000 files.

The Python engine (Pyodide, a few MB, cached by your browser) loads when you start.

The mistake

Every table in the public schema is reachable through Supabase's auto-generated REST API with the anon key that ships in your frontend. A table created without enable row level security, or protected by a policy with using (true) / with check (true), is open to that key.

Why it is dangerous

Without RLS, anyone can read (and, depending on grants, insert, update or delete) all rows. A (true) policy for anon means anyone on the internet; for authenticated it means any user who can sign up. Write access with (true) is how apps get their data wiped or spammed. Views in public run with the view owner's permissions by default and return every row of an RLS-protected table, and the service_role key bypasses RLS completely.

How to fix it

Enable RLS on every public table, then add policies for what each role may do:

alter table notes enable row level security;

create policy "users read own rows" on notes
  for select to authenticated using ((select auth.uid()) = user_id);

Keep using (true) only for SELECT on data that is meant to be fully public. Keep the service_role key in server-only code, never behind a NEXT_PUBLIC_ / VITE_ prefix.

What this checker looks for

This page runs supa-launch-check, which reads SQL migrations (supabase/migrations/*.sql), .env files and frontend code. The rules most relevant to this page:

RuleWhat it finds
SLC101Table in public schema without Row Level Security
SLC102Policy allows everything (using (true) / with check (true))
SLC103Storage bucket created as public
SLC104SECURITY DEFINER function without a fixed search_path
SLC105View in public schema bypasses RLS (no security_invoker)
SLC001Supabase service_role key in code
SLC006Client queries a table with no RLS evidence
SLC007Service key exposed through a public env-var prefix

Every finding has a rule id, a severity, file:line, the offending line (secrets masked), why it matters and how to fix it. Run supa-launch-check rules for the full list.

FAQ

Does it connect to my Supabase project?

Not on this site. It reads your migration files and code only. The command-line tool also has an owner-only live check that is not available here.

Which files does it read?

SQL migrations (for example supabase/migrations/*.sql), .env files and frontend code that calls supabase.from('table'), so it can cross-check which tables the browser uses.

Are my files uploaded anywhere?

No. The checker is Python running inside your browser tab (Pyodide, WebAssembly). Your files are read with the browser's File API and written into an in-memory file system that exists only in this tab. Your files are never sent anywhere. The only network requests load the Python runtime and the checker code, plus Google Analytics page-view counting, which never sees your files. You can disconnect from the internet after the engine has loaded and the scan still works.

Is a clean report a guarantee?

No. It is a static check for known patterns, not a penetration test. A clean report means none of these patterns were found, nothing more.

Can I run the same check on my machine or in CI?

Yes. Every checker on this site is an open-source command-line tool (MIT licence, Python 3.10+ standard library only). The results here are the same as `scan --json` on the command line, except for checks that need git (whether a file is committed or ignored), which cannot run in a browser.