Skip to content

Conversation

@yosifkit
Copy link
Member

This makes it so that it no longer blocks on username. If no POSTGRES_PASSWORD is specified it will be very insecure (trust any user from anywhere), otherwise it will have md5 as the auth method.

Fixes: #47
Related: #31

Copy link
Member

Choose a reason for hiding this comment

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

I think this needs a tiny bit more information about exactly who can connect, because it's not really "anyone", it's "anyone with access to the port".

My take:

This will allow anyone with access to the Postgres port to access your database.  In Docker's default configuration, this is effectively any other container on the same system.

Use "-e POSTGRES_PASSWORD=password" to set a password in "docker run".

@tianon
Copy link
Member

tianon commented Feb 13, 2015

Other than nitpicking the wording of the message, LGTM.

@yosifkit
Copy link
Member Author

Updated, ping @tianon.

@tianon
Copy link
Member

tianon commented Feb 14, 2015

LGTM

tianon added a commit that referenced this pull request Feb 14, 2015
Update pg_hba generation
@tianon tianon merged commit 6e89f39 into docker-library:master Feb 14, 2015
@tianon tianon deleted the hba branch February 14, 2015 00:59
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.

Can't connect from other applications by default

2 participants