a month ago
-
What explains the IPv4 connectivity failure? Is this a temporary or configuration issue, or a supported access restriction?
-
Does our plan provide a supported way to block incoming connections to the backend listener over the private network while preserving public HTTP/WebSocket access and outbound backend-to-Postgres connections?
-
Does the public ingress guarantee that client-supplied X-Real-IP headers are overwritten, including requests containing duplicate headers? How can the backend reliably distinguish a request forwarded by the public ingress from a direct internal request?
We are not asking for a list of observed proxy addresses. We need a confirmed, supported trust boundary.
1 Reply
a month ago
For requests through our public HTTP edge, including .up.railway.app and custom domains, X-Real-IP, X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Host are overwritten, and any caller-supplied copies are replaced rather than kept or appended to. The socket peer your app sees on those requests is a proxy address, and we don't publish a stable range for it, so it can't be used as an allowlist.
The supported trust boundary for private networking is the environment. Private networks are isolated between projects and environments, but services in the same environment can reach your listening port directly. Those direct requests don't pass through the edge's header sanitization, so a private caller can send its own forwarding headers. That means an X-Real-IP header doesn't prove a request came through the edge, and we don't provide a signed header, an edge-only ingress switch, or an mTLS identity your app could check. If a service in the environment shouldn't be trusted, it belongs in a separate environment or project. A TCP proxy on the same port would also be a separate, unsanitized path.
We weren't able to establish why the IPv4 connection from Postgres to port 8080 timed out, so we can't say yet whether it is temporary or a configuration issue.
Status changed to Awaiting User Response Railway • about 1 month ago
24 days ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 24 days ago