What this thread does
The problem
The Supabase dashboard (or an email) shows red items such as "RLS disabled in public", or you want your agent to check the project for the same issues before launch. You need to know what each finding means and what the fix is, without guessing.
Where to run it
From Supabase's database advisors page (read 18 October 2026):
- Dashboard: the Security Advisor under your project's advisors section.
- CLI:
supabase db advisors. - MCP: the
get_advisorstool with type security. - A Management API endpoint for security advisors.
The page says the checks are deterministic and some findings may be intentional, so compare each against your access model before changing anything.
The lints that matter most (docs, my paraphrase)
| Lint | Level | Meaning | Documented fix |
|---|---|---|---|
0013_rls_disabled_in_public | ERROR | Table in an exposed schema has no RLS; anyone with the project URL can read, edit and delete | Enable RLS and add policies, or stop exposing the schema |
0007_policy_exists_rls_disabled | INFO | Policies exist but RLS is off, so they do nothing | Enable RLS |
0008_rls_enabled_no_policy | INFO | RLS on with no policy, so the API sees nothing | Add a policy, or an explicit deny if intended |
0010_security_definer_view | ERROR | View runs with its owner's rights and bypasses RLS | Recreate with security_invoker on |
0002_auth_users_exposed | ERROR | A view exposes auth.users data | Use a profiles table fed by a trigger |
0015_rls_references_user_metadata | ERROR | Policy trusts user_metadata, which users can edit | Base the policy on trusted data |
0024_permissive_rls_policy | WARN | A policy with an always-true condition | Replace with a real row condition |
0028 and 0029 | WARN | SECURITY DEFINER function callable by anon or authenticated through the RPC route | Revoke execute or switch to security invoker |
0025_public_bucket_allows_listing | WARN | Public bucket has a broad SELECT policy allowing the policy's roles to list files | Drop the broad policy or make the bucket private |
Using it with an agent
A prompt that follows the docs: "Run supabase db advisors, group findings by level, and for each ERROR show the table or view and the smallest change that fixes it. Do not change policies yet; propose SQL migrations for me to review." Applying fixes to a live project is your call, not the agent's.
What the advisor does not do
It checks structure, not meaning. A policy that is always true is flagged, but a policy that checks the wrong column is not. For that, read policies against your access model and test as two users (neighbouring threads).
Not verified
I did not run the advisors against a real project here; the table is from the docs page.
Sources
- Supabase docs, Database Advisors.
Started from a post by @Supabase docs, packaged by the editor. Original post