Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow all to connect in with md5 auth using IPv6 #551

Merged
merged 1 commit into from Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions templates/postgres.10.template.yml
Expand Up @@ -118,6 +118,12 @@ run:
from: /^host.*all.*all.*127.*$/
to: "host all all 0.0.0.0/0 md5"

# allow all to connect in with md5 auth (IPv6)
- replace:
filename: "/etc/postgresql/13/main/pg_hba.conf"
from: /^host.*all.*all.*::1\/128.*$/
to: "host all all ::/0 md5"

- exec:
background: true
# use fast shutdown for pg
Expand Down
6 changes: 6 additions & 0 deletions templates/postgres.12.template.yml
Expand Up @@ -117,6 +117,12 @@ run:
from: /^host.*all.*all.*127.*$/
to: "host all all 0.0.0.0/0 md5"

# allow all to connect in with md5 auth (IPv6)
- replace:
filename: "/etc/postgresql/13/main/pg_hba.conf"
from: /^host.*all.*all.*::1\/128.*$/
to: "host all all ::/0 md5"

- exec:
background: true
# use fast shutdown for pg
Expand Down
6 changes: 6 additions & 0 deletions templates/postgres.13.template.yml
Expand Up @@ -192,6 +192,12 @@ run:
from: /^host.*all.*all.*137.*$/
to: "host all all 0.0.0.0/0 md5"

# allow all to connect in with md5 auth (IPv6)
- replace:
filename: "/etc/postgresql/13/main/pg_hba.conf"
from: /^host.*all.*all.*::1\/128.*$/
to: "host all all ::/0 md5"

- exec:
background: true
# use fast shutdown for pg
Expand Down
6 changes: 6 additions & 0 deletions templates/postgres.9.5.template.yml
Expand Up @@ -118,6 +118,12 @@ run:
from: /^host.*all.*all.*127.*$/
to: "host all all 0.0.0.0/0 md5"

# allow all to connect in with md5 auth (IPv6)
- replace:
filename: "/etc/postgresql/13/main/pg_hba.conf"
from: /^host.*all.*all.*::1\/128.*$/
to: "host all all ::/0 md5"

- exec:
background: true
# use fast shutdown for pg
Expand Down
6 changes: 6 additions & 0 deletions templates/postgres.template.yml
Expand Up @@ -192,6 +192,12 @@ run:
from: /^host.*all.*all.*127.*$/
to: "host all all 0.0.0.0/0 md5"

# allow all to connect in with md5 auth (IPv6)
- replace:
filename: "/etc/postgresql/13/main/pg_hba.conf"
from: /^host.*all.*all.*::1\/128.*$/
to: "host all all ::/0 md5"

- exec:
background: true
# use fast shutdown for pg
Expand Down