Kontura, my invoicing app, has been running in production since October 2026. Its operations runbook is one file of 600 lines about preparing the server, releasing, rolling back, backups and leaked secrets. One sentence in it reads: “No external user stores invoices before the first backup ran and a restore drill passed.”
That is what I mean by production-ready. Features work in a prototype too. An app is ready for real users when each thing that is likely to go wrong has an answer that is written down and has been tried once.
This is the first post of Advent of Prod. From 1 to 24 December, one post a day answers one question about running an app you built with an AI tool. Below are all 24, each with one line that says what “done” looks like.
Part 1: is it safe to launch?
These six come first because their failures can’t be undone: leaked data stays leaked, and a deleted database without a backup stays deleted.
- Is my vibe-coded app production-ready? You have gone through this list and know which lines are open.
- Can other users see my users’ data? Signed in as one user, you asked for another user’s record and were refused. A test repeats that.
- How do I hide an API key in the frontend? No secret key appears in anything the browser downloads.
- Can my AI agent delete my production database? Your agent’s machine holds no production credentials, and one copy of the data can’t be deleted by any key in daily use.
- How do I back up my database, and have I ever restored it? A backup runs every day and leaves the server. You have restored one and written down the date.
- How do I stop fake sign-ups and bots? Every form that creates an account or sends an email has a limit per sender and per address.
Part 2: money, mail and the first deploy
- How do I avoid a surprise hosting or AI bill? Every service that bills by usage has a spending cap or an alert.
- Why don’t my sign-up emails arrive? Your sending domain passes SPF, DKIM and DMARC, and a failed send shows up somewhere you look.
- How do I move my app off the builder onto a server? The app builds and starts from the repository alone, on a machine that isn’t your laptop.
- How do I add rate limiting? Sign-in, sign-up and every expensive action have a limit you can name, and attempts past it are refused.
- Why do payments work in test and not live? Live keys and the live webhook secret are set, the webhook checks the signature, and the same event arriving twice does no harm.
- Is my sign-in secure enough? Sign-in attempts are limited, a reset link expires and works once, and a second factor is available.
Part 3: keep it running
- How do I keep dependencies up to date without breaking things? A vulnerability audit runs on a schedule, and updates pass the same tests as your own changes.
- How do I know my app is down before users tell me? Something outside your server requests the app every few minutes and emails you when it fails.
- What should my app log, and what not? Logs say what happened without passwords, tokens or message contents, and a rule removes old logs.
- How do I ship an update safely and roll it back? You have gone back to the previous version once, on purpose.
- The AI changed my database and data is gone. How do I prevent it? Changes to the database structure are files in the repository, applied by one command, after a backup.
- Do I need a staging environment? A second copy of the app with its own database exists, and a risky change runs there first.
Part 4: harden, comply, hand over
- Is the server my app runs on secure? The server accepts keys and no passwords, the firewall passes only the ports you use, and security updates install themselves.
- How do I security-check my vibe-coded app before launch? A second reviewer, a different model or a person, has read the code, and each finding is fixed or accepted with a reason.
- Do I need Cloudflare in front of my app? You have decided and can say why, and the app sends its own security headers.
- Are file uploads dangerous? Uploads are limited in type and size, checked by their content, and stored under a name your app chose.
- Is my app GDPR-compliant? As a first check, your privacy policy matches what the app really stores and loads, and you can delete one user’s data on request.
- My app got hacked or broke. What now, and who can help? One page says what to do first, where the backups are and how to replace each secret.
Check your own app
Take five minutes and give each of the 24 lines one of five marks:
- yes, with evidence you could show someone: a file, a setting or a date
- no
- don’t know, which counts as no
- not applicable, with the reason: a site without accounts has no sign-in to secure
- the provider handles it, with the page of its documentation that says so (on managed hosting, most of line 19)
The order matters more than the total: lines 2 to 5 are the ones to close before anyone else’s data goes in.
Then let your coding agent do the same pass on the code:
Go through this repository and its deployment files. Read code and
configuration only: do not change anything, run builds or scripts, send
requests to live services or use production credentials. Report file names,
line numbers and variable names. Never show the value of a key, token,
password or connection string, not in quoted code or search output either.
For each of the 24 lines below, answer "yes, evidence: <file and line>",
"no", "not applicable, because ...", or "can't tell from the repository".
Say for each answer whether you saw it or inferred it. Where a line is about
a service outside the repository (backups, monitoring, billing caps, email
DNS), say where I have to check it myself.
End with the five open lines you would close first, and why.
<paste the 24 lines here>