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

Postgres: mispelling of docker-compose evironment variable POSTGRES_PASSWORD #245

Closed
Matthias-Schaub opened this issue Dec 2, 2019 · 1 comment

Comments

@Matthias-Schaub
Copy link
Contributor

In docker-compose.yaml POSTRES_PASSWORD had a typo during first deployment.
The consequence of this was no password for postgres.
When no password is provided the docker postgres instance will set the authentication method in pg_hba.conf to "trust" (host all all all trust) which disabled the password checks for all users, even if a password will added later on (ALTER USER username WITH PASSWORD 'password').

See open issue of docker-library/postgres describing this behavoir in more detail: docker-library/postgres#580

@Matthias-Schaub
Copy link
Contributor Author

Resolved by changing pg_hba.conf inside the container and restarting postgres docker container.

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

No branches or pull requests

1 participant