Blog
Short, practical notes on leaked keys and open Supabase tables. RSS feed
November 26, 2026
With anonymous sign-ins on, "authenticated only" means anyoneSupabase anonymous users get the authenticated role. A policy that says to authenticated using (true) lets any visitor read every row. Scope rows to the owner.
November 21, 2026
Your Supabase users can make themselves admin if RLS trusts user_metadatauser_metadata in the Supabase JWT is editable by the signed-in user. Policies that check it for roles can be bypassed. Use app_metadata instead.
November 20, 2026
A security definer function can hand your whole table to anonSupabase functions created in the Dashboard are owned by postgres, which bypasses RLS, and any role can call them by default. Lock them down.
November 19, 2026
NEXT_PUBLIC_ secrets stay in your live JavaScript until you rebuildNext.js inlines NEXT_PUBLIC_ values into the browser bundle at build time. Renaming the variable doesn't remove a leaked key. Rotate it, then redeploy.
November 18, 2026
A public Supabase bucket means anyone with the link gets the filePublic Storage buckets skip access control for downloads. Fine for avatars, not for user documents. The fix: private buckets and signed URLs.
November 17, 2026
Your Supabase view can leak a table that has RLS onPostgres views run with their creator's privileges by default, so a public view can skip Row Level Security. The one-line fix.
November 16, 2026
Supabase's secret keys fail in the browser, but that won't save youSupabase is retiring anon and service_role keys by the end of 2026. What the new sb_secret_ browser block does, and what it doesn't.
November 15, 2026
Deleting a leaked key is not enough: revoke it firstA secret that hit a commit keeps working until you revoke it. What GitGuardian's 2026 report found, and the fix order.
November 14, 2026
Check your JS bundle before you share the linkSearch your live JavaScript bundle for server secrets, and a fresh finding on open Supabase tables.