Supabase security · 7 minute read
Hiring a Supabase RLS reviewer: questions to ask, evidence to demand, and honest price ranges
If you are handing a Supabase project to another team, passing a compliance checkpoint, or you inherited a codebase where "RLS is enabled" was one line in a handover document, you will probably buy a review. This is how to buy one without wasting money: what the report has to contain, what the reviewer should ask you for, the red flags in a proposal, and what each price range actually buys.
"RLS is enabled" is not the thing you are buying
Enabling RLS on a table changes nothing by itself, and a review that stops at relrowsecurity = true has not reviewed anything. What actually decides whether your data is exposed:
- Every table needs policies that match the roles your app really uses. A table with RLS on and no policy is simply closed to
anonandauthenticated— fine, until someone adds a permissive policy later. - Table owners bypass RLS unless
FORCE ROW LEVEL SECURITYis set. If migrations or server code run as the owner, RLS is decorative for those paths. - Permissive vs restrictive semantics. Several permissive policies are OR-ed together; restrictive policies are AND-ed. Counting policies tells you nothing — the combined predicate does.
- SECURITY DEFINER functions. Who owns them (a
BYPASSRLSor superuser owner makes RLS irrelevant inside the function) and whethersearch_pathis pinned. - Grants, not only policies. A write grant to
anonplus aFOR ALLpolicy withoutWITH CHECKis a write path that no policy listing will highlight. - pg_default_acl.
ALTER DEFAULT PRIVILEGESapplies to tables created later — a per-table review cannot see it. - Views without security_invokerrun with the view owner's rights, not the caller's.
All of the above are catalog facts. None of them require reading a single row of your data — which is why a competent review does not need your service_role key.
What a reviewer should ask you for
A credible engagement is read-only: a role that can read the system catalogs but cannot SELECT application tables, or a sanitized schema dump. The evidence set is small and well known — pg_policies, pg_class.relrowsecurity and relforcerowsecurity, pg_proc joined to pg_roles, information_schema.role_table_grants, and pg_default_acl.
If a proposal starts with "give me the service_role key", that is not a review. That is full access with no stated need — and it is a security decision you cannot undo afterwards.
Red flags in a proposal
- The deliverable is a list of generic recommendations with no query behind each line.
- The whole scope is "we will enable RLS on all tables" — no policy semantics, no definer functions, no grants.
- No ranked findings, or severities assigned without a sentence explaining how the issue is reachable from your app.
- No statement of limits. Any review that claims to prove your app secure from catalog reads alone is overselling. A catalog review is not an exploit test, and zero findings is not proof of safety — it means the checks that ran found nothing.
What "done" looks like
A report a second engineer can reproduce: the exact query, the object name, the observed value, and a fix. Five to ten ranked findings is a normal, healthy report for a mid-size project. Then a re-scan after the fixes, so you can see the diff rather than trust a sentence.
Price ranges, honestly
- $0 — run the catalog checks yourself. The 12-check set, a read-only role template and a real sample output are free.
- around $95 — fixed-scope spot check of about five tables, a written ranked report, documents-only.
- around $195–$450 — full project review: policies, definer functions, grants, default ACLs, ranked findings and a fix plan.
- Above that you are usually buying a retainer, not a review.
Two things are worth paying for: someone who can name the exact catalog object behind each finding, and someone who will state what they did not test.
Questions to ask in the first call
- Which catalog views will you query, and can I see the queries before I hand over access?
- How do you handle table owners and
BYPASSRLSroles? - What do you do about
ALTER DEFAULT PRIVILEGES? - How do you treat views and
SECURITY DEFINERfunctions? - What will you be unable to see, and how will that appear in the report?
- Will you re-scan after fixes, and what does that cost?
If the answers are specific, you are talking to someone who has done the work. If they are generic, keep your money.
Before you pay: run the catalog checks yourself
The 12 read-only checks this scope is built on — RLS off, FORCE RLS missing, permissive exposure, missing WITH CHECK, PUBLIC policies, unpinned search_path, definer functions owned by privileged roles, write grants to anon, default ACLs, and views without security_invoker — are free, together with a read-only role template and a real sample output. Running them first means you hire for the findings you cannot close yourself, not for the basics.
Start with the free layer
Supabase RLS Drift Monitor · $0
The 12 catalog checks, a read-only role template, a sample findings output and the n8n workflow that diffs them nightly — free, no signup.
Get the free monitor ↗The 12 checks, explained →Fixed-price review
Spot check · $95 one-time
Five tables, ranks and evidence included, documents-only. Escrow-funded, work starts only after the milestone is funded.
See the spot-check scope →Or run the audits yourself with the $29 kit ↗Prefer the verdict instead of running the toolkit yourself?
Fixed-price reviews with the evidence, the SQL and the written verdict. Fixes are quoted separately. Instant checkout, no account needed.
Want the free first step? The RLS Drift Monitor runs 13 read-only catalog checks on a schedule. It never reads application rows; zero findings is not proof of safety.
Prefer escrow? $49 drift monitor setup or $95 exposed-key triage on Upwork. Work starts only after the fixed-price milestone is funded.
Related reading: what a documents-only review can prove, and what it cannot, spot check vs full audit — what each tier proves before you pay and how to test RLS policies as every identity that calls your API.