Use scram-sha-256 for password encryption#251
Conversation
|
|
|
Due to the way how the container is built (see https://github.com/sclorg/postgresql-container/blob/36708b73fc149e5905f95391f9d29ef7c8c35bcf/13/root/usr/share/container-scripts/postgresql/common.sh#L225-L239) the DB does still accept md5-based connections -- but authentication will obviously fail if the password is not md5-hashed in the DB (which this PR enables). I think we should add a test to https://github.com/theforeman/foremanctl/blob/master/tests/postgresql_test.py that checks that SCRAM is used for all users. |
Ah, yes, the Edit: For writing a test, the following is probably easier to parse: Also, a container restart is sufficient to fix the password of the |
365aee3 to
22943b6
Compare
22943b6 to
453df3e
Compare
For #106