Skip to content

Conversation

@davissp14
Copy link
Contributor

@davissp14 davissp14 commented Feb 24, 2023

If a user manually alters the postgres user password and does not update the associated OPERATOR_PASSWORD the cluster will not boot properly.

This PR adds a warning indicating the issue and a hint on how to resolve it.

2023-02-24T23:29:30Z app[39080777f24487] den [info]postgres | 2023-02-24 23:29:30.786 UTC [597] FATAL:  password authentication failed for user "postgres"
2023-02-24T23:29:30Z app[39080777f24487] den [info]postgres | 2023-02-24 23:29:30.786 UTC [597] DETAIL:  Connection matched pg_hba.conf line 8: "host all all ::0/0 md5"
2023-02-24T23:29:30Z app[39080777f24487] den [info]WARNING: `postgres` user password does not match the `OPERATOR_PASSWORD` secret
2023-02-24T23:29:30Z app[39080777f24487] den [info]HINT: Use `fly secrets set OPERATOR_PASSWORD=<password> --app shaun-password-test-2` to resolve the issue
2023-02-24T23:29:30Z app[39080777f24487] den [info]failed post-init: failed to establish connection to local node: failed to connect to `host=fdaa:0:2e26:a7b:d828:8945:f3e0:2 user=postgres database=postgres`: failed SASL auth (FATAL: password authentication failed for user "postgres" (SQLSTATE 28P01)). Retrying...

@davissp14 davissp14 requested a review from DAlperin February 24, 2023 23:34
Copy link
Contributor

@DAlperin DAlperin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #139

@davissp14 davissp14 merged commit 649bcb5 into master Feb 25, 2023
@davissp14 davissp14 deleted the log-hint-on-auth-error branch February 25, 2023 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants