Skip to content

Commit 90ba87b

Browse files
authored
Merge pull request ANXS#507 from noris-network/fix_password_encryption
Setting sane default for password encryption
2 parents 539ad13 + 27879b9 commit 90ba87b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

defaults/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ postgresql_ssl_cert_file: "/etc/ssl/certs/ssl-cert-snakeoil.pem" # (>= 9.2)
148148
postgresql_ssl_key_file: "/etc/ssl/private/ssl-cert-snakeoil.key" # (>= 9.2)
149149
postgresql_ssl_ca_file: "" # (>= 9.2)
150150
postgresql_ssl_crl_file: "" # (>= 9.2)
151-
postgresql_password_encryption: on
151+
postgresql_password_encryption: "{{ 'md5' if postgresql_version is version_compare('10', '>=') else 'on' }}" # (>=10.0 set to scram-sha-256 for best security)
152152
postgresql_db_user_namespace: off
153153
postgresql_row_security: off # (>= 9.5)
154154

0 commit comments

Comments
 (0)