-
Notifications
You must be signed in to change notification settings - Fork 581
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
password_encryption cannot be set as allowed by postgres12 #483
Comments
Hi, the same goes for the postgresql.conf-11.j2 config file. Valid values should be:
|
FWIW, the issue seems to be resolved in PR #470 for postgresql 11, however the template for postgresql 12 needs to be updated too with the same change. |
The PR #470 is a blanket change, with more than just the template, but has a good solution:
|
Closing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
postgresql.conf-12.j2:password_encryption = {{ 'on' if postgresql_password_encryption else 'off' }} # md5 or scram-sha-256
postgresql.conf-12.orig:#password_encryption = md5 # md5 or scram-sha-256
if I understand this correct, only on or off can be set, while postgres prefers md5 or scram-sha-256
from https://www.postgresql.org/docs/12/runtime-config-connection.html:
The default value is md5, which stores the password as an MD5 hash (on is also accepted, as alias for md5). Setting this parameter to scram-sha-256 will encrypt the password with SCRAM-SHA-256.
The text was updated successfully, but these errors were encountered: