Notes · Vibe-coded apps

Is my Lovable app secure? Five things to check before launch

Apps built with Lovable, Bolt and similar tools usually sit on Supabase. These are the five places their security comes undone, and how to check each one yourself.

← All notes
Written by
Rob Paddock
Published
21 November 2026
Reading time
4 minutes
Topic
Vibe-coded apps

Most apps built with Lovable, and many built with Bolt, Replit or v0, store their data in Supabase. That is a good choice. It is also why the same few problems turn up in almost every one we look at.

The cause is nearly always the same. The app talks to the database straight from the browser. That is fine, but only when the database itself decides who may see what. If nobody told it, it lets everyone see everything.

These are the five checks we make first. You can do most of them yourself in half an hour.

The five checks

  1. 01Every table has row level securityThe browser key is public by design. The rules on each table are the only lock.
  2. 02No secret keys in the browserPayment, email and AI keys belong on the server, never in the code the browser downloads.
  3. 03The server checks before it actsAnything that costs money or changes data is checked by the server, not just hidden by the screen.
  4. 04Uploaded files are privateA public storage bucket means anyone with the address can open a customer's file.
  5. 05There is a way backBackups exist, someone has tried restoring one, and you know who to call.

1. Row level security on every table

Your app's Supabase address and its "anon" key are in the browser for anyone to read. That is how Supabase is meant to work, so finding them is not a problem in itself.

What protects your data is row level security: a rule on each table saying which rows each user may read or change. A table without it, or with a rule that says "anyone", is open to the whole internet.

Check it: open your Supabase dashboard and look at each table. Every one should show row level security as enabled, with rules that mention the signed-in user. Then sign in to your app as one user and try to open something that belongs to another. If it loads, the rules are wrong.

2. No secret keys in the browser

Some keys must never leave the server: Supabase's service role key, Stripe's secret key, and the keys for OpenAI, Anthropic, Resend and similar services. Anyone who has them can spend your money or read all your data.

AI tools sometimes put them straight into the page code to get a feature working.

Check it: open your live app, view the page source and the files it loads, and search for service_role, sk_live, sk- and secret. Anything found needs to move into a server function, and the key needs replacing, because it has already been public.

3. The server checks before it acts

Hiding a button is not the same as stopping someone pressing it. If the screen hides "Delete" from ordinary users but the server never checks, anyone who knows the request can still send it.

Payments are the common case. An app that unlocks a paid feature when the browser says "payment succeeded" can be unlocked without paying.

Check it: list everything in your app that costs money, sends email, or changes someone else's data. For each one, ask where the check happens. The answer should be a server function or a database rule, never only the page.

4. Uploaded files are private

Profile photos can be public. Invoices, contracts, ID documents and anything a customer uploads should not be.

Check it: in Supabase, open Storage and look at each bucket. A public bucket serves every file to anyone with its address. Private files belong in a private bucket, handed out through short-lived signed links.

5. There is a way back

Security is also about what happens after a mistake: a bad release, a deleted table, a key that leaked.

Check it: find out what backups your database plan includes and how far back they go. Then ask the harder question: has anyone restored one? A backup nobody has tried is a hope, not a plan.

What the built-in scans miss

Several app builders now include a security scan, and you should run it. It catches the obvious gaps, such as a table with no rules at all.

What it cannot know is your business. It cannot tell that a manager should see their team's records but not another team's, or that a refund should need a second person. Those rules only exist in your head, and they are where the expensive mistakes hide.

If you found something

That is normal at this stage, and all five are fixable, usually in days rather than weeks. The order matters: close the open doors first, then add tests so they stay closed.

If you would like us to look, we do a free launch check: send us the address and you get a short recording of what we can see from the outside, within one working day. The full assessment is a day's work at a fixed £400, and it is explained here.

Related

Where to read next

Next note · Vibe-coded appsYour vibe-coded app works. Here is what breaks when real users arrive. →
Book a call