|Docs

Security

Railway runs customer workloads on hardware it owns and operates. Data is encrypted at rest and in transit, builds run in single-tenant environments, and the platform is SOC 2 Type II compliant.

Audit reports and policies can be found on the Trust Center. The HIPAA BAA, the DPA, and EU DORA documents are covered more in the Compliance page.

Shared responsibility

Railway runs and secures the hardware we own and operate to run customer workloads. The servers, the private network, the build system, and the dashboard are built and run on Railway Metal.

Additionally, we expose features (outlined below) to help our customers run applications securely.

How Railway secures the platform

Encryption at rest and in transit

All data stored on Railway is encrypted at rest with AES-256 in every region. Encryption at rest protects data on disk. This includes volumes, volume backups, point-in-time recovery archives, storage buckets, and environment variables. Railway manages the encryption keys.

Additionally, environment variables are envelope encrypted. The keys that protect them are themselves encrypted under a key Railway holds separately, so a single leaked key doesn't expose every variable. Railway decrypts a variable only to provide it to a build or a running container.

In transit, public endpoints require HTTPS with TLS 1.2 or 1.3. Plain HTTP requests are redirected, and Railway issues and renews certificates automatically. See also: specs and limits. Between services in the same environment, traffic is over the private network, which is encrypted with WireGuard. A database that only services within the project connect to does not need a public endpoint.

Isolation of environments and builds

Each environment has its own network namespace. Services in different projects, or in different environments of the same project, can't reach each other over the private network. See how private networking works.

Each build runs in its own single-tenant environment on Railway's build infrastructure. Additionally, enterprise workspaces can run on Railway-managed dedicated hosts.

Network protection and rate limits

Railway Metal is built to mitigate attacks at network layer 4 and below. At the edge, every public domain is limited to around 11,000 HTTP requests per second and 10,000 requests per connection. Network protection falls at the CDN layer, which secures the broader network including customer workloads. See also: rate limits.

Railway's own security practices

The technical and organizational measures Railway commits to are listed in Exhibit C of the DPA. Access to production systems requires MFA and uses encrypted connections. Railway logs events across all components of the platform and reviews anomalies. Controls are tested continuously through automated compliance tooling, and policies can be provided to Enterprise customers on request.

An independent firm performs a penetration test of the platform every quarter, with the report found in the Trust Center. Third-party vendors scan the platform for vulnerabilities every quarter, and the bug bounty program accepts reports at any time. Railway ships security patches for the managed database images it maintains.

Data residency

A service and its volumes run in the region you select when you create it. All application data stays within that region; Railway's own processing primarily happens in the United States. The DPA sets out more detailed transfer mechanisms. For anything else, see the Privacy Policy or write to privacy@railway.com.

Image and log retention

Railway retains deployment images after a deployment is removed so you can roll back, and retains logs for a period that depends on your plan.

PlanImage retentionLog retention
Trial24 hours7 days
Free24 hours3 days
Hobby72 hours7 days
Pro120 hours30 days
Enterprise360 hoursUp to 90 days

For longer log retention, we suggest forwarding logs to a third-party tool. See Connect a third-party observability tool.

Incident response

Railway classifies incidents by severity. Incident management describes the severity levels and the retrospective process. Enterprise customers receive further support in a shared Slack channel.

The support and engineering teams maintain a 24/7 rotated on-call schedule, to ensure coverage any time of day across critical parts of the platform. Paging occurs via both automated and manual systems detecting anomalies.

Availability incidents are posted on the status page while they're in progress. If a security incident does occur, it is disclosed to customers as early as it is safe to do so. Security incidents that affect customers are posted on the blog, and affected customers are notified by email. For a data breach, the DPA commits Railway to inform you without undue delay and to assist with your own notifications to regulators and data subjects. For questions about your own workspace, use the Help Station.

Features for securing your project

Sealed variables

Sealing a variable makes its value write-only. A sealed value is still provided to builds and deployments, but it isn't shown in the dashboard, can't be retrieved through the API, and isn't returned by railway variables or railway run. Sealed variables can't be unsealed and aren't copied into PR environments, duplicated environments or services, or external integrations. See also: sealed variables. Build-time vs runtime secrets explains how to keep secrets out of your image.

Related guides:

Public endpoint protection

Under Attack Mode defends a service that's under a DDoS or a flood of bot traffic. While it's on, Railway shows each new visitor a browser check before any request reaches your service. It's set per service. To protect a site and the API it calls, enable it on the site first, then on the API.

