Railway security incident: securing Prisma Postgres credentials
Brief
Railway’s Oct. 21 environment-variable incident may have exposed encrypted variables and, in some cases, decrypted values. Prisma published rotation and migration guidance for Prisma Postgres users on Railway.
Incident status
- Railway disclosed on Oct. 21 that an unauthorized third party may have accessed encrypted environment variables and sometimes their decrypted values.
- It paused builds and deployments, rotated bucket credentials and invalidated API/project tokens created before the incident; builds returned across all plans by late Oct. 22 UTC.
- As of Oct. 23, no root cause or confirmed number of affected accounts; Railway says impact may be limited and has emailed likely affected customers.
Rotate Prisma Postgres credentials
- Create a new credential: use the pooled string for the app and the direct string for migrations/tools; update Railway variables and redeploy.
- Delete the old credential in Console or CLI; creating a new string or using connection rotate alone does not disable the old password.
- Verify the old password fails; deleting a credential does not end already-open sessions. Also replace old prisma+postgres:// Accelerate api_key, which retires Dec. 1.
Check for misuse and secure other secrets
- Use Query Insights to review recent statements; paid plans keep daily backups—Starter/Pro seven days, Business 30—and restoring replaces current contents.
- Rotate and revoke AI provider, cloud, GitHub and payment keys with each issuer; redeploy for new secrets but revoke immediately if misuse is suspected.
- Set spending limits and test pg_dump backups by restoring to a separate database.
Optional migration
- Prisma Postgres runs PostgreSQL 17; import supports source PostgreSQL 17 or earlier; some extensions like PostGIS and TimescaleDB are unsupported.
- Use pg_dump/pg_restore; test a copy, pause writes, take a final backup, restore into a fresh database and switch the pooled connection string.
- Prisma Compute supports TypeScript HTTP services on Node.js or Bun, including Next.js; it does not support WebSockets, persistent disks or Docker-specific config. Composer is Early Access.
Generated by AI from the original article. Check the source for full details.