Open stevebang opened 4 years ago
Another reason to change the password to match the password_encryption
setting:
password_encryption=scram_sha_256
.yugabyte
password using \password
so that it is SCRAM-hashed.password_encryption=scram_sha_256
. Log in with the yugabyte
password and it works.yb-ctl destroy
and then start the cluster again with password_encryption=scram_sha_256
. ysql_hba_conf
rules.Just to make it much easier for users, when clusters are created with password_encryption=scram_sha_256
, then the yugabyte
default password should also be SCRAM-hashed. Otherwise, users have to go through multiple steps to convert the password and then remove the ysql_hba_conf rule that accepts MD5 passwords.
@stevebang what about users migrating from PostgreSQL ? Their passwords may be saved in md5.
Jira Link: DB-1833 When a new cluster is created with
password_encryption = 'scram-sha-256'
, the default password for theyugabyte
user is MD5-hashed. The password should be SCRAM-hashed and not require additional steps by users. The alternative is to "Consider enabling scram-sha-256 as the default postgres authentication method instead of md5" (#4138 - filed by @iSignal).Without addressing this issue, users must perform additional steps to change the
yugabyte
password to SCRAM-hashed.Current behavior
md5
toscram-sha-256
. Because this is a PostgreSQL configuration parameter, you need to add the following flag to your flagfile.--yb_hba_conf
to usescram-sha-256
. In this case, we put:This requires authentication for all users except the
postgres
role, which doesn't have a password by default.yugabyte
.