Skip to content

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

Railway 4 min read Incident mediumAdept

Incident Report: January 28-29, 2026

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.

Assumes: OAuth tokensGitHub AppsAPI rate limiting

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: November 25th, 2025

    Railway mediumAdept

    Slow GitHub API calls (about 4x normal p95 latency) during peak hours backed up Railway's Temporal-based task queue, causing workers to run out of memory and crash in a cascading thundering-herd pattern as surviving and newly started workers were overwhelmed by the backlog. Deployments for Free, Trial and Hobby tiers were paused and Pro deploys delayed for roughly two and a half hours, while running services stayed online. Recovery came from increasing worker CPU and memory and fixing worker parameters that made them request more tasks than they could handle. Follow-up measures include an auto-tuning algorithm for worker task intake, more task queue capacity, and removing external API dependencies from critical workflows.

  • Security Disclosure Recommendation: Check for Anomalous GitHub Access

    Railway mediumAdept

    Railway users who connect GitHub, following the October 21, 2026 security disclosure, should audit their GitHub accounts for persistence an attacker may have left behind, then confirm no unexpected commits reached their deployments. On personal accounts, filter the 90-day security log for authentication and access events and review OAuth apps, GitHub Apps, SSH/GPG keys and personal access tokens, regenerating all tokens. Organization owners should export the 180-day audit log before revoking anything, then check third-party access and each repository's deploy keys, secrets, webhooks and collaborators, since these can outlive a password reset.

  • Automatically Rotating GitHub Tokens (So You Don’t Have To)

    Shopify Engineering mediumAdept

    Shopify replaced long-lived GitHub personal access tokens with short-lived GitHub App installation tokens that are rotated automatically by scheduled GitHub Actions workflows and written into repository secrets. Developers can reference those secrets exactly as they did PATs. The design avoids breakage from developer churn and misattribution of actions, and shrinks the blast radius of leaked tokens. Lessons learned: billable minutes are rounded per job, so parallel jobs were consolidated into one sequential job. The cron `schedule` trigger is best-effort, so it moved to explicit minute-of-hour runs every 15 minutes to stay within the one-hour token expiry. Onboarding evolved into a plop.js wizard with use-case-based permission selection, and a step-by-step recipe for building the rotator closes out the write-up.

  • Incident Report: November 20th, 2025

    Railway easyNovice

    A dip in GitHub push webhooks followed by a 10x surge flooded Railway's asynchronous deployment task queue, delaying all new deployments for about two and a half hours on November 20th, 2025. Workers locked up under memory pressure, so the team added and restarted workers and shed load by disabling deployments tier by tier (Free/Trial/Hobby, then Pro), re-enabling them in reverse order as recovery came. Running services and networking were unaffected. Follow-ups include segmented queue alerts, monitoring for deployment spikes, and fixing the worker lockup under memory pressure.

The quest for software engineering knowledge.

Look:
Layout: