What happened
Three months into the role, a colleague rotated the TLS certificate on our Azure Application Gateway — but only updated it for the backend pool. What I didn't know yet was that the frontend also did internal service-to-service communication over mTLS through nginx, inside a private VNet, for no strong architectural reason — legacy config. The moment the backend cert rotated, that internal trust chain broke, and kiosks worldwide started going down, including CVS locations in the US. I got a call a few hours in, with nobody else reachable.
How I found it
Checked App Gateway health probes, nginx error logs on the frontend, and backend connection logs. Found TLS handshake failures between frontend and backend — not a backend outage, a trust problem. Traced it to the cert rotation: new cert on the App Gateway backend pool, but the frontend's internal nginx config was still pinned to trust the old CA for that internal hop.
The actual fix
Re-pinning the cert would've just reset the clock until the next rotation broke it again. The internal mTLS was redundant in the first place — the private VNet already provided the real trust boundary. I read through nginx config and the service communication path from scratch, in code I hadn't touched before, and rerouted that internal hop through Traefik instead of manual cert-pinned mTLS, relying on the VNet boundary for trust rather than a brittle manually-rotated certificate. Tested against the actual failure mode before pushing live, then rolled it out and watched kiosks reconnect region by region.
Result
Kiosks worldwide back online within a few hours, including CVS in the US. No rework needed afterward — the fix held through the next cert rotation because it removed the fragile dependency instead of just patching around it.