Pre-Launch Security Check for a Weekend App (30 Minutes)
You built it over a weekend. Before you share it, spend 30 minutes on the checks that catch the most common problems: keys, database rules, headers, stray files and email.
💡 The short version: you don't need a security team to avoid the most common launch mistakes. You need 30 minutes, a private browser window and this list. It's ordered so the checks that find the worst problems come first.
It's Sunday night. The app works, the landing page looks great and you want to hit publish. Fair. Give us half an hour first, because the problems that hurt are almost never clever. They're a key left in the wrong place or a table left open. ⏱️
⏱️ Minutes 0 to 10: secrets and data
- Search your project for secrets. Look for
sk_,secret,passwordandBEGIN PRIVATE KEY. Anything real in the code moves to an environment variable on the server. - Check variable prefixes. Anything starting with
VITE_orNEXT_PUBLIC_ends up in the browser. Only publishable keys belong there. - Open your database dashboard. On Supabase, every table should have row level security on and a policy that says who may do what. On Firebase, your rules must not be test mode. (Guides: Supabase RLS, Firebase rules.)
⏱️ Minutes 10 to 20: look like a stranger
- Open a private window and use the live site, logged out. Try opening a page that should need sign-in.
- Request the usual suspects at your live address:
/.env,/.git/configand a.mapfile next to one of your scripts. You want "not found" every time. (Why these files matter.) - Check your headers with
curl -sI https://your-site.com. Look for a Content-Security-Policy,Strict-Transport-Security,X-Content-Type-Optionsand a Referrer-Policy. (Headers explained.) - Confirm HTTPS works and that the plain http address redirects to it.
⏱️ Minutes 20 to 30: money, mail and a second opinion
- Protect anything that costs money. An AI chat route or an email-sending route needs sign-in and limits. Set a spending limit at the provider. (Why an open AI route is risky.)
- Set up email records if you send mail from your domain: SPF, DKIM and DMARC. (A plain-words guide.)
- Run an outside scan. It checks what you just checked by hand, and some things you can't easily see yourself.
🎯 If you only have five minutes
Do these three: search for secrets, make sure the database has rules, request /.env on the live site. Those catch some of the costliest mistakes.
| Check | Pass looks like |
|---|---|
| Secrets in code | None, all in server environment variables |
| Database rules | RLS or Security Rules written, not test mode |
/.env and /.git/config | Not found |
| Headers | The four main ones present |
| Costly routes | Sign-in, limits and a provider budget |
🚀 Finish with the outside view. Run a free scan on your live address before you announce it.