How Git Clone Took Down Our CI for 20 Days
summary
CI across ~1,800 repos stops for 20 days after 112,000 daily runs trigger 401s; investigation parses 17,863,537 log records and tcpdumps to prove Git’s HTTP client sends an initial unauthenticated request, causing mass bans. Fixes include upgrading Git and enabling proactive auth, adding a Go module proxy, disabling GKE SNAT for pod IP tracing, and publishing golden images for 175 custom Dockerfiles; the combined changes eliminate the outage.
AI-written summary · about
chapters (33)
- 0:00Introduction to the incident
- 1:02Scale of the CI outage
- 2:47Suspecting NAT port exhaustion
- 3:51Discovering 401 errors in logs
- 5:13Intercepting traffic with MITM proxy
- 6:17Git’s unauthenticated request behavior
- 7:42Identifying Git versions in runners
- 8:45Enabling proactive auth in Git
- 9:46Rolling out 979 PRs overnight
- 11:31Finding custom Docker workflows
- 13:18Patching Docker images via registry
- 14:44Quarantining the problematic repo
- 15:47Disabling GKE SNAT masquerading
- 17:12Analyzing 404 and 429 spikes
- 18:56Pinpointing Mockgen in Pandora’s Box
- 20:47Fixing Mockgen with protoc
- 21:54Summary of solutions and fixes
- 24:20Q&A session begins
- 25:42Discussion on Docker image maintenance
- 27:26Automating PRs with Sourcegraph
- 29:32Cost of refactoring vs downtime
- 30:55Performance impact of fewer images
- 33:00Tracking incident learnings long-term
- 34:25Introducing the Golden Path framework
- 37:04Git proxy and module resolution
- 37:46Incident management tools used
- 38:50External impact on deployments
- 39:13Reason for older Git version
- 40:17Simplifying the software stack
- 41:42Most important lesson learned
- 44:32Private network mirroring strategy
- 46:16Managing Pandora’s Box repository
- 47:39Closing remarks and thanks
