Checklist
Pre-launch security checklist for vibe-coded apps
Short answer. Check the running URL and the generated code. A preview that works only shows the happy path. Search the client for a secret, prove a second user cannot read the first user's rows, and make the server, not the browser, the thing that hears about a payment.
Updated 19 Nov 2026
This is a practical checklist, not a guarantee. It is not a penetration test, a compliance audit, or proof that an app is safe to launch.
Run this on the project you are about to share. AI tools repeat the same shortcuts: a key in the client, a table with no access rule, a price decided in the browser. This page used to be two checklists, one for the running app and one for the generated source. They are one list now. The old code-only URL redirects here.
Builders covered here include Lovable, Bolt.new, Cursor, v0, and Replit. The short per-builder lists are under Ship guides. For the editor itself, Is Cursor secure? is the question page, and how to secure a Cursor-built app is the settings pass. Is Windsurf secure? is the same question for Windsurf.
Before anyone else has the URL
- Decide which URL is production and which URLs are previews. Preview links are often public. Treat a preview that has real data as production.
- Read the environment variable list in the host dashboard. Anything the framework ships to the browser is public. On Lovable, values prefixed with
VITE_are browser values. On a Next.js app,NEXT_PUBLIC_is the same class. Vercel's environment variable docs are the reference for that prefix. - Search the repo and the built JavaScript for
sk_live,service_role,sb_secret_,sk-,AKIA, and private keys. If you find a real secret, rotate it at the vendor, then remove it. Rotating without removing it leaks the next one. - Confirm the app is served over HTTPS and that you are not shipping a debug page, a stack trace, or a seed script with a known password.
What the model tends to ship
These are patterns the vendors document, not a statistic about how often they appear.
| What you may find | What to verify | Where that warning comes from |
|---|---|---|
A key next to a fetch in the client | It is a publishable value, or it moves to a server secret | Lovable's security overview, Supabase's API key docs, Firebase's API key docs |
| A new table with no access policy | Row level security or Security Rules exist, and a second user fails | Supabase's RLS docs, Firebase's insecure-rules guide, Bolt's database security page |
| A rule that only checks "is signed in" | The rule also checks which rows that person owns | Firebase's rules guide on auth != null |
| A price, a plan, or a "paid" flag set in the browser | The server hears the result from the payment provider | Lovable's Deep scan description of payments |
| An admin or service credential in client code | The credential is only in a server function | Supabase's secret-key docs and Bolt's project audit |
Secrets the browser can see
- Supabase's docs say the publishable key, and the older anon key, may be in the client. The secret key and the older
service_rolekey bypass Row Level Security. The difference is Is the Supabase anon key safe to expose?. If the elevated key is already in a bundle or a repo, use Supabase service role key exposed. - Firebase's docs say an API key restricted to Firebase services is public by design. A key whose allowlist includes a non-Firebase API, such as the Gemini Developer API, is not that kind of key.
- Lovable says values prefixed with
VITE_belong in.envand are embedded in the client. Secrets belong in the Secrets store, which Edge Functions read. Lovable also says to keep.envcommitted so previews and published builds can see the public values. A secret in that file is in the repository and in the bundle. - Bolt says its project audit looks for private keys in the project code or in the browser, and its secrets tab exists so server functions can hold them.
The procedure is the API key checklist. A GitHub token in a chat, a commit, or a gh login is Leaked a GitHub token?. The code and dependency security category is for tools that read the repo once it is in git.
Data access
- Open every table the client can query. If you use Supabase, follow how to set up row level security and the checklist. "It works when I am logged in" is not a test. Try a second account, and try no account.
- Supabase's docs say grants and policies are separate. A new table in
publicon an existing project can already grant read and write to the anonymous and signed-in roles. A policy does not revoke a grant. - On Firebase, open Security Rules. Test mode grants access to all users. Locked mode denies client access. A rule of
auth != nullstill lets any signed-in user through, which Firebase's rules docs say you should confirm you intend. Worked examples are Firebase Security Rules examples. Firebase is the directory entry. - On Bolt's database, the security page is available on every plan and flags a missing or always-open policy. Bolt says a table without row level security can be read and changed by anyone. The full project audit is a paid-plan check. Details are in how to secure a Bolt.new app and Is Bolt secure? What to check before you launch.
- Check storage buckets and file URLs. A private table with a public bucket is still a leak.
- If the client uses a publishable or anon key, confirm the server rejects requests that key should not be allowed to make. The key is not the control. The policy is.
Accounts
- Sign-up, password reset, and session cookies should be set by the server. A token stored in
localStorageis readable by any script that runs on the page. - Try to open an admin or billing route while logged out, and while logged in as a normal user.
- Turn off any default account the builder created, or change its password and remove it from production data.
- Login and authorization are separate. The auth comparison is Clerk vs Supabase Auth vs Auth0. The products are in database and auth.
Money and email
- A "payment succeeded" screen is not proof of payment. The server should hear it from the provider, with the signature checked. See the Stripe webhook checklist if you use Stripe. Browse payments for the other checkout tools.
- Lovable's Deep scan looks for prices or paid features a customer can change or reach without paying. Bolt's paid project audit says it looks for the same class of misuse. The check you can do yourself is still the webhook.
- Receipts and password resets should go through an email API on the server, not through a key in the frontend. See API keys in the frontend and the email category.
Abuse
- Add a limit on sign-up, login, password reset, and any route that calls a paid model. Hiding the button is not a limit. See rate limiting.
- If the app accepts uploads or URLs from users, decide the maximum size and what happens with a file you did not expect.
After you have read the code
- Know which URL is production. Lovable's preview docs say the preview and the published app share the same backend and data, unless the project already uses the older Test and Live split. Vercel, Netlify, and Render preview behavior is compared in Vercel vs Netlify vs Render.
- Run a free passive check on the URL you will share. It is a passive look at public pages, not a penetration test. Lovable's security overview uses the same boundary: a scan supports a review and does not replace one. A product from security scanners is the next step if you are allowed to run it.
- Turn on something from monitoring so the first failure is an error report, not a screenshot in your inbox.
- Write down what you did not check. A checklist you finished is still a partial look.
FAQ
Does a green scan from the builder mean the app is finished?
No. Lovable's security overview says its scans help find common issues and cannot guarantee complete security. Bolt's project audit reports what it checked and what it fixed. A clear result means that pass found nothing it reports. It does not mean a later change, or a case the scanner skips, is fine.
What is the first thing to open in a Lovable or Bolt project?
The data rules. Lovable's Quick scan, which runs when you publish, checks database access, dependencies, and exposed MCP servers. Bolt's database security page is on every plan. Then search the client for a secret key. The longer Lovable steps are in how to secure a Lovable app before launch and Is Lovable secure? What to check before you launch. The longer Bolt steps are in how to secure a Bolt.new app and Is Bolt secure? What to check before you launch.
Where do secrets belong if the builder already inlines them?
In a server secret store, then rotated if they were ever in the client or in git. Lovable's Secrets are injected into Edge Functions and are not part of the browser bundle. Supabase says the secret key and the service-role key stay on the server. A name the framework exposes, such as VITE_ or NEXT_PUBLIC_, is the wrong place for either of those.
Which host should this code deploy to?
The one the project already uses, until you choose to export it. If you are picking a host for a repo you own, start with Vercel vs Netlify vs Render for AI-built apps and the hosting category. The host is where environment variables live. It does not write your database policies.
Sources
Checked 26 Oct 2026.
Informational only. This page describes checks and vendor documentation. It is not a security audit, a penetration test, or a certification, and it is not a guarantee.
Newsletter
A short weekly note on new tools and security checklists. No spam, unsubscribe anytime.