Job

Fix a Supabase table that returns nothing to signed-in users, safely

On one Supabase table a signed-in test user sees and changes only their own rows, while a second user and a signed-out visitor see none of them, shown by a repeatable test.

What you get

  • A migration or SQL change with comments, delivered as a pull request
  • The two-user test and its recorded results
  • A short note explaining each policy in plain words and which key belongs where

and 1 more

Price
From $515Final price agreed before we start
You pay
The agreed fixed price after the agreed two-user test passes and you sign off.
Term
One job
How soon
We set up the day after you ask and start work within three days.

No passwords, keys, card details or admin invites needed to start.

Price and terms in full

From $515 Final price agreed before we start

Quoted after we read the table definition, its policies and your access rule. The price is then fixed for one table and one rule; if the rule involves teams, several tables or complicated sharing, we say so before any extra work.

You pay
The agreed fixed price after the agreed two-user test passes and you sign off. No payment before sign-off.
Includes
One table, one access rule and the policies for all four operations; The two-user test, the migration, the plain-words note and the key-placement check
Term
One job
Technology
Supabase, PostgreSQL, Row-level security
Delivery
Start window and delivery date agreed in writing after eligibility and access checks.

Nothing is charged or booked when you send your details. The written quote confirms the total price and any tax before you accept.

What usually happened

You might be seeing

  • A table has rows in the dashboard but the app shows an empty list with no error
  • Adding or updating a row fails with a permission or policy error for a signed-in user
  • Data appears only when the protection is switched off, or when a server key is used
Who it’s for, the full result, and when it starts

Who it’s for: A founder or product owner whose app reads from a Supabase table and gets an empty list, no error or a permission error for signed-in users after row-level security was turned on, or who is tempted to switch the protection off to make data appear.

The result: For one named table, a signed-in test user reads exactly their own rows and can insert and change only their own; a second signed-in user and a signed-out request see none of the first user's rows and cannot change them. You receive the policies as a reviewable change, the test results and a note on where server-only keys must stay.

Usually starts when: Data exists in the table and shows in the dashboard, but the app's list is empty or an insert is refused, usually just after row-level security was enabled, a policy was edited or authentication was added.

With row-level security on, a table with no matching policy returns no rows to the browser. A policy may name the wrong role, test a column that does not match the signed-in user, run for signed-out visitors where the user identifier is empty, or cover reading but not writing. The job finds why the policies do not match the user, writes the narrowest policies that do, and proves who can and cannot see each row.

What you get

All 4 things you get
  • A migration or SQL change with comments, delivered as a pull request
  • The two-user test and its recorded results
  • A short note explaining each policy in plain words and which key belongs where
  • Reversal steps and any limits found

Included

  • One named table (and at most one directly related table) in one Supabase project, with its policies for reading, inserting, updating and deleting as agreed
  • Explain why the current policies and role grants return nothing or refuse writes for the test user
Show 4 more
  • Write the narrowest policies that fit the agreed access rule, such as each user reaching only their own rows, naming the signed-in role explicitly
  • Check how the app calls the data: that browser code uses the browser-safe key and that a server-only key is not in browser code
  • Write a repeatable test with two test users and a signed-out request, covering reading, inserting, updating and deleting
  • Apply the change as a migration file that you review and run yourself

Not included

  • A security audit or penetration test of your whole project
  • Redesigning your data model, tenancy or roles beyond the one agreed access rule
  • Migrating or repairing existing rows, or fixing data that was exposed in the past
  • Authentication provider set-up, billing or email configuration
Show 2 more
  • Anything that needs the live project's keys: you run the migration yourself
  • Production deployment, which stays with your team

How we know it’s done

Agreed with you before work starts. Each check produces evidence you keep.

