bicep/postgresql: use scram-sha-256 as default password algorithm

This commit is contained in:
h7x4
2026-07-21 16:32:49 +09:00
parent 9bd81430a4
commit 950b163869
@@ -14,6 +14,7 @@ in
extensions = ps: with ps; [ pg_repack ];
enableTCPIP = true;
# NOTE: md5 accepts both md5 and scram-sha-256
authentication = ''
host all all ${values.ipv4-space} md5
host all all ${values.ipv6-space} md5
@@ -76,6 +77,9 @@ in
maintenance_io_concurrency = 100;
wal_recycle = true;
# Authentication
password_encryption = "scram-sha-256";
# SSL
ssl = true;
ssl_cert_file = "/run/credentials/postgresql.service/cert";