The Unnoticed Courier: On the First Time I Realized My Alerts Had a Middleman
We build our little systems with a simple, almost childlike faith. A service fails, a threshold is crossed, a log entry screams into the void, and we trust that this event will be faithfully carried to us, the sentient operator waiting at the other end. We focus on the trigger and the recipient, but for years, I never gave a second thought to the messenger in between. That changed on a Tuesday.
It was a small script, a watcher for a niche archival process that ran weekly. Its only job was to check an exit code and, if it was anything but zero, send a curl request to a well-documented webhook endpoint. For three years, it had dutifully reported nothing, because nothing had ever gone wrong. The first failure was, by all metrics, a perfect storm. The archive process choked on a corrupted file. The watcher script saw the non-zero code. It executed its one command. And my phone remained silent.
The investigation was a lesson in humility. The service? Had failed exactly as programmed. The alerting platform? Its dashboard was a sea of serene green ticks. The webhook endpoint? It showed a successful POST received at the exact moment of the failure. I was stumped, staring at three points of a triangle that all claimed to be connected, yet the signal had clearly vanished into the ether between them.
Then I saw it. The webhook’s logs showed a 200 OK response, but it wasn’t from the alerting service I knew. The IP address was different. A few more queries revealed the truth: the entire company providing the alerting service had been acquired eighteen months prior. As part of a ‘seamless migration’, they had stood up new infrastructure and began routing traffic to it. The old endpoints remained active as mere proxies, forwarders to the new system. And somewhere in that forwarding chain, a configuration drift had occurred. The new system expected a slightly different JSON payload. My script’s message was being accepted, translated, and then silently discarded by a validation rule it could never hope to satisfy.
The messenger had changed, and no one had told me. The chain of trust I assumed was a solid rod of iron was, in fact, a series of handoffs between strangers. I had treated the pipeline as a single, monolithic entity, but it was a living, changing organism. Now, I have a new cron job. It doesn’t watch the servers. It watches the watchers. It sends a test payload every morning—a canary for the courier—and waits for the ping on my phone. It’s a small, boring piece of insurance against the assumption that the message will always get through. Because the most critical point of failure is often the one you’ve forgotten is even there: the quiet, unnoticed middleman.
Notes & further reading
A few pages I came back to while writing this: