5 hours ago
Hello Railway Support,
We use Railway’s PostgreSQL 16 SSL template and are reviewing database connection permissions. Before changing anything, could you confirm whether any Railway-operated tasks, such as health checks, routine maintenance, backups, restores, or point-in-time recovery, connect to postgres, railway, or template1 using a role that gets CONNECT only through PUBLIC?
If any do, could you tell us which tasks use which databases and whether granting CONNECT directly to the relevant roles would preserve those operations?
Thank you.
3 Replies
5 hours ago
Point-in-time recovery runs inside your Postgres service's own image: pgBackRest archives each WAL segment and takes base backups from within the container and sends them to a storage bucket. A PITR restore never connects to your existing database. It creates a new service and rebuilds its empty volume from the bucket on first boot. Volume backups and in-place backup restores work on the volume attached to the service.
We can't confirm which database role or database name, if any, these tasks or health checks use for a connection, so we can't say whether revoking CONNECT from PUBLIC would affect them. If you need to rely on that change, apply it to a copy of the database in a separate test environment first, then run a backup, a restore and a PITR restore there before changing production.
Status changed to Awaiting User Response Railway • about 5 hours ago
5 hours ago
Thanks for clarifying how point-in-time restore works. Could someone from the Railway team confirm whether any Railway-operated health checks or maintenance tasks on the PostgreSQL 16 SSL template rely on PUBLIC CONNECT for postgres, railway, or template1? If that behavior is undocumented, could you confirm that as well?
Status changed to Awaiting Railway Response Railway • about 5 hours ago
5 hours ago
We can't give a staff or engineering confirmation of which database or role, if any, our health checks or maintenance tasks use to connect, so we can't confirm whether revoking CONNECT from PUBLIC on postgres, railway, or template1 would affect them.
If you need to rely on that change, the way to verify it is in an isolated copy: apply the same grants in a separate test environment, then watch that the service still passes its deploys and restarts, and that a backup, a restore and a PITR restore all complete there before you change production.
Status changed to Awaiting User Response Railway • about 5 hours ago