Developer builds SQL-based Supabase RLS audit tool that bypasses AI guesswork
A developer has created a structured audit tool for Supabase Row Level Security (RLS) that relies on direct SQL queries rather than asking AI agents to infer security configurations. The tool queries Postgres catalogue views such as pg_tables and pg_policies to surface concrete issues including tables with no RLS, overly permissive policies, public storage buckets, and tables with RLS enabled but no attached policy. Unlike typical AI-assisted audits, the prompt instructs the model only to run a fixed SQL block and report results, ensuring findings are grounded in actual database state. The tool is designed to be pasted into AI coding environments like Claude Code or Cursor and runs against a live Supabase project in around thirty seconds at no cost. The developer noted that all detected issues can silently reappear after migrations or ad-hoc fixes, which motivated building a broader monitoring product called Defencecore to track catalogue changes over time.
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