Check your Supabase app's data is really private
Supabase is behind most apps built with Lovable, Bolt and friends. Its public key is meant to be in the browser; row-level security is what keeps each user's data their own. Vern checks it the way an attacker would, with your permission.
Any app using Supabase for its database, sign-in, storage or Edge Functions, whatever built the front end.
Check your live Supabase app, free
What goes wrong in Supabase apps
The problems Vern finds most often, what catches each one, and a prompt to paste back into your AI tool.
Tables anyone with the public key can read
With row-level security off, or a policy that allows everything, the public key in your app's code reads the whole table. That's how customer lists leak.
Vern catches it with: The Supabase exposure check (Vern tries to read each table with only the public key) and the database audit, on verified apps from Builder up.
Prompt to fix it in Supabase
Turn on row-level security for every table in the public schema, and write policies so users can only select, insert, update and delete their own rows (auth.uid() = user_id). Show me the SQL and which tables changed.
Policies that trust what users can edit
A policy that checks user_metadata (for example a “role” field) can be passed by any user, because users can edit their own metadata.
Vern catches it with: The code scan of your supabase/migrations folder, with a connected GitHub repository.
Prompt to fix it in Supabase
Find every policy or function that reads user_metadata or raw_user_meta_data to decide access. Move roles to app_metadata or a separate table only admins can write, and update the policies.
Signed-in users can read each other's data
The most serious problem in AI-built apps. The app shows each user only their own orders or messages, but the database behind it will hand anyone's rows to any signed-in user who asks for them directly.
Vern catches it with: The data access test: Vern signs in as two test users and tries to read one's data as the other. Builder (one a month), Pro, Agency, or a $29 Deep check.
Prompt to fix it in Supabase
Check every table that holds user data. Make sure the database itself only lets a signed-in user read and change their own rows (row-level security or a server check on every query), not just that the app's screens hide other users' rows. Show me each table and the rule that protects it.
The service_role key outside the server
The service_role key ignores every rule. In front-end code, a public repository or a client app, it hands the whole database to whoever finds it.
Vern catches it with: The free check and the code scan, including old commits.
Prompt to fix it in Supabase
Remove the Supabase service_role key from all client code and the repository, use it only in Edge Functions or server code via an environment variable, then roll the key in the Supabase dashboard.
No backup you control
A bad migration or an AI tool told to “clean up the database” can delete real data. Know where your copy is and that it works.
Vern catches it with: Vern Backup: nightly backups through a read-only login, into your own storage, each one checked. Pro, Agency and Vern Care.
Prompt to fix it in Supabase
Before changing the database: show me exactly which tables and rows this will change or delete, and make it a migration file I can review, not a direct edit.
Checking a Supabase app with Vern
Start with the free check. Each step after it goes deeper, and none of them changes anything in your app.
- 1
Run the free check on your live address
Leaked keys, files left on the server, weak settings and outdated libraries, in under a minute. No account.
- 2
Add the app and prove it's yours
Sign up free, add the address and verify it. Vern only runs the deeper tests on apps their owners have verified.
- 3
Run the data access test
Create two throwaway test accounts in your app and give them to Vern. It checks whether one can read the other's data.
- 4
Connect the code
Connect the repository, including your supabase/migrations folder, so the code scan can read your policies and functions.
- 5
Let Vern keep watching
Scans after every deploy and every day, uptime, and on Pro the daily signed-in check, backups and payments health.
Questions
Does Vern need my service_role key?
No, and it will tell you to rotate it if it finds it. The tests use only the public key and two test accounts you create. Backups use a separate read-only login you make with one SQL snippet.
Will the tests change my data?
No. They only read. The data access test signs in as your two test users and tries to read, never write or delete.
Does this work without Lovable or Bolt?
Yes. Any app that uses Supabase, however it was built.
Rather we fix it?
“Fix it for me” fixes one problem at a fixed price. Rescue takes on the bigger jobs, and Care looks after the app every month.
Get helpKeep it checked
From $19 a month: scans after every deploy, the data access test, the code scan and uptime. Pro adds backups, the daily signed-in check and payments health.
See plans