a month ago
Hello Railway Support,
I'm configuring a secure backup process for an existing PostgreSQL 17 deployment using Railway's postgres-ssl template.
Before enabling the backup worker, I need to establish independently authenticated trust for the PostgreSQL server certificate, so that clients can connect using sslmode=verify-full.
Could you please advise on the following?
Is there an authenticated Railway control-plane or dashboard method to obtain or verify the deployment-specific PostgreSQL CA certificate and its SHA-256 fingerprint, bound to the correct project, environment and service?
If the supported retrieval mechanism uses Railway SSH/SFTP, is there an independently authenticated source for the ssh.railway.com gateway's SSH host-key fingerprint and its rotation policy, so that strict host-key verification can be established without trust-on-first-use?
Does the postgres-ssl template guarantee that the existing server certificate includes the assigned RAILWAY_PRIVATE_DOMAIN in its Subject Alternative Names, or must this be checked for each deployment?
What is the recommended process for distributing updated CA certificates to clients when the template renews or regenerates its CA and server certificates?
We are not requesting access to private keys, database credentials or any changes to the running deployment. We only need a secure procedure for authenticating the existing public certificate material and maintaining trust through rotation.
Thank you.
3 Replies
Status changed to Awaiting Railway Response Railway • about 1 month ago
a month ago
We don't offer a dashboard or API method that returns the PostgreSQL CA certificate or its fingerprint for a specific project, environment and service. The template creates its own certificates and renews them before they expire, and it doesn't guarantee that the private domain is included in the Subject Alternative Names, so please check the SANs on each deployment before you rely on verify-full.
For ssh.railway.com, we don't publish host-key fingerprints, an SSHFP record or a known_hosts list. Host keys can change at any time without notice, so we can't provide an independent source for pinning them.
We also have no Railway-side process for distributing updated CA certificates to your clients, so keeping trust in place through rotation has to be handled in your own setup.
Status changed to Awaiting User Response mykal • about 1 month ago
a month ago
Hello,
Thank you for clarifying the PostgreSQL certificate and SSH gateway limitations.
We are evaluating a secure logical export from our existing PostgreSQL 17 service, deployed using the postgres-ssl template.
Is there a supported, authenticated method—other than the SSH gateway—to execute a command inside the currently running PostgreSQL container?
Specifically, we want to know whether an operator can run a bounded pg_dump using the container's local Unix-domain socket without restarting the database, changing its configuration, replacing the service image, or exposing PostgreSQL publicly.
If this is not supported, is there an authenticated control-plane mechanism to obtain a portable, consistent PostgreSQL backup that can be restored outside Railway?
We are not requesting execution or changes to our deployment at this stage. We only need confirmation of the supported mechanisms.
Thank you.
Status changed to Awaiting Railway Response Railway • about 1 month ago
a month ago
Besides railway ssh, the service's Console tab in the dashboard opens a shell in the running container from your authenticated session. You can run commands there, such as a pg_dump against the local socket, without restarting the database or changing its image or configuration.
On the control-plane side, the native volume backups and point-in-time recovery for this image are not portable exports. Volume backups can only be restored into the same project and environment they were created in, and a PITR restore creates a new PostgreSQL service in your project. Neither one gives you a downloadable dump that you can restore outside Railway.
Status changed to Awaiting User Response Railway • about 1 month ago
25 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 • 25 days ago