# Free Supabase RLS checker

> Short answer: check public Supabase table access using safe count-only requests and explain when a zero count remains inconclusive. This guide explains what to verify and what the public scan cannot prove, without logging in, changing records, or treating an inconclusive response as a pass.

## What the Supabase RLS checker check covers

This check identifies the public Supabase endpoint and the client key already shipped by the app, then probes eligible tables with a zero-row limit and exact-count preference where supported.

This free checker is an entry point into a broader read-only scan. Its output is evidence about a specific public response or browser asset, not a guarantee that the application, provider account, or private backend is safe.

The probe is read-only and does not retrieve row contents. A nonzero count is evidence that the request role can see rows; a zero count can mean either no rows exist or policy hides them.

## Understand the evidence before changing code

An anon or publishable key is designed to be present in a browser app. The result depends on Row Level Security, grants, and database policies that apply to that role.

Run the check against a production URL you own or are authorized to test. The browser-visible configuration is already public; never paste a secret value into the checker, a support ticket, or an AI prompt.

## Apply the narrow, safe change

If public access is confirmed, review the table's policies and grants. Enable RLS when appropriate and create owner-scoped rules; do not add a permissive policy or use a service-role key in the client.

Count-only request shape:

```http
GET /rest/v1/records?select=*&limit=0
Prefer: count=exact
apikey: <public anon or publishable key>
```

Results distinguish a confirmed response from a blocked or ambiguous one. A timeout, authentication wall, empty dataset, or host-level denial may prevent a conclusion; the tool should not turn missing evidence into a green result.

## Verify the production result

After the migration, repeat the check and separately test a known owner account and a different user. Use a safe test dataset rather than relying only on an empty production table.

If the checker finds an issue, use the linked repair guide to change the correct deployment setting. Keep least privilege, review the diff, and avoid disabling access controls just to make the status change.

## Keep the issue from returning

Keep a test for every exposed table and review new schema changes. The checker can only probe tables it can identify and access through the public API.

Re-run the checker after deployment and compare the new response with the original finding. If a CDN or build cache is involved, verify the actual public asset rather than assuming a successful deploy invalidated every copy.

## Limits and next steps

A count-only result avoids exposing row data but cannot prove that every query path is safe. Review RPC functions, storage, authenticated roles, and SQL grants separately.

The check is designed to avoid reading private application records. Where a provider offers a count-only or metadata response, the tool reads only that signal; it does not need row contents to explain the boundary.

A passing result covers only the advertised check and its observable surface. It does not replace dependency review, authenticated authorization tests, incident response, or a security assessment of code the public scanner cannot see.

## FAQ

**Can a clean Supabase RLS checker check prove the app is secure?**

No. It is evidence about the advertised public surface only. No. The request uses a zero-row limit and reads only the count signal.

**What should I do first if the finding is real?**

Review RLS and grants, then add policies for the intended user roles.

**Does ProofForge change application data?**

No. The scan is read-only and does not sign in, write records, or use a discovered secret. You make and review any remediation in your own project.

**What should I do after the repair?**

Re-run with a representative table and test owner versus unrelated users.

## Key facts

- A zero count is inconclusive when the table might simply be empty.
- The checker does not need to return record contents to test visibility.
- RPC functions and Storage require separate review from table policies.

## Sources

- [supabase.com](https://supabase.com/docs/guides/database/postgres/row-level-security)
- [docs.postgrest.org](https://docs.postgrest.org/en/stable/references/api/pagination_count.html)

## Related

- https://proofforge.live/tools
- https://proofforge.live/fix
- https://proofforge.live/check
- https://proofforge.live/methodology

---
Last updated 2026-11-25 · Reviewed by ProofForge. Methodology: https://proofforge.live/methodology. Scan your app: https://proofforge.live/
