Skip to content
Blog

Is my app safe to launch if AI built it?

Maybe. Apps made with AI app builders tend to go wrong in the same three places, open database tables, secret keys in the code and sign in checks that only happen on the screen, and you can spot all of them before anyone signs up.

By Adrian Davies · · 6 min read

An app built with Lovable, Bolt, Replit, Cursor or any other AI tool can be safe to launch, but only if someone has checked three things: that the database is locked, that no secret keys are in the code people's browsers download, and that every sign in check also happens on the server. Those three are where AI built apps go wrong most often, and you won't see any of them by clicking around the preview.

A few days ago I wrote about why I love AI app builders and what they won't do for you. This is the practical follow up, on how to check yours.

How common are the problems?

Common enough that I'd assume your app has at least one until you've checked.

I don't think any of this means the tools are bad. They build what you ask for, and most people don't know they need to ask for the locks.

Problem 1: are my database tables open?

Loads of AI built apps use a hosted database, usually Supabase or Firebase. They're good products, but the way they work catches people out.

Your app's code runs in every visitor's browser, and it carries a key to talk to the database. That's normal, and the key is meant to be public. Your data is protected by the rules on each table, which say who can read and change which rows. In Supabase that's row level security. In Firebase it's security rules.

If those rules are missing or too loose, anyone who opens the browser's developer tools can copy that public key and ask your database for every user, every message and every order.

To check, open your database dashboard and go through every table. Each one should have row level security (or rules) switched on, with a policy that only lets people see their own rows. If it says "enabled" but there's no policy, or the policy says "allow all", it isn't locked.

Problem 2: are there secret keys in my code?

Some keys are fine to be public, like the one above. Others must never leave your server: payment keys, email service keys, AI keys, and admin database keys like Supabase's service role key.

AI tools sometimes drop these right into the code that goes to the browser, because it's the quickest way to get a feature working. Bots scan the web for them all day long. Once one's found, someone can run up your AI bill, send spam from your email account or read your whole database, depending on the key.

To check, search your frontend code for any key that starts with sk_, or has "service_role" or "secret" in it. If you find one, move it to the server, then make a new key and delete the old one. You have to do both, because the old one may already have been copied.

Problem 3: does my app check sign in on the server?

This one's sneaky. An app can hide the admin page from anyone who isn't an admin, so it looks locked. But if the server sending the data doesn't check who's asking, anyone can type the address in or call the server directly and get the data anyway.

A hidden button keeps nobody out. Every request for private data has to be checked on the server or by the database rules, every single time.

To check, sign in as a normal user and try to open an admin page, or someone else's page, by typing its address. Then sign out and try again. If you see anything you shouldn't, the check is only happening on the screen.

What else should I check before launch?

Check Why it matters
The padlock (https) on every page Without it, passwords and data can be read on the way
Source maps switched off They can hand anyone a readable copy of your whole app's code
Admin and test pages removed or locked AI tools often leave them linked
Spending limits on AI and cloud accounts A busy day, or a stolen key, can't empty the bank
Backups switched on and tested You'll only find out they don't work when you need them
A privacy notice that matches what the app does UK GDPR applies the moment you collect a name or email

How do I check my app quickly?

Paste your app's address into vela for apps, my free app check. You get a score out of 100, a count of problems at each traffic light, and the top 3 in plain English. It looks for secret keys in your public code, source code left public, which backend holds your data and any admin or developer pages that are linked, and it checks the website basics too, like the padlock and a privacy notice.

It can only see what anyone's browser can see, so it can't log in or test your database rules from the inside. Think of it as a first look before a full security test.

When you want me to go through it by hand, a Launch Ready Check is £399 fixed. I look under the bonnet of the app you've built, whoever or whatever built it. I check the locked data, the secret keys and the sign in checks, whether it'll cope once people start using it, and what it'll cost to run. You get a report in words you'll understand, with what to fix first and a fixed price to fix it.

Questions people ask

Is a Lovable app secure?

It can be. Lovable, like the other builders, has added security scans and better defaults. But whether your data is safe still comes down to your database rules, your keys and your sign in checks, and the builder's own terms put that on you. Check those three before you launch.

Is the Supabase anon key safe to have in my code?

Yes, it's designed to be public. It's only safe if row level security is switched on for every table, with policies that limit what each user can see. The service role key is a different thing, and it must never be in your frontend code.

Can AI fix the security problems it made?

Often, if you ask it the right thing, like "turn on row level security for every table so users can only read their own rows". But AI will sometimes tell you it's fixed something when it hasn't. Test the fix yourself by trying to get at data you shouldn't be able to see.

Do I need a security check before launch if my app is small?

If it stores anything personal, yes. UK GDPR doesn't have a size limit, and a small app with open tables leaks just as much as a big one. A quick check costs far less than having to tell your users their data got out.

AI got you to the start line fast, and that's brilliant. I'd just check the locks before the crowd turns up.

AIGuides