21 days ago
Subject: Need Railway-managed Postgres credential rotation
Hi Railway Support,
We need to rotate the managed Postgres credentials for our production Postgres service.
There is no visible “Regenerate password” / credential rotation button in our Railway Postgres UI.
Please rotate/resynchronize the production Postgres password safely so the actual Postgres server password and Railway-provided variables remain in sync, including:
- POSTGRES_PASSWORD
- PGPASSWORD
- DATABASE_URL
- DATABASE_PRIVATE_URL / internal DATABASE_URL if applicable
- DATABASE_PUBLIC_URL if present
Important: we do not want to manually edit POSTGRES_PASSWORD in Variables because that may only change the environment variable and not the actual database user password.
Public TCP proxy is currently disabled. Please keep public TCP disabled unless you explicitly need it for the rotation.
Please confirm when rotation is complete and whether dependent services need redeploy/restart.
5 Replies
21 days ago
Your Postgres service has a Credentials tab (next to the Data and Extensions tabs when you click into the service) that lets you regenerate the password safely, keeping both the actual database password and all related environment variables (POSTGRES_PASSWORD, DATABASE_URL, etc.) in sync. This feature does not affect your TCP proxy settings, so it will remain disabled. After rotating, you will need to manually redeploy any dependent services (like your backend and media workers) so they pick up the new connection strings.
Status changed to Awaiting User Response Railway • 21 days ago
Railway
Your Postgres service has a **Credentials tab** (next to the Data and Extensions tabs when you click into the service) that lets you regenerate the password safely, keeping both the actual database password and all related environment variables (POSTGRES_PASSWORD, DATABASE_URL, etc.) in sync. This feature does not affect your TCP proxy settings, so it will remain disabled. After rotating, you will need to manually redeploy any dependent services (like your backend and media workers) so they pick up the new connection strings.
21 days ago
i cant find it
Status changed to Awaiting Railway Response Railway • 21 days ago
Status changed to Open Railway • 21 days ago
0x5b62656e5d
Is it not here? 
21 days ago
not passeord i need to regenerate database url and postgre password
21 days ago
The password should be regenerated from the button I showed in the screenshot above.
For the URL, you can change the internal hostname by going into the networking settings, hover over the current URL, and edit it.
For the public TCP proxy, try deleting it and regenerating it.
Attachments