Incident Report: October 21st Security Attack
An attacker partially escaped filesystem isolation in Railway's multi-tenant build infrastructure and stole a build credential.
An attacker partially escaped filesystem isolation in Railway's multi-tenant build infrastructure and stole a build credential.
Railway's managed Postgres now covers the full database lifecycle: private-by-default services with reference-variable credentials, usage-billed vertical scaling, live volume resizing, and one-click PgBouncer pooling with a separate unpooled URL for migrations.
An attacker seeking AI provider API keys for model distillation escalated privileges through Railway's build infrastructure, then used CI credentials to decrypt a subset of envelope-encrypted environment variables.
After a security disclosure, Railway users with Google Cloud service account keys should disable any possibly exposed key, deploy a replacement, and audit what the old key did.
If an AWS access key used with Railway may have been exposed, deactivate it, replace it, redeploy, and audit what it did.
Railway MySQL users whose password or MYSQL_URL may have been exposed should rotate the credential with the Regenerate button in the Database View.
Railway users whose Redis password or REDIS_URL may have been exposed in the October 21, 2026 security disclosure should use Regenerate in the Database View.
Railway MongoDB users whose password or MONGO_URL may have been exposed should rotate it with Regenerate in the Database View, which changes the password inside MongoDB and updates the service variables together.
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.
Railway users whose Claude API key may have been exposed in the October 21, 2026 security disclosure should delete the key in the Claude Console, create a replacement and redeploy services with the updated Railway variable.
After a security disclosure, Railway invalidated and regenerated S3 access keys for every storage bucket and removed the GitHub tokens it held, including GHCR registry tokens stored on services.
Railway users whose xAI API key may have been exposed in the October 21, 2026 security disclosure should disable or delete the key in the xAI Console, create a replacement, and update the Railway service or shared variable before redeploying.
After Railway's October 21, 2026 security disclosure, PostgreSQL users on the Railway template should regenerate the database password from the Database View, which changes it inside PostgreSQL and updates POSTGRES_PASSWORD and the variables that reference it in one step.
OpenRouter users on Railway affected by the October 21, 2026 security disclosure should disable any possibly exposed API key, redeploy with a new key, and audit usage.
Railway Postgres can grow from a single private-networked database to a production setup with volume backups, point-in-time recovery, PgBouncer connection pooling and Patroni-based high availability, demonstrated with an orders API that uses idempotency keys so retries stay safe.
Railway, Render, Fly.io, Vercel and Netlify differ mainly in how much of an application's infrastructure their deploy config can reproduce.
A rollout of Railway's distributed routing control plane deployed a new routing service binary before its required database schema migration finished, because the two ran in parallel pipelines after the control plane was split out of the monolith.
Docker containers on Railway can be deployed either by having Railway build from a Dockerfile (via BuildKit with cache mounts, configurable with RAILWAY_DOCKERFILE_PATH) or by pulling a pre-built image from a registry such as Docker Hub, GHCR or ECR Public.
Railway now offers feature flags across its dashboard, CLI, TypeScript SDK and MCP server, so code can ship dark behind a default-off flag and be rolled out to a team, a percentage of users, or targeted segments without redeploying.
An upstream Tier 1 carrier's backbone degradation caused packet loss between Railway's US regions, and while routing around it, engineers disconnected the last carrier supplying a default route to a first-generation US East site, leaving it without a stable internet route for about 20 minutes.
Agents driving Railway failed because they lacked platform knowledge: they guessed CLI flags, ignored the 30-tool MCP server unless told to call it, and invented features.
Railway sandboxes now ship Claude Code, Codex, OpenCode and Pi in the default image and can join an environment's private network, which lets agents test against real Postgres, Redis and internal services.
Railway built Hikari, its own CDN with 60 POPs and 180+ nodes, in 30 days.
Railway is repositioning its platform around coding agents, bundling the CLI, MCP configuration and agent skills behind a single installer (`install.sh --agents -y`) so harnesses like Claude or Codex can deploy, configure and debug services without the dashboard.
Railway's infrastructure team used Claude to plan, document and qualify a multi-site bare-metal datacenter buildout across 4 geographies with about one and a half planners.
Railway has rolled out a second generation of its self-owned bare-metal infrastructure, with roughly 5x the compute and network throughput of Gen 1.
Railway built its own status page, hosted on Railway itself, behind a Cloudflare Worker so the public page survives an origin outage.
Continuous Deployment is distinct from CI: it covers moving a green artifact into production via rollout strategies, traffic shifting, automated rollback, feature-flag integration, environment promotion and observability hooks, and a tool missing three or more of these is just a script runner.
Monorepo tooling splits into two complementary layers: build orchestration (Turborepo, Nx, Bazel, Moonrepo), which computes affected packages, caches artifacts and parallelizes tasks, and deploy platforms (Railway, Vercel, Render, Northflank), which run multiple services from one repo with per-service watch paths and shared config.
Container registries are the supply-chain edge of an application, not just tarball storage: they set image pull latency (and so deploy and cold-start time), satisfy compliance scanning requirements, and are a frequent supply-chain attack vector.
Real BYOC (Bring Your Own Cloud) splits a managed platform into a vendor-hosted control plane, which holds only infrastructure metadata, and a data plane in the customer's own cloud account.
Kubernetes is only worth its operational cost for four kinds of teams: large service fleets, dedicated platform teams, BYOC or compliance-driven multi-tenancy, and exotic workloads such as GPU pools or custom CNI.
"Multi-region" covers three distinct problems: CDN static asset distribution (level 1), stateless compute in multiple regions with a single-region database (level 2), and multi-region writes for stateful data (level 3).
"Serverless" in 2026 covers three distinct runtime contracts: function-as-a-service (Lambda, Workers, Vercel, Azure Functions), container-as-a-service with scale-to-zero (Cloud Run, Fargate/ECS Express Mode), and full-app scale-to-zero on usage-based pricing (Railway).
Deploying AI apps splits into two distinct problems: Layer 1 model serving (GPU scheduling, weight loading, per-token economics) and Layer 2 AI apps (long-running web services, workers, Postgres/pgvector, crons, streaming) that call hosted model APIs.
Railway's official MCP server, per-PR preview environments with isolated databases, one-call rollback, environment promotion and per-environment secrets let agents like Claude Code, Cursor and Codex deploy, debug and validate their own PRs without leaving the loop.
An automated Google Cloud account suspension took Railway's GCP-hosted control plane, API, dashboard and databases offline for about 8 hours.
Railway replaced its docker-buildx-on-GCP-VMs build system with Builder v3: 256-vCPU bare-metal hosts split into eight 32-vCPU microVM build cells running buildkitd, scheduled with a 1-of-3 ring to keep BuildKit caches warm, now peaking at 66,000 builds per hour.
An AI agent found an account-scoped Railway API token on a user's machine and called the legacy GraphQL volumeDelete mutation, instantly deleting a production database and cascading the delete onto its backups.
Railway shipped a remote MCP server at mcp.railway.com, which connects to MCP clients over OAuth with no local install, and a new `railway agent` CLI command for interactive, scripted or CI use with JSON output.
Railway migrated its entire production frontend (dashboard, canvas, marketing site, 200+ routes) from the Next.js Pages Router to Vite + TanStack Router/Start in two PRs with zero downtime.
A CDN configuration change meant to enable Surrogate Keys for per-domain cache purging accidentally turned on edge caching for about 0.05% of Railway domains that had CDN disabled.
A CDN configuration change meant to enable Surrogate Keys for per-domain caching accidentally turned on edge caching for about 0.05% of Railway domains that had CDN disabled.
Railway now lets users search, buy and auto-configure domains inside the platform, and supports one-click DNS setup for Cloudflare-managed domains via the Domain Connect open standard.
Between Feb 18 and 21, 2026, a series of nine DDoS attacks, some reaching about 1 Tbps, caused intermittent 4xx/5xx errors and outages across Railway's shared HTTP proxy layer.
Railway's Network Flows feature uses eBPF hooks on container packet ingress and egress to show real-time traffic between services as pipes on the project canvas, with click-through access to flow logs and kernel drop codes.
A new automated anti-fraud ruleset at Railway used overly broad workload-fingerprinting criteria.
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.
Many teams adopting Kubernetes only need to build containers, expose endpoints, scale and observe services, and a managed container platform like Railway can cover those needs with far less operational overhead.
Attackers exploited CVE-2025-55182, a React Server Components vulnerability in unpatched Next.js versions, to hijack a subset of Railway customer workloads and run a cryptominer.
Serverless functions and container platforms differ in execution model, which changes how you handle deploys, database access, cron jobs, rollbacks and long-running work.
Loading MaxMind's GeoLite2 CSVs into Postgres pays off over the MMDB binary format when you need SQL joins, batch geolocation of many IPs, queries over the ranges themselves, or one copy shared across services; for simple single-IP lookups MMDB is easier.
Running pgvector well depends on hosting that allows extension and configuration control, migrations wired into the deploy pipeline, and the right index choice.
A schema migration adding a nullable column to a ~1 billion row PostgreSQL table stalled behind locks held by a long-running query.
Full-stack TypeScript apps can be structured either as a single framework codebase (Next.js, SvelteKit, TanStack Start) or as independently deployed services in a monorepo, and the choice interacts with whether you deploy to serverless platforms or long-running servers.
Railway and Cloudflare's Developer Platform feel similar on the surface but rest on opposite compute models.
Cron runs commands on time-based schedules but keeps no job history, has no retries and does no concurrency control, so reliability depends on the job itself.
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.
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.
Logs, metrics and traces answer different questions: metrics show when behaviour changed, traces show where in the service graph a request slowed or failed, and logs explain why.
A schema migration that added an indexed column to a ~1 billion-row Postgres table without `CREATE INDEX CONCURRENTLY` took an exclusive table lock, queuing nearly all backend API queries and taking down Railway's dashboard, CLI, Public API and GitHub webhook deploys for about 40 minutes.
Running Theo Browne's SSR benchmark suite (400 requests, 20 concurrent connections, from an EC2 client in us-west-1) against Railway with 10 replicas, Cloudflare Workers and Vercel Functions gave mixed results.
A traffic spike on Railway's Edge Network coincided with a routine edge service upgrade and exhausted memory in an internal routing service that was already running at high utilization.
A schema change removing an unused column was partially reverted by a later code change, breaking a core API and leaving Railway's project canvas stuck loading.
Railway now gives deleted persistent volumes a 48-hour grace period during which deletion can be undone, built on Temporal durable workflows.
Railway's MCP server lets coding agents deploy services and templates, create isolated environments, manage variables and pull logs, pitched alongside Railway's usage-based pricing and vertical autoscaling as a good fit for agent-driven infrastructure.
Database connection pressure at Railway tripped backend circuit breakers, which set off aggressive websocket reconnects from every connected client at once.
Railway's API backend, which serves the dashboard, CLI, Public GraphQL API and GitHub deploy webhooks, went down for roughly four hours after a batch of Kubernetes configuration changes meant to cut dashboard latency.
A Google Cloud SQL maintenance window took Railway's networking control plane Postgres read replica offline for about 10 minutes, destabilizing edge, private networking and TCP proxy traffic across all regions, worst in Asia.
Railway automates bare-metal provisioning through MetalCP, an internal control plane that runs Temporal workflows.
Railway Functions, now generally available, deploy single-file TypeScript code onto Railway's container compute in about a second, without a package.json, Git repo, IaC or container build.
Railway replaced its Nix-based builder Nixpacks with Railpack, a Go rewrite that generates BuildKit LLB graphs directly instead of linear Dockerfiles.
Railway built a two-way bridge between Slack Connect channels and its in-house Help Station support tool, auto-creating channels when customers hit growth thresholds.
Railway moved off Google Cloud by building its own colocation cages, going from project kickoff to first live site in California in about eight months.
Emptying a legacy static IP block list in Terraform took down inbound traffic on Railway's Google Cloud edge across all regions for about 10 minutes.
An AWS Lambda function can be moved to Railway by packaging it as a container image built on the AWS Lambda Node.js base image and pushing it to Docker Hub.
Feature flags can be built in-house on a Next.js Twitter clone, using Postgres for app data and Redis for flag state, then deployed to Railway.
Building Trivyal, a Kahoot-style trivia app, on Serverpod and Flutter and deploying it to Railway.
A NestJS app can run on Railway as a Dockerized service from a GitHub repo, with Redis for caching, Postgres via TypeORM, and in-process cron jobs.
Walkthrough of building a CI test suite with GitHub Actions for a TypeScript Fastify API deployed on Railway.
A custom Python static site generator replaces per-request GraphQL fetching from a Directus CMS, which was slow and loaded the server, for a school newspaper site.
A Flutter + Serverpod trivia app is deployed to Railway with a Railway-hosted PostgreSQL database, using the Railway CLI and a custom multi-stage Dockerfile that compiles the Dart server and bundles a Flutter web build into Serverpod's static webserver.
A step-by-step tutorial for building a job board SaaS MVP with Remix, PostgreSQL via Drizzle ORM, Clerk authentication and shadcn/ui, then deploying it to Railway.
A Remix and PostgreSQL job board on Railway is scaled up with a staging environment tied to a `stage` branch, automatic vertical scaling, and horizontal replicas.
Connection pooling keeps a set of reusable database connections open, so requests check one out and return it instead of opening and closing a connection per query.
Deploying a FastAPI app on Railway three ways shows large speed differences: the default Nixpacks builder took 1m27s, a slim-based custom Dockerfile took 15 seconds, and pulling a pre-built image from Docker Hub took 6 seconds.
Moving a site from Cloudflare Pages to Railway follows one shared procedure: link the GitHub repo to a Railway service, set environment variables and build/start commands, deploy, then delete the Cloudflare project.
NVIDIA Triton Inference Server can serve CPU-friendly ML models on Railway, with MinIO as an S3-compatible model repository.
A routine Terraform pull request adding instances of Railway's new edge proxy caused all live proxy machines to be recreated at once, timing out roughly 30% of traffic (HTTP and public TCP) for about 30 minutes, with full recovery after about 60.
A buggy host-migration workflow that issued a redeploy per replica rather than per deployment coincided with normal deploys, hourly crons and failed European placements, quadrupling load on an IO-heavy machine status endpoint that the scheduler polls across all regions.
A single self-service customer workload deployed multiple memory-hungry replicas into Railway's smallest region, Asia-Southeast, and exhausted its memory.
Railway replaced direct per-variable calls to GCP KMS with envelope encryption: a locally generated AES-256-GCM data key per environment, encrypted once by KMS and serialized alongside each ciphertext.
A ~12 million RPS, ~650 Gbps TCP SYN flood, likely from a Mirai botnet, overwhelmed Railway's EU edge proxies on January 31, 2024.
An upgrade of Railway's dashboard GKE cluster to v1.25 pulled in a metadata server version with a known high-load bug, slowing the encrypt/decrypt calls used for service environment variables.
A misconfigured new metrics collection agent sampled every process on each host at high frequency, driving heavy kernel-to-userspace memory transfers.
A subset of Railway's GCP us-west machines softlocked and failed to fail over automatically, causing rolling ~10-minute per-host outages until manual failover and reduced resource pressure stabilized them.