Free tool
Supabase RLS policy checker
Paste the SQL that creates your row-level security policies (a migration, or your whole supabase/migrations folder) to find the policies that let the wrong people in: policies of true, sign-in-only checks, user_metadata roles, storage buckets anyone can list or write to, and security definer functions anyone can call. The check runs in your browser; your SQL is never uploaded.
Free, no sign-up. Based on Supabase’s Security Advisor lints and Postgres policy rules.
Rules last checked October 27, 2026 against Supabase’s and Postgres’s docs.
Your policies
Want the whole app checked and fixed?
This tool only reads the SQL you paste. The Launch Check reviews the whole AI-built app (sign-in, data access, keys in the browser, Stripe webhooks and deploys) and ranks every issue with evidence and a fixed quote to fix it. You get the report in 3 business days from read-only access. The $450 fee is credited toward the Rescue Sprint if you go ahead.
Policies are one part of it: see the full Supabase security review before launch, and check new tables with the grants and RLS checker. Found a problem? See how we fix Supabase RLS at a fixed price.
What the checker looks for
- Policies of true
- Insert, update or delete policies with using (true) or with check (true), which apply to other users’ rows too. Supabase’s database linter flags this as lint 0024 (“RLS Policy Always True” in its source, “Security policy allows unrestricted access” in its docs).
- Sign-in-only checks
- Policies that only test auth.uid() is not null or auth.role() = 'authenticated', so every signed-up user reaches every row.
- user_metadata in policies
- Roles or tenants read from user_metadata, which users can edit themselves with supabase.auth.updateUser().
- Policies with RLS off
- Policies on a table where row-level security was never enabled, or was disabled later, so the policies do nothing.
- Open with check
- Updates scoped by using but with check (true), which can let users change the owner if they have permission to update that column.
- Storage buckets
- Policies on storage.objects that only check the bucket, so anyone they cover can list and download every file, or upload, overwrite and delete files in other users’ folders.
- Security definer functions
- Functions that run with their owner’s rights and may bypass RLS. Check who can execute them, their search_path and any views that read with the owner’s rights.
- Overlapping and slow policies
- Permissive policies combine with OR. Applicable restrictive policies must also pass. The checker also flags per-row auth calls and omitted TO clauses.
Questions
- Is my SQL sent anywhere?
- No. The check runs in your browser with JavaScript, and the SQL never leaves the page. Usage statistics record counts of policies and findings. The optional contact link carries finding IDs and counts.
- How is this different from the Security Advisor in the Supabase dashboard?
- The Security Advisor checks your live database, which is the better source once a migration is applied. This tool reads SQL before it runs, so you can check a migration your AI builder wrote, or a pull request, before it reaches the project. Several of its checks follow the Advisor’s own lints.
- If the checker finds nothing, are my policies secure?
- Not necessarily. It reads the SQL text for common risky patterns. It can’t see policies changed in the dashboard or in earlier migrations you didn’t paste, what your functions do, or whether a policy matches what your app intends. Testing each policy as a second user is how you confirm it.
- Why is auth.uid() is not null not enough?
- Anyone can sign up for your app unless you close sign-ups, and your anon key ships inside it. A policy that only checks for a signed-in user lets every user read or change every other user’s rows through supabase-js.
- Why wrap auth.uid() in a select?
- Written as (select auth.uid()), Postgres can evaluate it once per query instead of once per row. The result is the same, and on large tables the query can be much faster. Supabase’s RLS guide recommends it.
- What should I paste?
- The files in supabase/migrations, in order, or the output of supabase db dump. Include the create table and alter table statements, so the checker can tell whether RLS is enabled on the tables your policies cover.
Rules last checked October 27, 2026 against these sources: Supabase row-level security guide, Supabase database linter, Supabase splinter lint source, Supabase Storage access control, Supabase securing your API and the Postgres CREATE POLICY reference. Using Firebase instead? Try the Firebase Security Rules checker. To check the live app too, paste its address into the free AI app security check. It looks for secret keys in the app’s JavaScript. Other Supabase errors: new row violates row-level security policy, Edge Function blocked by CORS and auth emails that link to localhost.
Link to this checker
Writing about Supabase security, a starter template’s README or a forum answer about RLS? You’re welcome to link here. The checker is free, needs no sign-up, and never uploads the SQL.
Fixed-price help for your app
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- AI-Built App Rescuefrom $450A Lovable, Bolt, Replit or Cursor app checked end to end in a $450 Launch Check, in 3 business days from read-only access. If you go ahead with the $1,950 Rescue Sprint that fixes its worst problems, the $450 is credited.
- App Fix Ticketfrom $450One reproducible bug in an existing mobile or web app. The $450 diagnosis finds the cause and is credited toward the fix: $1,200 in all.