Oleh Leskiv · 23 November 2026

Is my Lovable or Bolt app safe to launch?

Before real users sign up to an app built with Lovable, Bolt, Cursor, Replit or v0, check four things. No secret keys sit in the browser code. Every database table has access rules. One user cannot open another user's data. Signed-out visitors cannot reach signed-in pages. You can run all four checks yourself, and this article shows how.

The problem

Why an app that works can still be unsafe

AI coding tools are good at what you can see: screens, forms and the main flow. You test the app by clicking through it as yourself, and it works.

Security problems sit in what that test never touches. Clicking through your own account tells you nothing about what a stranger can read with a direct request to your database, or what a second user sees when they change an ID in the address bar.

The tools know this. Lovable runs a security scan every time you publish, and its documentation says the scans do not replace a thorough security review (opens in a new tab). Run the scan your tool offers first, fix what it reports, then do the four checks below.

Do this first

Four checks you can run yourself

You need a browser, two test accounts and access to your database dashboard. None of the checks needs you to read code.

  1. Look for secret keys in the browser

    Open your live app, open the browser's developer tools and search the loaded files for sk_live (a Stripe secret key), sk- (an OpenAI key) and sb_secret_ (a Supabase secret key). Publishable keys are meant to be public, such as a Stripe key that starts with pk_ or a Supabase key that starts with sb_publishable_. Older Supabase projects use long keys that start with eyJ. One of those, the anon key, is public. If you find a second, different one, compare it with the service role key in your Supabase settings.

  2. Check access rules on every table

    Open your database dashboard and go through the tables one by one. Supabase flags a table without row-level security as unrestricted in the table editor and lists it in its Security Advisor. Anyone who has your public key can usually read such a table, and often change it. Every table that holds user data needs row-level security switched on and at least one policy.

  3. Test with two accounts

    Sign up as user A and create a record, such as an order or a document. Copy its address. Sign in as user B in another browser and open that address. Then change the ID in the address to another number. If user B can see or edit anything of user A's, the access rules are wrong.

  4. Open the app signed out

    Sign out and open the address of a signed-in page, such as the dashboard, the admin panel or a paid feature. You should be sent to the sign-in page every time. Check the admin pages with an ordinary user account too.

If a check fails

What to do when you find a problem

An exposed secret key is urgent. Create a new key in the provider's dashboard and revoke the old one first. Then move the call that uses the key from the browser to the server. Removing the key from the code is not enough, because the old key stays valid until you revoke it.

Missing access rules come next. Switch on row-level security and add a policy for each table before you invite more users. Then repeat the two-account test, because a policy that is too broad passes the dashboard check and still leaks data.

You can ask the AI tool to make these fixes. Check the result with the same four tests afterwards. A fix that looks right in the chat is not proof that the rule works.

Beyond the self-check

What you can't check without reading the code

The four checks cover the problems that expose user data. A Code Audit also looks at the problems that stop an app from growing.

  • Tests

    Does anything run sign-up, the main action and a payment automatically before each change goes live?

  • Repeated code

    AI tools often write the same logic several times. A bug fixed in one copy then survives in the others.

  • Deploys

    Is every release built and checked the same way, or does it depend on someone clicking the right buttons?

  • Data model

    Will the tables you have now carry the features you plan next, or will each one need a migration first?

  • Errors

    What does the user see when a request fails or a form gets bad input, and is anything lost?

  • Speed and cost

    Which pages and queries will slow down or get expensive when you have ten times the users?

How far to go

How much checking does your app need?

The more your app holds, the less a self-check is enough.

Self-checkIndependent Code Audit
A demo or waitlist with no user dataEnoughOptional
Sign-in and content that users createDo it before you invite usersRecommended
Payments, personal data, or several companies in one databaseDo it firstDo it before launch

This is our rule of thumb. If you handle health, financial or children's data, check which regulations apply to you as well.

The next step

What a Code Audit adds

A Nexera AI Code Audit costs $300 and takes 3 business days. A senior engineer reads the repository, the database rules and the deployment, and writes a report on what is unsafe, what to keep and what to rebuild.

You also get a Milestone plan with a fixed price for the first fix, and a walkthrough call. The report is yours to use with us or with anyone else, and the fee is credited if you continue with AI App Rescue.

FAQ

Questions, answered

Are apps built with Lovable secure?

They can be. Lovable scans database access rules and dependencies when you publish, and its own documentation says the scans do not replace a thorough security review. Run the scan, then test access with two accounts before you invite real users.

Is it safe to expose the Supabase anon key?

Yes. The anon key, called the publishable key in newer projects, is designed to be public, as long as every table has row-level security with correct policies. The service role key, or secret key, is different. It bypasses row-level security and must stay on the server.

How do I know if row-level security is on?

Open the table editor in your Supabase dashboard, where a table without row-level security is flagged as unrestricted, and check the Security Advisor. Then test with two accounts, because a table can have row-level security on and still have a policy that lets everyone through.

What should I do if my API key is exposed?

Revoke the key and create a new one in the provider's dashboard straight away, then move the code that uses it to the server. Check the provider's usage log for requests you didn't make.

Can I fix security problems by prompting the AI tool again?

Often, yes, for a single problem such as a missing access rule. Repeat the checks afterwards. When fixes start breaking other features, the code needs tests and a review, which is what AI App Rescue adds.

How much does a security audit of an AI-built app cost?

A Nexera AI Code Audit costs $300, takes 3 business days and covers security, code quality and what to keep or rebuild. The fee is credited if you continue with the fixes.

Not sure what your app needs?

Book a free Scope Call and tell a senior developer where the app breaks. The Code Audit costs $300 and you get the report in 3 business days.

Last updated: