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 just inherited a codebase where "RLS is enabled" was one line in a handover document, you will probably buy a review. Here is
If you are handing a Supabase project to another team, passing a compliance checkpoint, or you just inherited a codebase where "RLS is enabled" was one line in a handover document, you will probably buy a review. Here is how to buy one without wasting money.
1. "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 rowsecurity = 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
anon/authenticatedβ 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 DEFINERfunctions. Who owns them (aBYPASSRLSor 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.
2. 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/relforcerowsecurity, pg_proc joined to pg_roles, information_schema.role_table_grants, 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.
3. 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 you ran found nothing.
4. 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.
5. 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, 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.
6. 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.
The 12-check catalog set I use is free, including the read-only role template and a real sample output: Supabase RLS drift monitor. Fixed-scope reviews are listed here: spot check, and the rest of the ladder is on the products page.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.