You can ship a useful app in a weekend. You can also ship one that lets a stranger read someone else's records, because the last hour went to the landing page and the payment button. A security checklist before launch is the short list of checks that catch those failures while you can still fix them in private. It covers accounts, permissions, secrets, dependencies, HTTPS, backups, and logging. The person running it is usually the same person who wrote the feature: a founder, a freelancer, or a developer shipping with an AI coding assistant.
This guide walks that checklist in the order that prevents the worst leaks. You will create two test users, try to open each other's data, and confirm the production configuration matches what you think you deployed. The long-form version of these ideas lives in the OWASP Application Security Verification Standard. The list below is the release gate that fits the week you announce the URL.
What a security checklist before launch should decide
A security checklist before launch decides whether strangers can use the app without reading each other's data or your secrets. It covers sessions, server-side ownership, secret storage, dependency versions, HTTPS, database exposure, backups, and logs. Run it on staging that matches production. A laptop config with open ports will pass checks that production will fail.
If you only have an hour, spend it on accounts, permissions, and secrets. Add dependencies, HTTPS, backups, and logging before you call the launch done.
The eight checks, and what "done" looks like
Run the rows in order. Auth and permissions decide who can see data. Secrets and dependencies decide who can impersonate the app. HTTPS, backups, and logs decide whether a bad day is recoverable. Finish a row before you trust the one below it.
| Check | Done when | Typical miss on a first launch |
|---|---|---|
| Accounts and sessions | Signup, login, logout, and password reset work on the real host | Reset links still point at localhost |
| Permissions | Each record is scoped to the owner in the query | The UI hides a button, the API still returns the row |
| Secrets | Keys live in the host secret store | A service key sits in a client-side env variable |
| Dependencies | Alerts are matched to the version you install | Audit output ignored since the first commit |
| HTTPS | HTTP redirects to HTTPS and cookies are Secure |
Staging cookie flags copied into production |
| Database exposure | The database accepts connections only from the app | Port 5432 open to the whole internet |
| Backups | You have restored once into a scratch database | Backups are on, restore steps are not |
| Logging | Auth, admin, and payment events are recorded without tokens | Request logs include Authorization headers |
Treat a failed row as a launch blocker when it can expose another user's data, a secret, or the database itself. A messy log line can ship if you fix the format the same week. You will want those lines if you later follow an incident response guide for a hacked app.
The permission row is where small apps fail most often. A hidden menu item still leaves the request open. Authentication versus authorization explains the check that belongs in the query.
How to run the checklist on your app
Work against staging, then repeat the checks on production before you point the domain. Create two accounts yourself and try to open each other's records in the API. Then confirm secrets, HTTPS, backups, and logs on the host you will announce.
1. Prove accounts work on the real domain
Create two users. Complete signup, email verification if you have it, login, logout, and password reset. Open the reset message and read the link host. It should be your staging or production domain.
Set session cookies to HttpOnly, Secure, and an explicit SameSite value. If you store passwords, hash them with Argon2id or bcrypt. If a hosted auth provider issues the session, confirm the callback URLs match the domain you are about to announce.
2. Check permissions on the server
Log in as user A. Copy an object id that belongs to user B, from a URL, a network response, or a sequential integer. Request that id as user A. You want a 403 or a 404, and the body should not include B's fields.
Repeat for read, update, delete, export, and download. Then call any admin route with a normal account. Put the owner check in the query or the policy, beside the database call:
select * from orders
where id = $1 and account_id = $2
Return 404 when the row belongs to someone else, using the same response you use for a missing id. Do this for every generated route, including ones the UI never links to.
3. Find secrets before users do
Search the repo and the built frontend for API keys, private keys, connection strings, and tokens. A variable prefixed so the client can read it will ship to every browser. Move server secrets into the host environment or a secret manager. Rotate any key that has been committed, including keys you deleted in a later commit. Git history keeps the blob. Storage rules, scanning, and rotation are laid out in how to store API keys and secrets.
4. Match dependency alerts to the lockfile
Run the ecosystem audit and open the lockfile. An alert matters when the vulnerable version is the one you install, the vulnerable function sits on a path your app can reach, and a fixed release exists. Write down why you are deferring anything else.
5. Force HTTPS
Confirm the public site redirects http:// to https://, the certificate matches the host you will share, and cookies refuse to travel over plain HTTP. Add HSTS only after every host you still need answers on HTTPS. Admin panels should not listen on an open port with a tutorial password.
6. Close the database
The application should be the only client that can open a connection. Security groups, firewall rules, or a private network should block your laptop and the rest of the internet. Turn on TLS for the connection if the provider supports it. Use a database user that can touch the tables the app needs, and a separate admin user you do not put in the app's environment. Public exposure, least privilege, and backups are the core of securing the database before you go live.
7. Restore a backup once
Turn on automated backups for the database and for object storage that holds user files. Restore into a scratch instance and run one read query against a table you recognize. Write down how long the restore took. That number is your answer to how long you are down.
8. Log the events you will need later
Record authentication successes and failures, password resets, permission denials, admin actions, and payment or webhook failures. Include a request id, the acting user id, and the object id. Leave out passwords, session tokens, magic links, and full card numbers. Send logs somewhere that survives a server rebuild. Then compare production env, cookies, and database allowlists with staging.
A Sunday-night booking app
Picture a booking app for small shops. Users sign up, create a shop, and see appointments. The interface looks finished. On Sunday you create two shops and swap the appointment id in the request. Shop A receives shop B's customer names and phone numbers. The page never linked to that URL. The handler trusted the id.
You add shop_id to the query, return 404 when the row belongs to someone else, and repeat the swap. Then you move an email key out of a client component, rotate it, and purge the old bundle. The first ten customers keep their phone numbers to themselves.
FAQ
How long should a pre-launch security checklist take?
Plan one focused sitting for a small app with a handful of routes, and a second sitting if you have uploads, webhooks, or an admin role. Most of the time goes to testing two users against each other's ids. If a check fails, fix that path before you add another feature.
What if my coding assistant said the app was secure?
Verify the claim against the running app. Ask for every route that reads or writes user data, then exercise those routes with two accounts. Generated projects often copy tutorial patterns: checks that live only in the component, sample keys left in place, and a database published on all interfaces.
Which failed check should block launch?
Block launch when one user can read or change another user's data, when a secret is in the client bundle or the git history, when the database accepts public connections, or when you have never restored a backup. A missing header can wait until the same week if you write the follow-up down.
What to do next
Create two test users on staging and try to open each other's records through the API, not only through the screens. Fix every handler that returns the other user's fields. Then search the built assets for secrets and read the audit report against the lockfile you actually deploy.
When you want that pass repeated as the repo changes, StaySecure scans the code, dependencies, and exposed secrets and explains what to fix in plain language. Treat each finding as the next row on this security checklist before launch.