Databases and other internal services don't need a public endpoint. Connect to them over the private network, and use a TCP proxy only when a client outside Railway has to reach them. Lock down a production project covers removing public exposure, scoping tokens, sealing secrets, and restricting who can change production.

Access control

You can sign in with email, an OAuth provider, or SAML on Enterprise. Multi-factor authentication with an authenticator app or a passkey is available on every account. On Pro and above, workspace admins can require it for every member.

ControlWhat it doesPlan
SAML SSORoutes sign-in through your identity providerEnterprise
Access groupsScopes members to specific projectsEnterprise
Environment RBACLimits variables, logs, and configuration in a restricted environment to AdminsEnterprise
GuardrailsPrevents non-admins from creating public domains or TCP proxies, and limits deployments to approved GitHub organizationsEnterprise
Project tokensBinds a token to one project and one environmentAll plans

Audit logs record who changed what in a workspace, with the actor and a timestamp on each entry. You can export them through the auditLogs GraphQL query.

Backups and recovery

Volume backups can be created manually or on a schedule. Daily backups are kept for 6 days, weekly backups for 27 days, and monthly backups for 89 days. Restoring a backup creates a fresh volume and leaves the previous volume in your project, unmounted. Wiping a volume deletes all of its backups.

Point-in-time recovery for PostgreSQL and MySQL archives continuously to a storage bucket and restores to a timestamp as a brand-new service. The restore window is about 4 weeks for PostgreSQL and 7 days for MySQL. Backups and archives are encrypted at rest.

These guides cover the features above step-by-step:

Audit reports and compliance

Railway's SOC 2 Type II report covers the infrastructure your services run on. The SOC 3 report can be downloaded from the Trust Center without signing in. The SOC 2 report, the HIPAA report, and the penetration test report are available after you request access.

ReportWhere
SOC 2 Type IITrust Center
SOC 3Trust Center
HIPAATrust Center
GDPRData Processing Agreement, signed self-service
EU-US and Swiss-US Data Privacy FrameworksTrust Center and the DPF participant list
Penetration testTrust Center

A SOC 2 report describes the controls an auditor observed over a period. It's evidence that the controls exist and operate, not a substitute for your own review.

On Enterprise, Railway signs a BAA for HIPAA workloads and covers the infrastructure side of the shared responsibility model. The DPA covers GDPR processor obligations, including breach notification. The subprocessor list is public. See Compliance for the BAA terms, the DPA signing link, and the EU DORA documents.

Contacts

Support requests go through Railway Station. For specific cases:

ForContact
A vulnerability in RailwayBug bounty program or bugbounty@railway.com
Abuse reportsabuse@railway.com
Privacy and data requestsprivacy@railway.com
Audit evidenceTrust Center
Live incidentsstatus.railway.com

Frequently asked questions

Is Railway SOC 2 compliant?

Yes. Railway has a SOC 2 Type II report and a SOC 3 report from an independent auditor. Both are on the Trust Center.

Does Railway encrypt environment variables?

Yes. Variables are encrypted at rest with AES-256 and envelope encrypted on top. Railway decrypts a variable to provide it to your build or container.

Can Railway read my variables?

Railway's systems can decrypt any unsealed variable, because that's how it's provided to your container. That access is restricted and logged. Sealing a variable hides it from the dashboard, the API, the CLI, and Railway support, but Railway still decrypts it to run your service. To store a value Railway can't decrypt, encrypt it in your application first.

Is Railway GDPR compliant?

Yes. Railway processes personal data as a processor under GDPR. The DPA sets out the Article 28 terms and can be signed self-service from the Compliance page. Transfers to the United States are covered by the EU-US Data Privacy Framework and Standard Contractual Clauses, and you can run services in the EU West region.

Can I run HIPAA workloads on Railway?

Yes, on Enterprise with a BAA in effect. Railway covers the infrastructure under a shared responsibility model, and you cover your application's handling of PHI. Once the BAA is signed, Railway staff can no longer directly access your running workloads.

How will I hear about incidents?

Availability incidents are posted on the status page. Security incidents that affect customers are disclosed on the engineering blog, and affected customers are notified by email.

Does Railway have a bug bounty program?

Yes. Vulnerabilities can be reported at any time through Railway's bug bounty program.

How does Railway handle vulnerabilities?

Railway patches platform components on a regular schedule. Railway patches services affected by known vulnerabilities (CVEs) and redeploys them automatically, including managed database images. If a vulnerability is novel, we notify the security community and prepare for proper disclosure. If a security incident occurs, Railway notifies affected customers by email and publishes a report on the engineering blog, disclosing as much as it safely can while an investigation is still in progress.