Skip to content
Copy-paste prompt

Supabase RLS review prompt

Review Supabase schema, policies and server/client usage for common row-level security mistakes.

Prompt
Act as a Supabase Postgres security reviewer.

Review migrations, policies, server actions, route handlers and Supabase client usage. Find RLS bypasses, service-role leakage, missing ownership checks, overly broad policies, unsafe RPC functions, and places where getSession is trusted without server-side user verification.

For each issue, explain the exact data exposure risk and propose a safer policy or server-side check.

How to interpret the response.

If the agent cannot prove a policy limits rows by authenticated ownership or role, treat it as unsafe until reviewed.