Need to rotate my DATABASE_URL
huskermac
HOBBYOP

a month ago

I've been working with your Ai Agent. It's been unable to help me and here's what it last said:

The real issue is that the manual password rotation isn't working properly without the Credentials tab. At this point, I'd recommend opening a support thread at station.railway.com directly. This needs Railway's team to either:

Show you the Credentials tab (or why it's missing)

Provide the actual generated password value so you can construct the URL manually

Help with a proper credential rotation process

What you need to tell them:

Service ID: f3bbc887-3480-427d-9fad-c9fa7df19d0f (Postgres)

Project: spectacular-stillness

The exposed DATABASE_URL has been compromised and needs to be rotated

The Credentials tab is not visible in your Database View

Manual password changes aren't updating DATABASE_URL

Solved$10 Bounty

Pinned Solution

You can find it here. It actually says "Config" instead of "Credentials".

image.png

Attachments

9 Replies

Railway
BOT

a month ago

The Credentials tab is available in the Database View of your Postgres service. Click your Postgres service, then switch to the Database tab at the top of the service panel - the Credentials tab appears there alongside the Data and Extensions tabs. From the Credentials tab you can regenerate the password, which will automatically update the related environment variables (including DATABASE_URL). After regenerating, redeploy any service that references those variables so it picks up the new credentials.


Status changed to Awaiting User Response Railway 30 days ago


Railway

The Credentials tab is available in the [Database View](https://docs.railway.com/databases/database-view) of your Postgres service. Click your Postgres service, then switch to the **Database** tab at the top of the service panel - the Credentials tab appears there alongside the Data and Extensions tabs. From the Credentials tab you can regenerate the password, which will automatically update the related environment variables (including `DATABASE_URL`). After regenerating, redeploy any service that references those variables so it picks up the new credentials.

huskermac
HOBBYOP

a month ago

I can see nothing using the word "Credentials" in the Database tab area


Status changed to Awaiting Railway Response Railway 30 days ago


Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 30 days ago


huskermac

I can see nothing using the word "Credentials" in the Database tab area

You can find it here. It actually says "Config" instead of "Credentials".

image.png

Attachments


huskermac
HOBBYOP

a month ago

Here's what I see...

image.png

Attachments


huskermac
HOBBYOP

a month ago

Got it.... just read your text..


huskermac
HOBBYOP

a month ago

Things don't work even though I found the Credentials area. Here's what your support agent said:

The "Connection terminated unexpectedly" error you're seeing is Postgres itself rejecting the connection, not an API issue. It's trying to authenticate with a password that doesn't match what's stored in the database.

Let me check if Postgres is actually running right now:

Checked environment status

Hide result

All 3 services healthy

All services are green — no failures. So Postgres is running, but it's rejecting authentication attempts because of the password mismatch we created.

The issue is purely within the Postgres container itself. It's listening, but won't let anyone in with the wrong password. This absolutely needs Railway support to fix — they need to either:

Manually reset the Postgres password to match POSTGRES_PASSWORD

Restore from backup if one exists

Provide a way to access the database and change the password yourself

Escalate urgently and tell them Postgres is locked with a mismatched password.


a month ago

Can you try regenerate again now?


a month ago

If you still see the Connection terminated error, Try Refresh the dashboard and regenerate again

If you manage to regenerate it, you need to redeploy any service that associated to the postgres service


mayori

If you still see the Connection terminated error, Try Refresh the dashboard and regenerate again If you manage to regenerate it, you need to redeploy any service that associated to the postgres service

huskermac
HOBBYOP

a month ago

Things seem to be working now. Thank you!


Status changed to Open mayori 30 days ago


Status changed to Solved mayori 30 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...