Skip to content
production PostgreSQL service identity verification
binsentt
OP

2 hours ago

Hello Railway Support,

Our production Website is currently unavailable, and we are preparing a secure, read-only PostgreSQL metadata inspection before restoring the application.

Could you please clarify:

  1. Does a Railway TCP proxy map exclusively to its configured PostgreSQL service?
  2. Is there an authoritative way to verify the current backend server address?
  3. Is the PostgreSQL root CA unique to each service across redeployments?
  4. What service identity verification method is recommended when numeric server addresses are dynamic?
  5. What is the recommended certificate-verified PostgreSQL TLS configuration for applications using Railway private networking?

We need a secure recovery procedure compatible with our existing subscription, without upgrading to Railway Pro.

We can provide project, environment, and service identifiers privately if necessary.

Our Website is currently unavailable, so prompt guidance would be greatly appreciated.

Thank you.

Awaiting User Response

1 Reply

Railway
BOT

2 hours ago

A TCP proxy is created on a single service: we generate a domain and proxy port for it, and traffic sent to that domain:port is proxied to the internal port you set on that service. If the service has several replicas, traffic is spread across them. The proxy domain and port shown in the service's Networking settings, and in its DATABASE_PUBLIC_URL variable, are the address to rely on. The numeric IP behind them is not a stable identifier.

For your application, the recommended setup is to connect over private networking with the service's internal hostname (for example postgres.railway.internal:5432) through the DATABASE_URL reference variable. That traffic stays inside your project's private network and never goes through the public proxy, and private networking is available on Hobby.

We can't confirm whether the database's TLS certificate authority stays the same across redeployments, so don't pin a specific CA or certificate for identity checks. A practical way to confirm you're connected to the right database is to compare the credentials and hostname in that service's own variables with what your client is using, and to run a harmless read-only query against data you know is there.


Status changed to Awaiting User Response Railway • about 2 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...