Fix Supabase empty results (RLS): 4 checks and the evidence you keep4 checks, each with the evidence you keep: 1 User A reads exactly rows owned by A (evidence: Expected and actual row counts); 2 B reads none of A's rows, attempts refused (evidence: Status and affected row count); 3 A can insert, update, delete own row (evidence: Output for each operation, the refusal); 4 No server-only key in browser code; reversal works (evidence: Key-placement check, secret scan, reversal run). When all pass: sign-off (Review policies, results, repeat one test, sign off). When a check fails: Test does not pass: you do not pay.What we checkEvidence you keep1 User A reads exactly rows owned by AExpected and actual row counts2 B reads none of A's rows, attempts refusedStatus and affected row count3 A can insert, update, delete own rowOutput for each operation, the refusal4 No server-only key in browser code; reversalworksKey-placement check, secret scan, reversalrunAll pass: sign-offReview policies, results, repeat one test, sign offA check failsTest does not pass: you do not payYou decide here Fix Supabase empty results (RLS): 4 checks and the evidence you keep4 checks, each with the evidence you keep: 1 User A reads exactly rows owned by A (evidence: Expected and actual row counts); 2 B reads none of A's rows, attempts refused (evidence: Status and affected row count); 3 A can insert, update, delete own row (evidence: Output for each operation, the refusal); 4 No server-only key in browser code; reversal works (evidence: Key-placement check, secret scan, reversal run). When all pass: sign-off (Review policies, results, repeat one test, sign off). When a check fails: Test does not pass: you do not pay.1 User A reads exactly rows owned byAEvidence: Expected and actual row counts2 B reads none of A's rows, attemptsrefusedEvidence: Status and affected row count3 A can insert, update, delete ownrowEvidence: Output for each operation, therefusal4 No server-only key in browser code;reversal worksEvidence: Key-placement check, secret scan,reversal runAll pass: sign-offReview policies,results, repeat onetest, sign offA check failsTest does not pass:you do not payYou decide here
The checks we run, the evidence you keep for each, and what happens next. Drawn from the checks on this page.
The 4 checks in full, with the evidence you keep
  1. On the non-production copy, test user A reads exactly the rows owned by A, and the count matches the synthetic data.

    Evidence: The test output with the expected and actual row counts for A.

  2. Test user B and a signed-out request read none of A's rows, and attempts by B to insert a row owned by A, or to update or delete A's rows, change nothing and are refused.

    Evidence: The test output for each attempt with the status and affected row count.

  3. User A can insert a row owned by A, update it and delete it, and cannot insert a row owned by someone else.

    Evidence: The test output for each operation and the refusal.

  4. No server-only key appears in browser code, the diff contains no secret and the migration has a working reversal on the copy.

    Evidence: The key-placement check, a secret scan of the diff and the reversal run.

Sign-off. You or your authorised maintainer review the policies and the test results, run the migration on your own project and repeat one test, sign off in writing and merge. Payment follows sign-off.

If it fails. If the two-user test does not pass on the copy, you do not pay for this fixed scope. If the access rule is more complex than agreed or live exposure is suspected, we explain what we found and stop. Wider work needs a new written agreement.

How we deliver

