Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

GitHub Engineering 5 min read Incident mediumAdept

When protections outlive their purpose: A lesson on managing defense systems at scale

Emergency protection rules added during past GitHub abuse incidents were left in place and began rate-limiting legitimate logged-out users with "Too many requests" errors. The rules combined fingerprinting with business-logic signals. Only 0.5–0.9% of fingerprint matches were blocked, but false positives still reached about 3–4 per 100,000 requests. Finding the cause meant correlating logs across edge, application and service layers with different schemas. GitHub removed the stale rules and now treats incident mitigations as temporary by default, with expiration, post-incident review and cross-layer visibility into which layer blocked a request.

Assumes: HTTP rate limitingreverse proxies

Related posts

  • Incident Report: June 6th, 2025

    Railway mediumAdept

    Database connection pressure at Railway tripped backend circuit breakers, which set off aggressive websocket reconnects from every connected client at once. Websocket handshakes sat outside the WAF policy, and a vendor contract change had removed permission to edit WAF rules, so the reconnect flood bypassed rate limiting. Timed-out clients fell back to the login page, which cleared sessions and sent enough traffic to GitHub OAuth to trigger a secondary rate limit, leaving users unable to log in for several hours. Fixes include client reconnect backoff, OAuth login rate-limit queues, websocket-aware rate-limiting rules, moving real-time reads to a read replica, WAF rules API testing, and showing login buttons only when the backend is ready.

  • Incident Report: January 28-29, 2026

    Railway mediumAdept

    Railway users intermittently could not log in with GitHub or deploy from repos over several days because Railway exceeded GitHub's 2,000-per-hour OAuth token limit, with failures recurring about 30 minutes into each hour. The root cause was a dataloader that minted new installation tokens on every request batch (~82/sec at peak), made worse by more backend replicas, fresh user tokens for permission checks, frequent commit status updates and high-frequency repo sync jobs. Generic errors from secondary rate limits slowed diagnosis until GitHub Support confirmed the cause. Fixes included caching installation tokens for their full validity (cutting creation by over 90%), moving code paths from user OAuth tokens to app installation tokens, caching permission checks in Railway's own database, consolidating status updates, making repo sync manual and adding rate-limit alerting.

  • How to avoid bad assumptions during incidents

    incident.io mediumAdept

    HTTP header names arriving downcased at a public API were wrongly blamed on a Google Cloud Load Balancer change. The real cause was an HAProxy upgrade that lowercases HTTP/1 header names. The verification step was confounded because curl had silently negotiated HTTP/2, which mandates lowercase header names, so the test appeared to confirm the load balancer theory. The lessons: log every command and result during an incident, re-check earlier conclusions whenever severity rises, and distrust a compelling story that matches your biases.

  • Incident Report: February 11, 2026

    Railway mediumAdept

    A new automated anti-fraud ruleset at Railway used overly broad workload-fingerprinting criteria. It matched legitimate processes, including Postgres and MySQL databases, and sent them SIGTERM, leaving about 3% of workloads in a "forced pause" state. The rule had passed staging tests and a production dry run, but false positives appeared only after live staged rollout. Reverting it and restarting affected deployments took about four hours, and the mass restart caused deployment backpressure. Planned fixes include broader false-positive testing against common workloads, longer observation windows, tier-based staged rollout, and safeguards that exempt known legitimate process types from enforcement.

  • Post mortem on Linear security incident on March 24th, 2026

    Linear mediumAdept

    A performance optimization to Linear's "sync group" access-control resolvers contained a variable shadowing bug in the disabled code path. For all non-target workspaces it dropped every user-specific resolver, so permission filtering was silently skipped instead of erroring. For about an hour on March 24, 2026, private-team issues, comments, documents and projects leaked to other members of the same workspace, including guests. The main exposure routes were digest emails, about 7,000 client bootstraps, mobile sessions, API/OAuth queries and background tasks. Tests had covered only the path where the optimization was enabled. Fixes include broader permission-boundary integration tests, caps on digest size, stricter security review of authorization code and monitoring for permission violations.

The quest for software engineering knowledge.

Look:
Layout: