From ee0fb133ee320135099da0dfe2d714bb91bc10c3 Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Tue, 30 Jul 2024 15:31:48 -0400 Subject: [PATCH] Change the default from md5 to scram-sha-256 in pg_hba.conf --- 12/root/usr/share/container-scripts/postgresql/common.sh | 4 ++-- 13/root/usr/share/container-scripts/postgresql/common.sh | 4 ++-- 15/root/usr/share/container-scripts/postgresql/common.sh | 4 ++-- 16/root/usr/share/container-scripts/postgresql/common.sh | 4 ++-- 18/root/usr/share/container-scripts/postgresql/common.sh | 4 ++-- src/root/usr/share/container-scripts/postgresql/common.sh | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/12/root/usr/share/container-scripts/postgresql/common.sh b/12/root/usr/share/container-scripts/postgresql/common.sh index 30c914d0..b4d41564 100644 --- a/12/root/usr/share/container-scripts/postgresql/common.sh +++ b/12/root/usr/share/container-scripts/postgresql/common.sh @@ -216,10 +216,10 @@ EOF # # Allow connections from all hosts. -host all all all md5 +host all all all scram-sha-256 # Allow replication connections from all hosts. -host replication all all md5 +host replication all all scram-sha-256 EOF } diff --git a/13/root/usr/share/container-scripts/postgresql/common.sh b/13/root/usr/share/container-scripts/postgresql/common.sh index 2ffde0f9..5ff9ccd6 100644 --- a/13/root/usr/share/container-scripts/postgresql/common.sh +++ b/13/root/usr/share/container-scripts/postgresql/common.sh @@ -216,10 +216,10 @@ EOF # # Allow connections from all hosts. -host all all all md5 +host all all all scram-sha-256 # Allow replication connections from all hosts. -host replication all all md5 +host replication all all scram-sha-256 EOF } diff --git a/15/root/usr/share/container-scripts/postgresql/common.sh b/15/root/usr/share/container-scripts/postgresql/common.sh index 5c4e2ff5..c48316c4 100644 --- a/15/root/usr/share/container-scripts/postgresql/common.sh +++ b/15/root/usr/share/container-scripts/postgresql/common.sh @@ -216,10 +216,10 @@ EOF # # Allow connections from all hosts. -host all all all md5 +host all all all scram-sha-256 # Allow replication connections from all hosts. -host replication all all md5 +host replication all all scram-sha-256 EOF } diff --git a/16/root/usr/share/container-scripts/postgresql/common.sh b/16/root/usr/share/container-scripts/postgresql/common.sh index 5eb792a4..4b1f0332 100644 --- a/16/root/usr/share/container-scripts/postgresql/common.sh +++ b/16/root/usr/share/container-scripts/postgresql/common.sh @@ -216,10 +216,10 @@ EOF # # Allow connections from all hosts. -host all all all md5 +host all all all scram-sha-256 # Allow replication connections from all hosts. -host replication all all md5 +host replication all all scram-sha-256 EOF } diff --git a/18/root/usr/share/container-scripts/postgresql/common.sh b/18/root/usr/share/container-scripts/postgresql/common.sh index c61dfc83..e21e4a13 100644 --- a/18/root/usr/share/container-scripts/postgresql/common.sh +++ b/18/root/usr/share/container-scripts/postgresql/common.sh @@ -216,10 +216,10 @@ EOF # # Allow connections from all hosts. -host all all all md5 +host all all all scram-sha-256 # Allow replication connections from all hosts. -host replication all all md5 +host replication all all scram-sha-256 EOF } diff --git a/src/root/usr/share/container-scripts/postgresql/common.sh b/src/root/usr/share/container-scripts/postgresql/common.sh index beca8ddc..f2fe9a8a 100644 --- a/src/root/usr/share/container-scripts/postgresql/common.sh +++ b/src/root/usr/share/container-scripts/postgresql/common.sh @@ -217,10 +217,10 @@ EOF # # Allow connections from all hosts. -host all all all md5 +host all all all scram-sha-256 # Allow replication connections from all hosts. -host replication all all md5 +host replication all all scram-sha-256 EOF }