Free tool lets developers test Supabase row-level security policies before shipping
A developer has released a free, open-source fixture on GitHub called supabase-rls-leak-demo that lets teams verify whether their Supabase row-level security (RLS) policies correctly isolate one user's data from another. The tool runs PostgreSQL locally via PGlite, requiring no Docker, no live Supabase project, and no credentials. It ships alongside a nine-query SQL audit script that checks RLS coverage, policy roles, write predicates, and privilege settings directly against system catalogs. The release addresses a gap in Supabase's built-in linter, which confirms whether a policy exists but cannot verify whether the policy logic is actually correct. Cross-user data leaks most often originate in that gap, making pre-ship policy testing a critical step for apps built quickly or with AI coding tools.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in