Patroni Cluster initializing with scram-sha 256

874 Views Asked by At

When I am trying to install patroni , I can initialize database with md5 , all the cluster is working well. .

But when i tried to install patroni with initializing scram-sha 256 . It is not starting also status stay

"replica" for all database instancess in cluster. Also on patroni logs i can see this error ""postgres" does not have a valid SCRAM verifier" . What is the solution for this ?

Info : password_encryption is scram-sha 256 All hba.conf entries are scram-sha 256.

1

There are 1 best solutions below

5
On

You have to set the configuration parameter password_encryption to scram-sha-256 before setting a password for the user PostgreSQL.

If you don't know how to do that initially, use trust authentication for the setup and modify that later, when you have set the SCRAM password.