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

Update generated "pg_hba.conf" content for IPv6 support #202

Merged
merged 2 commits into from
Dec 6, 2016

Conversation

p0123n
Copy link
Contributor

@p0123n p0123n commented Oct 11, 2016

IPv6 default rule added into pg_hba.conf

@@ -43,6 +43,8 @@ if [ "$1" = 'postgres' ]; then
fi

{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
{ echo; echo "host all all ::/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be simpler to just use all for the address; then we only add one line to hba.conf.

You can also write all to match any IP address, samehost to match any of the server's own IP addresses, or samenet to match any address in any subnet that the server is directly connected to.
https://www.postgresql.org/docs/9.3/static/auth-pg-hba-conf.html

(also, can you remove the extra blank line added below)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, "all" seems like better solution, thank you. Also, extra blank line was removed :-)

@tianon tianon changed the title Update docker-entrypoint.sh Update generated "pg_hba.conf" content for IPv6 support Oct 11, 2016
p0123n and others added 2 commits December 6, 2016 12:55
IPv6 default rule added into pg_hba.conf

The "all" keyword instead of the IP notation
@tianon
Copy link
Member

tianon commented Dec 6, 2016

Rebased and ran update.sh so that Travis could test all variants. 👍

LGTM, thanks!

@tianon tianon merged commit 819476b into docker-library:master Dec 6, 2016
tianon added a commit to infosiftr/stackbrew that referenced this pull request Dec 6, 2016
- `golang`: update Windows Git to 2.11.0 (docker-library/golang#126)
- `php`: fix subshell usage (docker-library/php#334)
- `postgres`: update `pg_hba.conf` for IPv6 support (docker-library/postgres#202)
- `rocket.chat`: 0.47.0
- `wordpress`: 4.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants