-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Set random password if POSTGRES_PASSWORD was not provided #1199
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
Comments
Sorry for the slow response. I'm not sure I understand the ask, but we don't want to add more magic behavior to the entrypoint at this time. The user must set a password via |
@yosifkit I mean that by entry we are able to not require Thanks for the link. I do not see any mentions that it is "insecure" there. Even the link from that read me says it could be Ok. https://www.postgresql.org/docs/14/auth-trust.html. Though it looks like it refers to the outdated documentation. Should it be |
We moved to explicitly require a password in #658. We don't want to reverse that with an automatic random password.
|
It would be nice to have this mentioned at that document. Thanks. *I understand this is obvious for experienced users but this could be useful for a new one. |
Actually this is not required to provide this password. In
pg_hba.conf
file by default we trust connections via socket, thus user in any time can login andALTER ROLE postgres
. So this is secure and less error prone solution.The text was updated successfully, but these errors were encountered: