security_supabase_rls_check
Supabase RLS / Postgres Policy Audit — Offline audit of Supabase/Postgres migration SQL for row level security holes: public-schema tables without ENABLE ROW LEVEL SECURITY (readable/writable with the anon key), DISABLE RLS, policies USING/WITH CHECK (true) for anon/public or authenticated, auth.role()-only checks, user_metadata trust, UPDATE policies without WITH CHECK, views that bypass RLS (no security_invoker), SECURITY DEFINER functions without search_path or exposed in public, GRANTs of write privileges to anon. Returns a per-table RLS/policy map, findings with fixes, score, grade and verdict OK/REVIEW/INSECURE. Param sql= (aliases text=, migration=). Price: $0.005 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "security_supabase_rls_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | e.g. create table public.profiles (id uuid primary key, user_id uuid, bio text); create policy read_all on public.profiles for select using (true); |