Skip to content

Commit ee0fb13

Browse files
Brandon Dunnephracek
authored andcommitted
Change the default from md5 to scram-sha-256 in pg_hba.conf
1 parent e31a9c5 commit ee0fb13

File tree

6 files changed

+12
-12
lines changed
  • 12/root/usr/share/container-scripts/postgresql
  • 13/root/usr/share/container-scripts/postgresql
  • 15/root/usr/share/container-scripts/postgresql
  • 16/root/usr/share/container-scripts/postgresql
  • 18/root/usr/share/container-scripts/postgresql
  • src/root/usr/share/container-scripts/postgresql

6 files changed

+12
-12
lines changed

12/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ EOF
216216
#
217217
218218
# Allow connections from all hosts.
219-
host all all all md5
219+
host all all all scram-sha-256
220220
221221
# Allow replication connections from all hosts.
222-
host replication all all md5
222+
host replication all all scram-sha-256
223223
EOF
224224
}
225225

13/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ EOF
216216
#
217217
218218
# Allow connections from all hosts.
219-
host all all all md5
219+
host all all all scram-sha-256
220220
221221
# Allow replication connections from all hosts.
222-
host replication all all md5
222+
host replication all all scram-sha-256
223223
EOF
224224
}
225225

15/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ EOF
216216
#
217217
218218
# Allow connections from all hosts.
219-
host all all all md5
219+
host all all all scram-sha-256
220220
221221
# Allow replication connections from all hosts.
222-
host replication all all md5
222+
host replication all all scram-sha-256
223223
EOF
224224
}
225225

16/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ EOF
216216
#
217217
218218
# Allow connections from all hosts.
219-
host all all all md5
219+
host all all all scram-sha-256
220220
221221
# Allow replication connections from all hosts.
222-
host replication all all md5
222+
host replication all all scram-sha-256
223223
EOF
224224
}
225225

18/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ EOF
216216
#
217217
218218
# Allow connections from all hosts.
219-
host all all all md5
219+
host all all all scram-sha-256
220220
221221
# Allow replication connections from all hosts.
222-
host replication all all md5
222+
host replication all all scram-sha-256
223223
EOF
224224
}
225225

src/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ EOF
217217
#
218218
219219
# Allow connections from all hosts.
220-
host all all all md5
220+
host all all all scram-sha-256
221221
222222
# Allow replication connections from all hosts.
223-
host replication all all md5
223+
host replication all all scram-sha-256
224224
EOF
225225
}
226226

0 commit comments

Comments
 (0)