PeekLok

All posts

Is your app's master key sitting in the browser?

Free scan: check my app Just your web address. Results in seconds. No signup, no card.

Supabase gives your app two kinds of key. The publishable key (or the older anon key) is meant for the browser. The secret key (or the older service_role key) is not.

Supabase's docs are blunt: a secret key bypasses every row-level security policy you have, and a leaked one exposes all of your project's data.

Quick check: open your live Lovable, Bolt or v0 app, view the page source and its JavaScript files, and search for sb_secret_ and service_role. If either turns up, ask your builder to move that code to a server or Edge Function, then follow Supabase's steps to rotate the leaked key.

Want us to look for leaked keys on your live app? The first check is free at https://peeklok.com

Chris, PeekLok

Related guides

Scan my app free