How to test if your Supabase data is public
Test the intended anonymous role against a table you own, using known synthetic data or a count-only request. Do not use a service-role key because it can bypass the policies you are trying to evaluate.
Check your app free, first fix freeFirst confirm the project and table belong to your app. Use the public client key and avoid returning row contents. A positive count can show anonymous readability; zero or an error may not settle the question. Follow with controlled account tests because anonymous denial does not prove that signed-in users are correctly separated.
Confirm the target before sending a request
Find the project URL actually used by the published application. Do not combine a key from one project with an endpoint from another. If the build contains several configurations, identify the explicit client binding rather than guessing from whichever strings appear first.
Make a short list of tables and their intended audiences. A public pricing catalog is different from private invoices. If a table should be publicly readable, document that intention and review the columns and operations separately. The goal is to find unintended exposure, not to ban every anonymous read.
Prefer a count or a synthetic record
For your own Supabase REST endpoint, a count-only request can avoid transferring row values. Keep credentials in local environment variables rather than pasting them into a shared terminal recording. This example is a diagnostic pattern; adapt the project, public key and table locally.
curl --head --silent --show-error \
"$SUPABASE_URL/rest/v1/your_table?select=*" \
-H "apikey: $SUPABASE_ANON_KEY" \
-H "Prefer: count=exact" \
-H "Range: 0-0"Review the status and Content-Range rather than fetching a page of records to prove a point. Depending on the endpoint and policy, zero can mean there are no visible rows, not that every future row is protected. A transport failure or wrong table name should not be reported as a pass.
If you use a modern publishable key, follow Supabase's current header guidance. It is not a user JWT. Do not place it into an Authorization bearer header as though it were a signed-in user's access token. A malformed-authentication error can otherwise look like a reassuring denial.
Establish positive and negative controls
On staging, create a synthetic record you know exists and is meant to be private. Verify the owner can retrieve it through the normal authenticated application path. Then test the anonymous caller and a different account separately. If even the owner cannot see the record, an empty result from everyone else tells you very little.
For the two-account case, use the local tool with the actual owner column. An organization identifier or membership table may require a more specific test than a single user_id comparison. Review sharing rules instead of forcing a one-owner pattern onto every application.
Turn a finding into a repair
If anonymous access reaches private rows, inspect table grants and all relevant policies. Review UPDATE and INSERT checks as distinct operations. Avoid disabling RLS just to clear an application error. After tightening access, repeat the positive owner control as well as the negative tests.
An outside scanner should not retrieve customer data, try privileged credentials or infer a safe result from an unsupported response. Preserve the exact scope and uncertainty when handing the result to another developer.
Turn the check into a release decision
Keep a small record of the production URL, the time you checked it, the exact finding and the action you took. A local preview and a deployed application can have different environment variables, response headers and database projects. After a repair, deploy the intended version and check the public address again. Do not assume that changing a repository file changed the live system.
Read coverage as carefully as the score. A timed-out asset, an ambiguous backend configuration or a request that could not safely establish access should remain unknown. It should not disappear from your release notes merely because there is no red finding. If a check was not completed, decide who will review it and what additional evidence is needed.
ProofForge's free report includes the first fix. The $9 Fix Report unlocks all findings' available repair guidance and builder prompts, with a PDF and private report link. Fix + Guard costs $29 once and adds builder rules, on-demand deploy-hook scans for 30 days and four weekly rechecks you start yourself. These are different deliverables, not different promises that an application is completely secure.
Keep private report URLs out of public issues and commits. If you need shareable evidence, use the owner-verification and publication flow for an eligible receipt. A signature protects the recorded assessment against undetected changes; it does not make the assessment exhaustive, prove a business outcome, or show that a later deployment still matches an earlier result.
Questions builders ask
Does a zero count prove the table is protected?
Should I test with my service-role key?
Will the scanner show private row values?
Related checks and fixes
Continue with a related guide
Sources
Scan your app free
See what your live app ships to every visitor, with the first fix free. A clean scan is not a full audit. Run it only on an app you own or have permission to test.
Scan your app free