Checklist

Security checklist before you launch your app

Updated 31 October 2026

Seventeen checks for an app built with Cursor, Lovable, v0, Bolt, Replit or Claude, grouped by where things usually go wrong. Each one is marked with what can check it for you — so you know what to automate and what needs your eyes.

How to read the tags

Start with the free check

Covers every item tagged "Free check" below, in about ten seconds. For apps you own.

Secrets and API keys

Free checkLaunch check

1. No secret keys in front-end code

Anything the browser downloads, anyone can read. Secret keys for Stripe, OpenAI, Anthropic, AWS, or Supabase's secret/service_role key must never be in it. The free check scans your live JavaScript; the Launch check scans the repository. Which keys are safe in the browser?

Launch check

2. No .env files in git, and .env is in .gitignore

A committed .env file puts every secret in it into your git history. The Launch check flags tracked .env files in any folder and a .gitignore without a .env rule, and adds a .gitignore if you have none.

Manual

3. Every key that was ever exposed has been rotated

Removing a key from code doesn't un-leak it. If a key was ever in a public bundle or a commit, create a new one and revoke the old one at the provider, then check its usage logs.

Manual

4. Server keys live in server-only settings

Keep secrets in your host's environment settings or your platform's secrets store (for example Lovable Secrets or Supabase Edge Function secrets), never in variables with a public prefix like VITE_, NEXT_PUBLIC_, REACT_APP_ or EXPO_PUBLIC_ — build tools copy those into the browser bundle.

Database and storage

Free checkLaunch checkManual

5. Row-level security is on for every table with real data

With Supabase, the public key in your app can reach any table that doesn't have RLS. The free check warns when your Supabase API answers the public key (for projects on the older anon key); the Launch check flags a repo with no migration that enables RLS and adds a template. The definitive check is Supabase's Security Advisor or a quick SQL query — here's how.

Manual

6. Policies limit rows to their owner

RLS with a policy like using (true) is the same as no RLS. Read each policy and ask: could a signed-in stranger read or change someone else's rows? Supabase's Security Advisor flags always-true policies.

Manual

7. Firebase Security Rules don't allow open reads or writes

On Firebase, your rules — not hidden keys — decide who can read and write. Rules that allow everyone, often left over from test mode, expose your whole database.

Manual

8. Buckets with user files are private

A public storage bucket serves any file to anyone with the link. Keep uploads such as avatars, documents or invoices in private buckets with access policies.

Sign-in and APIs

Manual

9. Every API route and server function checks who's calling

Check the session on the server for anything that reads private data, spends money or changes accounts. Never trust a user ID sent in the request body.

Manual

10. Rate limits on sign-up, sign-in and anything that costs money

AI calls, emails and SMS cost money per request, and a bot can make thousands. Limit them per user and per IP address.

Manual

11. Input is validated on the server

Validation in the form is for convenience; anyone can call your API directly. Check types, lengths and allowed values on the server, and use parameterized queries.

Free checkLaunch check

12. CORS doesn't allow any origin with credentials

Access-Control-Allow-Origin: * together with credentials lets any website make signed-in requests to your API. The free check reads your live headers; the Launch check looks for it in your code.

Browser and transport

Free checkLaunch check

13. HTTPS everywhere, with HSTS

HSTS tells browsers never to fall back to plain HTTP. The free check confirms HTTPS and the HSTS header; if your repo has no security-header config, the Launch check adds a vercel.json with HSTS (it only applies if you deploy on Vercel).

Free checkLaunch check

14. Security headers are set

A Content-Security-Policy is your main defence against cross-site scripting; X-Content-Type-Options: nosniff and clickjacking protection are quick wins. The free check grades all three. The Launch check's vercel.json adds nosniff, frame protection and a referrer policy; a CSP has to fit your app, so you write that one yourself (MDN's CSP guide).

Dependencies and operations

Manual

15. No dependencies with known critical vulnerabilities

Run npm audit (docs) and update what it flags as critical or high. Lovable's Quick scan includes a dependency audit too.

Manual

16. Backups are on, and you've tried a restore

A backup you've never restored is a guess. Check your database plan's backup settings and do one test restore before launch.

Manual

17. Errors don't show stack traces or secrets

Show users a plain message and log the details on the server. Stack traces and raw database errors tell attackers what you run.

Let LeakFix do the automatic ones

The free check covers the items tagged "Free check" from your live URL. The Launch check is a one-time $49: it scans your repository, explains what it finds in plain English, and opens a pull request with safe, additive fixes you review and merge.