This incident has not happened
This is a pre-mortem: an imaginary incident report, written before a project starts, to find the ways it could fail. Nothing below happened to anyone. There are no real numbers in it, because there's no real incident. Every failure in it is a common, ordinary way for a home-made form backend to go wrong.
StatusHypothetical
Servicecontact-form-backend (built in-house)
SeverityHigh: real enquiries lost without anyone noticing
Detected byA customer, on the phone, asking why nobody replied
Summary
A small team decided their static website's contact form needed a backend, and that it would take a weekend. It took longer than a weekend. Over the following months, the backend received spam, lost some real enquiries, sent thank-you emails that looked broken in one email client, and quietly stopped being patched.
No single failure was dramatic. Together they meant that, for an unknown period, some people who wrote to the company never got an answer, and the company didn't know.
Timeline
Week 1
The API server goes up
A small server receives form posts and emails them to the team. It works on the first try. Everyone is pleased. The form's address is now in the page source, where anyone can read it.
Week 2
A database is added
Emails sometimes go missing, so submissions are saved to a database first. Now there's a database to back up, secure and keep running. Backups are put on the to-do list.
Week 3
The bots arrive
Spam starts. A captcha is added to the page. It's only checked in the browser, so bots that skip the browser skip the captcha too. Spam continues.
Week 4
Rate limits, take one
To stop a flood, a strict rate limit is added. It's set per site instead of per address. On a busy day, real people are turned away along with the bots.
Week 6
Spam rules
A list of banned words is added. It blocks a real customer who mentioned a discount code. Their message is dropped, not held, so nobody ever sees it.
Week 8
Email templates
A thank-you email is designed. It looks right in one email client and broken in another. Someone notices months later.
Week 10
No retry queue
The email provider has a slow afternoon. The server tries once, fails and gives up. Those thank-yous and alerts are never sent. Nothing records that they failed.
Month 6
Server patches
The person who built the backend moves to another project. Security updates pile up. Nobody is sure who owns it now.
Root causes
- The page source is public. On a static site, the form address and any key in the page can be read by anyone. Every check that matters has to happen on the server.
- Doubtful was treated the same as spam. Messages were either delivered or dropped. There was nowhere for a doubtful message to wait for a person.
- Failures were silent. Without a retry queue or a record of failed sends, lost emails left no trace.
- A form backend is a product, not a weekend. It needs an owner, patches and backups for as long as the form exists.
What went well
- The form itself looked great the whole time.
- The team learned a lot. Mostly in the evenings.
Action items
Appendix: the alternative
Every action item above is something FormAck already does: server-side captcha, single-use tickets, an origin allowlist, rate limits, a spam score with reasons, a review queue, thank-you caps, no message echo, a suppression list, and branded emails that work in Gmail, Outlook and Apple Mail. There's no API server, database, retry queue or patch schedule for you to own.
That's not a reason you can't build it yourself. It's a list of what you're signing up for if you do.
hypothetical: no forms were harmed