2 hours ago
We use Railway’s standard PostgreSQL 16 service with private networking. We need to run one application schema migration from a separate Railway service through a temporary PostgreSQL login, while retaining Railway’s standard database support and preserving the existing application logins.
Is there a supported Dashboard or CLI flow to create and remove a short-lived login whose TLS/SCRAM access is limited to one database? In particular, can it be prevented from connecting to other databases that already grant CONNECT to PUBLIC?
The database support documentation lists direct SQL role changes and shell edits to engine configuration as outside the template’s support scope. If no supported flow is available, could a Railway team member confirm? If there is one, please point to the documented steps and confirm whether applying and removing the temporary access preserves support.
1 Reply
2 hours ago
The dashboard and CLI flows that our database support covers are backups, point-in-time recovery, high availability, connection pooling and major upgrades, as listed in the database support scope. Creating or removing a PostgreSQL login, or limiting which databases it can connect to, is not part of those flows.
Per that same scope, changing roles through SQL or editing the engine's config files through a shell moves the database outside template support, and that applies to a temporary change as well. Support for the platform itself (provisioning, volumes, networking) continues either way.
Within the supported setup, the migration service would connect with the existing credentials the template provides, for example by referencing the Postgres service's DATABASE_URL over private networking.
Status changed to Awaiting User Response Railway • about 2 hours ago