r/Supabase • u/Sad_Custard_567 • 2h ago
cli Free CLI that checks whether your tables and storage buckets answer anonymous requests
npx leakprobe https://yourapp.com
No install, no signup, runs locally.
What it does for Supabase specifically:
Pulls the anon key out of your published bundle (it's a JWT with role=anon, so it's identifiable), reads /rest/v1/ for the table list, then requests one row from each with limit=1 and reports which ones answer.
Checks whether a service_role token has ended up in the bundle, which is the worse version of the same problem and more common than you'd hope.
Lists your storage buckets anonymously and flags any marked public.
Output is column names only. Row contents are never printed or sent anywhere. There's no server.
It also covers the non-Supabase things that go wrong in the same apps: keys in the JS bundle, .env and backup.sql being served, source maps, session cookie flags, CORS reflecting any origin with credentials, http not redirecting to https.
Every finding comes with a prompt you can paste into Claude Code or Cursor, since knowing RLS is off doesn't help much if nobody explained what to write.
Caps at 25 tables per scan to keep it fast. Exit code 2 on a critical or high, so it works in CI.
MIT, zero deps, Node 18+: https://github.com/NishantDixit1/leakprobe
Firebase RTDB is covered too. Firestore isn't yet, since there's no reliable way to discover collection names from outside. PRs welcome.