JustHandled Labs
Menu
// database security

Supabase RLS Doctor

Audit local Supabase migrations and client code for the row-level-security mistakes that can expose data, with severity, exact evidence, and a verification step for every review target.

We earn a commission on eligible purchases after a new Agensi signup through these links. We also sell our own skills on Agensi.

Format: Agent skill, not a browser app. You need an AI agent that can load its instructions and use the required tools.

Package requirements: The local scanner requires Python 3 plus terminal and file-read permissions. Without Python or matching files, use the manual checklist; that is not scanner execution. Agensi supporting-file execution remains unverified here.

You get: Local, read-only findings on RLS policies, authentication checks, service-role key exposure, storage access, grants and migration drift. It does not certify the deployed project.

Licence and purchase details

Review the package licence at the destination.

Review the offer and access method at your chosen marketplace. Agensi provides connected-agent access, not a download. Buying a skill does not include an AI-agent subscription or setup service.

Agensi access: This product’s bundled-script workflow through Agensi has not been verified here. Tests of other products do not establish this package’s compatibility. Local setup examples apply to separately obtained downloadable packages.

See tested hosts, versions and workflow limits.

What it inspects

What you give it

Point the workflow at the local project evidence you want reviewed: SQL migrations and policy files, Supabase client initialization code, a database schema snapshot, and storage policy configuration. Declared file scopes include its own package, matching *.sql files, and supabase/migrations/*.

The scanner uses the Python 3 standard library. If Python or matching files are unavailable, the skill falls back to its manual checklist instead of inventing a result.

What comes back

The local scanner prints Markdown or JSON findings. Each finding is ranked from Critical to Info and includes the affected object or file, exact review evidence, impact, a proposed fix, and a verification step. The checklist then covers policy semantics and live-project boundaries the heuristic scan cannot prove.

supabase-rls-doctor / review
$ scan local Supabase evidence
 
CRIT profiles: migration creates table without enabling RLS
HIGH posts_select: review USING (true) for public intent
MED avatars: confirm public bucket is intentional
 
read-only evidence, remediation, verification

Useful before

Permissions and safety boundary

Known limitations

The scanner is heuristic. It can identify risky patterns and missing local evidence, but it cannot prove a schema is secure or determine whether a deliberately public policy matches the product's business rules. Project-level settings, deployed drift, Security Advisor state, runtime JWT claims, and role-by-role behavior require manual or user-approved live testing.

Views, security-definer functions, grants, storage behavior, and authorization encoded outside matching files may need direct review. Treat a clean result as a smaller review queue, not a certification.

Use the Supabase RLS pre-launch checklist to build the identity-operation matrix and live evidence the local scan cannot see.

// choose with context

Is Supabase RLS Doctor the right skill?

Best fit

Review a supplied project for row-level-security configuration risks.

It returns

Local, read-only findings on RLS policies, authentication checks, service-role key exposure, storage access, grants and migration drift. It does not certify the deployed project.

Do not use it as

Not a security certification or proof of deployed policy behavior. Role-by-role authorization still needs separate testing.

Compatibility, access, version, and licence

Reads or accesses
Supplied SQL migrations, policy files, schema snapshots, client initialization and storage-policy context. The scanner does not connect to the live project.
Compatibility
The local scanner requires Python 3 plus terminal and file-read permissions. Without Python or matching files, use the manual checklist; that is not scanner execution. Agensi supporting-file execution remains unverified here.
Version
Verify the current package version at the linked destination.
Licence

SKILL.md terms
Paid commercial skill. Use for personal or internal team workflows. Do not resell, redistribute, or publish the package as-is.

README wording
Paid commercial skill. You may use it for your own workflows and internal team workflows. Do not resell, redistribute, or publish the skill package as-is.

Source: saved Agensi creator-route documentation checked 27 October 2026. These are separate source quotations, not a statement that their wording is equivalent or a new licence grant.

What happens next

Open the Agensi listing, check the current offer and connect a supported agent. Agensi loads the skill through its connector; it no longer provides a download. Approve any purchase before use. Check Agensi’s current connection guide before changing an existing connection.

Questions

What Supabase security problems can it flag?

It flags missing or disabled RLS, apparently permissive policies, missing ownership checks, elevated-key references in frontend code, storage review targets, overbroad grants, and migration drift.

What project evidence can it inspect?

SQL migrations and policy files, Supabase client initialization code, database schema snapshots, and storage policy configuration. Declared scopes include matching SQL and migration files.

Does it connect to or modify my live project?

No. The scan is local and read-only. It does not change policies or settings, transmit project data, or install dependencies.

What does the report contain?

Severity-ranked findings with exact local evidence, impact, a suggested remediation, and a verification step, plus a manual review checklist.

Can it verify Dashboard and Security Advisor settings?

Not without separately approved live access. Deployed settings and role behavior require manual or user-approved testing.

Does a clean scan prove the database is secure?

No. It is a heuristic review tool, not a security certification. Test the intended authorization model by role and operation before launch.

Add Supabase RLS Doctor to your pre-launch review.

Current price and purchase option are shown on Agensi. The local scanner needs Python 3 and project-file access. It reviews local evidence without connecting to or changing your live project.

Get Supabase RLS Doctor on Agensi