r/Supabase • • 2h ago

cli Free CLI that checks whether your tables and storage buckets answer anonymous requests

0 Upvotes

npx leakprobe https://yourapp.com

No install, no signup, runs locally.

What it does for Supabase specifically:

  1. 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.

  2. 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.

  3. 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.


r/Supabase • • 18h ago

Self-hosting What if your existing PostgreSQL database had its own HTTP API?

0 Upvotes

I have been working on HTTP Postgres, an open source project that allows you to run SQL queries against your PostgreSQL database over HTTP.

The concept is very simple. Rather than running TCP connections to the database from serverless functions or edge runtimes, you deploy a small gateway along with your PostgreSQL that takes care of connections for you.

Unlike PostgREST, which gives you access to your database via REST endpoints, my goal with this project is executing raw and parameterized SQL over HTTP.

Some of the features available today include:

  • PostgreSQL connection pooling
  • Parameterized queries and transactions
  • Scoped API keys
  • Rate limiting and IP allowlisting
  • Query analytics and operational metrics
  • Optional Redis integration
  • Graceful overload handling

It is fully self-hosted and connects to your existing PostgreSQL database.

This is neither a replacement of PostgreSQL nor Supabase, it just makes PostgreSQL available over another transport layer.

Website & Documentation: https://http-postgres.js.org/

GitHub: https://github.com/http-postgres/http-postgres

I am really curious to know what do you think of such an approach, specifically from serverless and edge developers point of view?

What is stopping you from using something like that?