ShipShape

Guide

Is my Lovable app secure?

A Lovable app can be safe to launch, and a grade of A does not prove it. A passive scan reads the public deploy. It does not see your tables, your auth settings, or anything behind login.

What the published app already shows

Lovable publishes a front end. The HTML, the same-origin scripts, and a handful of well-known files are what any visitor can download. That is the whole of a ShipShape Quick Check: leaked keys, exposed files such as /.env, missing security headers, cookie flags, and whether the URL stays on HTTPS. Matched secrets are masked. The free page writes out the fix for the single most serious finding.

The €19 Launch Report opens the rest of that same pass. It does not crawl further and it does not log in. Monitor, €9 per month, runs that same passive check every week and when a deploy hook fires. It is how you notice a later publish that adds a key or drops a header. It is not a second kind of test.

Lovable’s Quick scan and Deep scan

Lovable documents two built-in scans. In the project Security view they are Quick security scan and Deep security scan. Checked on 10 November 2026 against Lovable’s security overview. Lovable says these tools help find common issues and do not guarantee complete security. Optional third-party connectors are separate from these two scans.

Quick scan finishes a fixed set of checks in seconds and runs automatically every time you publish. The publish dialog runs it in the background. It covers database access rules and settings, including tables without per-record access control (row level security), rules that let everyone through, and leaked-password protection turned off. It audits known vulnerabilities in the project’s npm dependencies. It flags an MCP server the app exposes without authentication.

Deep scan reviews the application code for issues in that app’s logic, permissions, and data, and it includes every Quick scan check. It does not run automatically as you work. You run it from the Security view. Workspace admins can also start it from the Security center, and someone with edit access can ask for it in the project chat. Publishing an app whose MCP integration allows access without sign-in also starts a Deep scan in the background.

ShipShape does not review the Lovable project, and it does not replace those scans. It fetches the published URL the way a visitor does: the HTML, same-origin scripts, seven fixed paths, source maps those scripts name, headers, and cookie flags. A key or a database connection string in that response is masked and reported. Monitor repeats that same check every week and when a deploy hook fires. Lovable can see database policies and npm advisories. This check cannot. A grade here does not include Lovable’s scan results.

Lovable Cloud and a Supabase project you own

Lovable’s own docs describe two backends. The built-in Cloud backend is on by default and is managed inside Lovable. You can instead connect a Supabase project you own, and Lovable then creates tables, auth flows, storage, and edge functions in that project. Supabase’s troubleshooting note says the same split: Lovable Cloud does not appear in your Supabase dashboard and does not hand you the service role key; a connected project does. Sources: Connect to Supabase and Identifying Lovable backend.

An anon key in the browser bundle is normal for both. A service_role key in that bundle is not. Lovable’s integration page says API keys for services such as Stripe should stay in the Supabase project, not in the app code. If a scan shows one in the page, rotate it. The scan cannot tell you whether row level security is on.

Is it safe to put in production?

Safe here means two different things, and a grade only covers one of them. The public URL can be free of leaked server keys, exposed .env files, and missing headers, and the tables can still be readable by anyone who has the anon key. That key is supposed to be in the browser. What it can read is the policies, which this check does not see.

A name that starts with NEXT_PUBLIC_ or VITE_ is a build-time signal. The bundler copies the value into the JavaScript. It is not a lock. The env variable guide lists what is fine to ship and what is not. If you are about to turn the project off, or replace it, the shutdown checklist is the list of keys the old bundle still holds.

What you still have to check yourself

Ask whether each table the client reads has row level security enabled and a policy that matches the role. Supabase documents an optional event trigger, rls_auto_enable() with event trigger ensure_rls, that turns RLS on for new tables in public only. It creates no policies, and it does not change tables that already exist. The RLS check has the SQL and the limit. From 30 October 2026, a new table in public on an existing Supabase project also needs an explicit GRANT or supabase-js fails with 42501. Disabling RLS is not the fix. The 30 October explainer walks through the grant. If the badge already says enabled and rows are still public, the leaking-with-RLS-on guide covers using (true), with check (true), and a policy that trusts user_metadata.

Lovable’s auth docs say a connected Supabase project does not get automatic Site URL and redirect URL updates. If sign-in works in the Lovable preview and fails on the published domain, those URLs are the usual cause. That is configuration, not something a fetch of the homepage can see. Source: Users and authentication.

A practical order

Run the free check on the published URL, not the editor preview. Rotate anything it shows in the page.

In Lovable, open the Security view before you publish. Quick scan runs on publish. Run Deep scan from that view when you want the code review.

In the Supabase or Lovable Cloud database view, confirm RLS is enabled on tables the client can name.

Log in as one user, then as another, and change an id in the URL or the request. The second user should not receive the first user’s rows. The RLS guide spells that test out. This scan does not log in to run it.

For a new public table after 30 October 2026, add the GRANT and the policy in the same migration.

If you keep shipping, turn on Monitor so the next publish is checked the same way without starting over.

Questions

Is Lovable safe for production?

It can be. The published URL can also ship a secret or a table with no row level security. A passive scan of that URL does not answer the database question. You still check grants and policies yourself.

Does a grade A mean my Lovable app is secure?

No. An A means this passive pass did not find a problem in what a visitor can already download. It does not see Lovable Cloud tables, auth settings, or anything behind login. Lovable’s Quick scan and Deep scan are separate checks inside the Lovable project. The Launch Report opens that same passive pass. It is not a new scan.

Can the free check see tables in Lovable Cloud?

No. It does not log in and it does not query Supabase or Lovable Cloud. An anon key in the bundle is normal. A service_role key in the bundle is not. Neither one tells you whether row level security is on.

Does the Launch Report run a new scan?

No. The €19 Launch Report opens the findings from the Quick Check you already ran. It does not scan anything new and it does not test row level security.

Where should a Stripe secret key live in a Lovable app?

Not in the client. Lovable’s Supabase integration docs say API keys for services such as Stripe should stay in the Supabase project, not in the app code. A NEXT_PUBLIC_ or VITE_ name puts the value in the built JavaScript. The prefix is not a runtime guard.

Run a free check