Fix Supabase empty results (RLS): how it is delivered, step by stepSteps in order: 1 Agree in writing (table, access rule, two test users, non-production copy); 2 Reproduce empty result (as signed-in test user, second user, signed-out request); 3 Compare policies (role grants, the way the app passes session); 4 Write narrowest policies (reading, inserting, updating, deleting, signed-in role); 5 Run two-user test (all four operations and signed-out case); 6 Independent reviewer (try to read and change another user's row); 7 sign-off (Review policies, results, repeat one test, sign off). You decide at step 1 and the sign-off. We stop and tell you if any of the 4 conditions listed on this page applies.1 Agree in writingtable, access rule, twotest users,non-production copy2 Reproduce emptyresultas signed-in test user,second user, signed-outrequest3 Compare policiesrole grants, the way theapp passes session4 Write narrowestpoliciesreading, inserting,updating, deleting,signed-in role5 Run two-user testall four operations andsigned-out case6 Independentreviewertry to read and changeanother user's row7 Sign-offReview policies, results,repeat one test, sign offWe stop and tell you ifany of the 4 conditions listed on this page appliesYou decide here Fix Supabase empty results (RLS): how it is delivered, step by stepSteps in order: 1 Agree in writing (table, access rule, two test users, non-production copy); 2 Reproduce empty result (as signed-in test user, second user, signed-out request); 3 Compare policies (role grants, the way the app passes session); 4 Write narrowest policies (reading, inserting, updating, deleting, signed-in role); 5 Run two-user test (all four operations and signed-out case); 6 Independent reviewer (try to read and change another user's row); 7 sign-off (Review policies, results, repeat one test, sign off). You decide at step 1 and the sign-off. We stop and tell you if any of the 4 conditions listed on this page applies.1 Agree in writingtable, access rule, two test users,non-production copy2 Reproduce empty resultas signed-in test user, second user,signed-out request3 Compare policiesrole grants, the way the app passes session4 Write narrowest policiesreading, inserting, updating, deleting,signed-in role5 Run two-user testall four operations and signed-out case6 Independent reviewertry to read and change another user's row7 Sign-offReview policies, results, repeat one test, signoffWe stop and tell you ifany of the 4 conditions listed on this pageappliesYou decide here
How we deliver it, in order. A box with a coloured border is where you decide. Drawn from the delivery steps on this page.
The 6 delivery steps in full
  • Agree the table, the access rule, the two test users and the non-production copy in writing
  • Reproduce the empty result or refused write as a signed-in test user, a second user and a signed-out request, recording what each sees
  • Compare the policies, the role grants and the way the app passes the user's session to find why they do not match
  • Write the narrowest policies for reading, inserting, updating and deleting that implement the agreed rule, naming the signed-in role
  • Run the two-user test across all four operations and the signed-out case, and check where each key is used in the app
  • Have an independent reviewer try to read and change another user's row and check the diff, then hand over the migration and reversal steps

When it fits, and when we stop

It fits when

  • The app uses Supabase's data interface and signed-in users through Supabase authentication
  • The access rule can be stated in one or two sentences (for example, each user reaches only rows where a column equals their identifier)
Show 2 more
  • A non-production project or a local copy exists where the policies can be tried with test users and synthetic rows
  • An authorised maintainer on your side reviews and runs the migration

We stop and tell you if

  • The rule depends on complicated sharing, teams or roles that cannot be stated in a sentence or two, so a larger design job is needed
  • The only way to reproduce the problem is with live customer data or live keys
Show 2 more
  • The table was exposed publicly and may have been read by others: that needs an incident response before any repair
  • The cause is an outage or a billing problem with the Supabase project itself

Check whether this job fits

These questions separate a missing or mismatched policy from other causes. They need no keys, data or code.

Answer 4 questions to see if it fits
What exactly does the app get?
Is the user signed in at the moment of the call?
Can you state the access rule in one or two sentences?
Is there a non-production copy where policies can be tried?

Answer the questions to see whether this job fits.

Nothing is sent anywhere until you choose to email us.

Ask about this job

Checks you can run yourself
  1. Check whether protection is on and which policies exist

    In the Supabase dashboard open the table's policies page. Note whether protection is enabled, which operations each policy covers and which roles each one names. Do not change anything.

    Look for: A table with protection on and no policy, a policy that covers reading but not inserting, or a policy that names a different role from the one your signed-in users have.

What could go wrong

3 risks, and how we handle each

Before you run it, nothing changes. After the migration, a down-migration that restores the previous policy definitions is provided, which your maintainer can run. Reversal restores the earlier behaviour, including an empty list, so it is a recovery step and not a fix.

Scroll the table sideways to read it all.

RiskHow we handle it
A policy that is too wide exposes other users' rows.The check tries to read and change another user's row and read as a signed-out visitor, and every attempt must fail.
A server-only key in browser code bypasses every policy.We check where each key is used and tell you to rotate any key found in browser code, which only you can do.
A migration run against the live project locks or exposes data.The migration is tried on a non-production copy first, is reviewed by you and is run by you, with the reversal steps ready.

An independent reviewer tries to read, change and delete another user's row and to read as a signed-out visitor, and checks that no server-only key is in browser code. Your maintainer reviews and runs the migration. This is not a security audit.

What you can check

Other ways to get this done
  • Supabase's own guide to row-level security explains policies, the signed-in role and why a table with protection on and no policy returns nothing. Your developer can follow it for a simple table. supabase.com
  • PostgreSQL's documentation explains default-deny behaviour and the difference between the rules for existing and new rows. www.postgresql.org

Questions

Can I just turn row-level security off?

Not safely. Without it, anyone holding your browser-side key can read and change every row the key reaches. The job exists to make the rules work, not to remove them.

Do you need my service key?

No, and it should never be in browser code. We work from an exported schema on a non-production copy.

What if my rule involves teams?

A team or role rule needs a membership model and more careful policies. We would quote that as a larger job.

Is this a security audit?

No. It fixes one table against one agreed rule and proves who can and cannot see its rows. It gives no assurance about the rest of your project.

Ask about this job

What to send us, what comes later, and who owns what

Send us

  • The table name, the column that identifies the owner of each row and the access rule you want, in plain words
  • What the app sees (empty list, error text) and whether the user is signed in at that point
  • Whether a non-production project or local copy exists
  • Do not send keys, connection strings, real rows, source code or an access invitation in your first message

Later, once you agree

  • The schema and policy definitions for the agreed table, exported without data, through an agreed company-controlled route
  • The app code that reads and writes the table, through the same route, with no keys
  • A non-production project or local copy with two test users, set up by you or with your written approval
  • The name of the person who reviews and runs the migration

You own the Supabase project, its keys and its data. We work from an exported schema and a non-production copy with synthetic rows and test users, through a company-controlled identity, never a personal login. We never hold your live keys. You run the migration on the live project.

Add detail (optional)

A web address anyone can open, with no login in it. No code or logs.

We reply by email. Sending this emails your request to our team; nothing is kept in a website database. Please do not send passwords, keys or customer records. Privacy notice.

Email fallback: open your mail app

If website submission is unavailable, review and send the fallback email yourself. An email fallback is not a website receipt. Or write to hello@syntheticindustry.ai and say which job you mean.

Last revised 13 October 2026