GUIDE · SECURITY

Lovable app security: what to check before launch

What Lovable documents about security, and what to check from the outside before you launch.

2 min readLast checked

What Lovable documents

Lovable describes two built-in checks: a quick scan that runs when you publish (database access, dependencies, MCP servers) and a deep scan (among other things access control, unprotected endpoints, unsafe inputs, secrets, payments, authentication). Together they make up the Lovable security scan.

The documentation also says that API keys and other secrets cannot be stored safely in client code; the “Secrets” feature exists for that. You manage Row Level Security under “More → Database → Manage → Policies”. The quick scan looks for tables without access control per row.

What you check yourself before launch

Five points a visitor can see from the outside:

  • Does the shipped code contain a key that must not be public?
  • Is Row Level Security switched on for every table that holds user data?
  • Is there a legal notice (imprint) and a privacy policy?
  • Does the page load fonts or tracking from third parties before consent?
  • Are test and demo accounts removed or protected before launch?

Common mistakes

These mistakes follow from the Lovable documentation:

  • Relying on the scans alone. Lovable itself says they find common security issues but cannot guarantee complete security and do not replace a thorough review.
  • Running only the quick scan. It runs on every publish and covers a fixed set of checks; according to the docs, access control, secrets, payments and authentication are part of the deep scan.
  • Pasting keys into the project chat or hardcoding them. Lovable detects keys in the chat and points you to “Secrets”; store them there.
  • Never looking at the access rules. Under “More → Database → Manage → Policies” you can see every policy in your project.

Limits of this guide

We only name what Lovable documents. How secure your app is depends on what you built.

Frequently asked questions

Is the quick scan on publish enough?

According to Lovable it covers a fixed set of checks (database, dependencies, MCP servers) and runs on every publish. The deep scan also covers access control, unprotected endpoints, secrets, payments and authentication.

Does the scan make my app secure?

No. Lovable says the scans cannot guarantee complete security and do not replace a thorough review.

Where does an API key belong in Lovable?

In the “Secrets” feature, not in client code. How to find and replace a key in frontend code is covered in the guide “API key in frontend code”.

Where can I see my database access rules?

Under “More → Database → Manage → Policies”. Lovable lists every policy in your project there.

Sources

CHECK YOUR APP

Check your app

The free check loads your app like a visitor and shows what is visible from the outside. You confirm beforehand that you are responsible for the app or authorised to test it.

More guides

All guides →