Skip to content

Commit 1766e41

Browse files
author
Brandon Dunne
committed
Change the default from md5 to scram-sha-256 in pg_hba.conf
1 parent 64e2765 commit 1766e41

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

  • 10/root/usr/share/container-scripts/postgresql
  • 12/root/usr/share/container-scripts/postgresql
  • 13/root/usr/share/container-scripts/postgresql
  • 14/root/usr/share/container-scripts/postgresql
  • 15/root/usr/share/container-scripts/postgresql
  • 16/root/usr/share/container-scripts/postgresql
  • src/root/usr/share/container-scripts/postgresql

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ EOF
224224
#
225225
226226
# Allow connections from all hosts.
227-
host all all all md5
227+
host all all all scram-sha-256
228228
229229
# Allow replication connections from all hosts.
230-
host replication all all md5
230+
host replication all all scram-sha-256
231231
EOF
232232
}
233233

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ EOF
224224
#
225225
226226
# Allow connections from all hosts.
227-
host all all all md5
227+
host all all all scram-sha-256
228228
229229
# Allow replication connections from all hosts.
230-
host replication all all md5
230+
host replication all all scram-sha-256
231231
EOF
232232
}
233233

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ EOF
224224
#
225225
226226
# Allow connections from all hosts.
227-
host all all all md5
227+
host all all all scram-sha-256
228228
229229
# Allow replication connections from all hosts.
230-
host replication all all md5
230+
host replication all all scram-sha-256
231231
EOF
232232
}
233233

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ EOF
224224
#
225225
226226
# Allow connections from all hosts.
227-
host all all all md5
227+
host all all all scram-sha-256
228228
229229
# Allow replication connections from all hosts.
230-
host replication all all md5
230+
host replication all all scram-sha-256
231231
EOF
232232
}
233233

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ EOF
224224
#
225225
226226
# Allow connections from all hosts.
227-
host all all all md5
227+
host all all all scram-sha-256
228228
229229
# Allow replication connections from all hosts.
230-
host replication all all md5
230+
host replication all all scram-sha-256
231231
EOF
232232
}
233233

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ EOF
224224
#
225225
226226
# Allow connections from all hosts.
227-
host all all all md5
227+
host all all all scram-sha-256
228228
229229
# Allow replication connections from all hosts.
230-
host replication all all md5
230+
host replication all all scram-sha-256
231231
EOF
232232
}
233233

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ EOF
225225
#
226226
227227
# Allow connections from all hosts.
228-
host all all all md5
228+
host all all all scram-sha-256
229229
230230
# Allow replication connections from all hosts.
231-
host replication all all md5
231+
host replication all all scram-sha-256
232232
EOF
233233
}
234234

0 commit comments

Comments
 (0)