On November 18 a large slice of the internet returned errors for a few hours. I'm a user of the affected services, not an insider, but the postmortem is public and worth reading closely because the failure is so ordinary.
What happened
Per Cloudflare's postmortem, it was not an attack. A change to database permissions in one of their ClickHouse clusters altered the output of a query. That query generated a "feature file" used by their bot-management system, and the file came out with duplicate entries and grew larger than expected. The file is pushed to machines across the network. The software reading it had a limit on how many features it would accept. The bigger file exceeded the limit, the proxy crashed, and requests started failing with 5xx errors.
The impact started around 11:20 UTC. Core traffic was largely back by about 14:30 and everything was normal a little after 17:00.
The pattern
Strip the vendor names and it reads like a story from any team:
- A reasonable change in one system (permissions).
- An unexpected effect in a second system (a query returns more rows).
- A generated artifact grows past an assumption nobody wrote down (a size limit).
- A consumer treats the artifact as trusted input and fails hard.
- The artifact is distributed everywhere quickly.
None of the five steps is exotic. What made it big was step five.
Config is code, and input
Teams are careful with code. They review it, test it, roll it out gradually. Configuration and generated data often skip all of that, because it's "just a file."
But a file that changes behavior across every node is more dangerous than most code changes, because it usually ships faster and wider. I'd apply four rules to it.
Validate before you publish. If a generated file is supposed to have a bounded number of entries, check that before it leaves the generator. The failure should be a failed job, not a crashed fleet.
Roll it out like a deploy. One machine, then a few, then the rest, watching error rates. Config that can take down everything shouldn't reach everything at once.
Fail safe, not hard. When a consumer receives a file it can't use, it should keep running with the last good version. A parse failure that crashes the process turns a data problem into an outage.
Have a kill switch you've tested. The fastest recovery path in these incidents is usually "stop using the new thing." It only works if it's wired up and someone has tried it.
What it means for a small team
I wrote earlier this year about running at 99.9% with six people. The lesson then was that discipline beats headcount. This is the same lesson from the other side: the large teams with serious engineering still get caught by a config file.
For a small team that translates into a short list. Generated config gets a schema check in CI. Anything that changes behavior across all instances ships to a canary first. Every consumer has a "keep last known good" path. Run that list against your own system this week, while the memory is fresh and before the next one.
Failures like this one are the argument for boring practices. Nobody gets credit for the outage that didn't happen.