8 hours ago
I am planning a protected Node.js staging website on Hobby, binding to 0.0.0.0 on Railway PORT behind HTTPS. Please clarify the supported, spoof-resistant ingress contract:
- Is there a stable, exclusive immediate-proxy peer allowlist or authenticated edge identity?
- Are X-Real-IP, X-Forwarded-Proto, X-Forwarded-Host, X-Forwarded-For and Forwarded overwritten, appended, preserved or rejected? How are duplicate, mixed-case and comma-separated values handled?
- Can private-network callers reach the listener and supply arbitrary forwarding headers? Which supported controls restrict this?
- What peer, protocol and Host guarantees apply to health checks under a strict ingress policy?
- How can TCP proxies and other alternate paths be prevented from bypassing HTTP-edge handling?
- What is the simplest supported secure architecture on Hobby if exact proxy-peer trust is unavailable?
Please distinguish supported guarantees from implementation details. This is a request for guidance only, with no deployment, resource or subscription changes requested.
3 Replies
8 hours ago
We don't publish a stable or exclusive proxy-peer range, and there is no authenticated edge identity, mTLS identity or signed forwarding header. The socket peer is a proxy address that may change, so don't hard-code it as a trusted CIDR.
On our public HTTP edge, we overwrite X-Real-IP, X-Forwarded-For, X-Forwarded-Proto (https) and X-Forwarded-Host (the original Host). Caller-supplied copies are replaced, not appended or kept. We can't confirm how Forwarded is handled, so don't rely on it. X-Forwarded-For has no guaranteed hop count, so use X-Real-IP for the client address.
Services in the same project and environment can reach your listener directly over private networking, which skips the edge, so they can send any headers. Environments are isolated from each other, so the environment is the trust boundary.
Healthchecks hit your PORT with the hostname healthcheck.railway.app, so allow that Host (docs). We don't guarantee a peer address for healthchecks.
A TCP proxy relays raw bytes, with no header cleanup and no PROXY protocol, and Edge Rules don't apply to it. To avoid that path, don't add a TCP proxy to this service.
The simplest setup on Hobby: a dedicated project or environment for the staging site, with no other services and no TCP proxy, exposed only through the HTTP edge. Read X-Real-IP and use application-level authentication rather than IP or header trust. These are current behaviors, not a contract, and networking details may change.
Status changed to Awaiting User Response Railway • about 8 hours ago
8 hours ago
Thank you. Please have a human Railway networking/support engineer review this thread. The automated reply explicitly describes current behavior rather than a supported contract, so it does not establish the spoof-resistant ingress guarantees needed for an application security review.
If stable, exclusive proxy-peer identity is not supported on Hobby, please confirm that directly and recommend the simplest supported alternative: for example, an isolated staging environment with application-level authentication, or an authenticated ingress-to-backend boundary. Which assumptions are supported, and which risks must the application owner explicitly accept?
Please clarify header overwrite and duplicate/mixed-case handling, private-network bypass, health-check access and alternate TCP ingress. Documentation links or an explicit statement that a guarantee is unavailable would be useful. This requests guidance only; please do not change any resources or subscription. No private project information is needed.
Status changed to Awaiting Railway Response Railway • about 8 hours ago
4 hours ago
No, there is no stable or exclusive proxy-peer identity on any plan, including Hobby. We don't publish a socket-peer range, an observed range is not a contract, and there is no mTLS identity, edge credential or signed forwarding header.
For traffic through our public HTTP edge, X-Real-IP, X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Host are overwritten, and caller-supplied copies are replaced rather than appended. We make no guarantee about Forwarded, duplicate or mixed-case header handling, or an X-Forwarded-For hop count, so your application should not rely on any of those. The public networking specifications note that these details can change.
Services in the same project and environment can reach your listener directly over private networking without passing through the edge, and they can send any headers. Projects and environments are isolated from each other, so the environment is the trust boundary.
Healthchecks arrive with the hostname healthcheck.railway.app, with no guaranteed peer address. A TCP proxy relays raw bytes with no header sanitization and no PROXY protocol, and Edge Rules don't apply to it. Not adding a TCP proxy keeps that path closed.
The simplest setup is a dedicated environment holding only this service, with no TCP proxy, exposed through the HTTP edge, and protected by application-level authentication. The risks you would need to accept are that IP and forwarding headers are not authentication, that anything you deploy into that environment is trusted, and that edge header behavior is current behavior rather than a contractual guarantee.
Status changed to Awaiting User Response Railway • about 4 hours ago