Field notes

What your public site can leak.

Short, practical write-ups for people shipping Next.js on Vercel with Supabase or Neon. How to check RLS, client bundles, Storage, and Auth, then close the holes.

RSS feed

Start here
8 Oct 20267 min read

How to tell if your Supabase tables are readable with the anon key

The publishable key in your Next.js app is not a secret. Check grants and RLS, then prove it with curl against the REST API.

Read the note →
  1. 23 Oct 20267 min

    auth.uid() is not null is not RLS

    Supabase's RLS examples compare auth.uid() to an owner column. A policy that only checks auth.uid() is not null, or auth.role() = 'authenticated', admits every signed-in user.

    Read →
  2. 23 Oct 20267 min

    Stripe webhooks with no signature check

    Stripe signs every webhook in the Stripe-Signature header. A handler that returns 2xx for an empty POST with no signature has already skipped that check.

    Read →
  3. 23 Oct 20267 min

    Supabase anon can list your storage buckets

    listBuckets() returns every bucket's name and public flag when the publishable key can select storage.buckets. That catalog is a different leak from a public object URL.

    Read →
  4. 23 Oct 20267 min

    Supabase auto-confirm and open signups

    Confirm Email off means Supabase treats the address as verified. Combined with public signup, a new account gets a confirmed session without proving the inbox.

    Read →
  5. 23 Oct 20267 min

    Which env vars to rotate after the Railway breach

    Railway's October 2026 disclosure says some decrypted environment variables may have left the platform. What to roll, what Railway's Postgres guide actually says, and what a publishable key is not.

    Read →
  6. 15 Oct 20268 min

    Is your Neon connection string in your Next.js bundle?

    A Neon DATABASE_URL is a role and a password. How it lands in a Vercel client bundle, how to grep .next/static, and how to rotate the role without dumping rows.

    Read →
  7. 15 Oct 20266 min

    The Clerk publishable key belongs in the browser. The secret key does not.

    Clerk's pk_ key is safe in a Next.js client. The sk_ secret key and the whsec_ webhook secret are not. How the prefixes collide with Stripe, and how to rotate a leaked secret key.

    Read →
  8. 15 Oct 20267 min

    The Firebase web API key is not the secret

    Firebase says the web apiKey only identifies the project. Security Rules decide who can read. How to test your own Realtime Database, Firestore, and Storage, and why a service-account JSON in the bundle is different.

    Read →
  9. 8 Oct 20266 min

    How NEXT_PUBLIC_ puts secrets in your Next.js client bundle

    Next.js inlines NEXT_PUBLIC_ values into browser JS at build time. How to find a leaked key in .next/static, why service_role is a takeover, and how to rotate.

    Read →
  10. 8 Oct 20265 min

    Lock down Supabase Storage public buckets and listable objects

    A public bucket skips read checks. A private bucket with a wide SELECT policy still lists every object. How to tell which one you have, and the SQL that closes it.

    Read →
  11. 8 Oct 20266 min

    Pre-launch security checklist for vibe-coded Vercel + Supabase apps

    A last-pass checklist before you share a Next.js preview: client bundles, RLS, Storage, and Auth. Mechanisms you can test with curl, not a score you have to trust.

    Read →
  12. 8 Oct 20266 min

    Supabase Auth posture: open signup, anonymous users, and public profiles

    /auth/v1/settings is readable with the project URL plus the public (anon/publishable) key. How to read disable_signup, anonymous sign-in, and autoconfirm, what to change in the Dashboard and SQL, and how profile tables leak.

    Read →