Skip to content

Correct manage setting 'password_encryption' for PostgreSQL 10 and above #460

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

Merged
merged 4 commits into from
Feb 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/postgresql.conf-11.j2
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ tcp_keepalives_count = {{ postgresql_tcp_keepalives_count }} # TCP_KEEPCNT;
# - Authentication -

authentication_timeout = {{ postgresql_authentication_timeout }} # 1s-600s
password_encryption = {{ 'on' if postgresql_password_encryption else 'off' }} # md5 or scram-sha-256
password_encryption = {{ postgresql_password_encryption }}
db_user_namespace = {{ 'on' if postgresql_db_user_namespace else 'off' }}

# GSSAPI using Kerberos
Expand Down
2 changes: 1 addition & 1 deletion templates/postgresql.conf-12.j2
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ tcp_user_timeout = {{ postgresql_tcp_user_timeout }} # TCP_USE
# - Authentication -

authentication_timeout = {{ postgresql_authentication_timeout }} # 1s-600s
password_encryption = {{ 'on' if postgresql_password_encryption else 'off' }} # md5 or scram-sha-256
password_encryption = {{ postgresql_password_encryption }}
db_user_namespace = {{ 'on' if postgresql_db_user_namespace else 'off' }}

# GSSAPI using Kerberos
Expand Down
2 changes: 1 addition & 1 deletion templates/postgresql.conf-9.1.j2
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ssl = {{'on' if postgresql_ssl else 'off'}} # (change requires restart)
ssl_ciphers = '{{postgresql_ssl_ciphers|join(':')}}' # allowed SSL ciphers
# (change requires restart)
ssl_renegotiation_limit = {{postgresql_ssl_renegotiation_limit}} # amount of data between renegotiations
password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
password_encryption = {{postgresql_password_encryption}}
db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}

# Kerberos and GSSAPI
Expand Down
2 changes: 1 addition & 1 deletion templates/postgresql.conf-9.2.j2
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
ssl_crl_file = '{{postgresql_ssl_crl_file}}' # (change requires restart)
password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
password_encryption = {{postgresql_password_encryption}}
db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}

# Kerberos and GSSAPI
Expand Down
2 changes: 1 addition & 1 deletion templates/postgresql.conf-9.3.j2
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
ssl_crl_file = '{{postgresql_ssl_crl_file}}' # (change requires restart)
password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
password_encryption = {{postgresql_password_encryption}}
db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}

# Kerberos and GSSAPI
Expand Down
2 changes: 1 addition & 1 deletion templates/postgresql.conf-9.4.j2
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
ssl_crl_file = '{{postgresql_ssl_crl_file}}' # (change requires restart)
password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
password_encryption = {{postgresql_password_encryption}}
db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}

# GSSAPI using Kerberos
Expand Down
2 changes: 1 addition & 1 deletion templates/postgresql.conf-9.5.j2
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
ssl_crl_file = '{{postgresql_ssl_crl_file}}' # (change requires restart)
password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
password_encryption = {{postgresql_password_encryption}}
db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}
row_security = {{'on' if postgresql_row_security else 'off'}}

Expand Down
2 changes: 1 addition & 1 deletion templates/postgresql.conf-9.6.j2
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
ssl_crl_file = '{{postgresql_ssl_crl_file}}' # (change requires restart)
password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
password_encryption = {{postgresql_password_encryption}}
db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}
row_security = {{'on' if postgresql_row_security else 'off'}}

Expand Down