diff options
author | Strahinja Kustudic <kustodian@gmail.com> | 2018-05-21 21:49:44 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-05-21 21:49:44 +0200 |
commit | 32d6a354d74c2ac18bb73e50b843d5bbf55c6b13 (patch) | |
tree | 03faa7f825cab8651a22214de7cc325af9118923 /CHANGELOG.md | |
parent | remove extra ) (diff) | |
download | ansible-32d6a354d74c2ac18bb73e50b843d5bbf55c6b13.tar.xz ansible-32d6a354d74c2ac18bb73e50b843d5bbf55c6b13.zip |
postgresql_user: set encrypted as default and fix empty password reporting changed (#36931)
* Set encrypted as default and fix empty password reporting changed
* Starting with Postgres 10 `UNENCRYPTED` passwords are removed and
because of that this module fails with the default `encrypted=no`.
Also encrypted passwords are suported since version 7.2
(https://www.postgresql.org/docs/7.2/static/sql-createuser.html) which
went EOL in 2007 and since 7.3 it is the default. Because of this it
makes a lot more sense to make `encrypted=yes` the default. This won't
break backward compatibility, the module would just update the user's
password in the DB in the hashed format and everything else will work
like before. It's also a security bad practice to store passwords in
plain text. fixes #25823
* There was also a bug with `encrypted=yes` and an empty password always
reported as changed.
* Improved documentation for `encrypted`/`password` parameters, and
removed some obsolete notes about passlib.
* Fix clearing user's password to work with all versions of Postgres
* Add tests for clearing the user password
* Fix documentation atfer rebase
* Add changelog fragment
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4de710bd2f..9b33e109fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,11 @@ See [Porting Guide](https://docs.ansible.com/ansible/devel/porting_guides/portin * Removed restriction from protocol in cloudflare_dns module to allow other protocols than tcp and udp to be specified. * Ansible 2.6 and onwards, `target_id` parameter in `vmware_target_canonical_facts` module is an optional parameter. +* `postgresql_user` module changed `encrypted=yes` to be the default. This + shouldn't break any current playbooks, the module will just store passwords + hashed by default. This change was done because Postgres 10 dropped support for + `UNENCRYPTED` passwords and because all versions since Postgres 7.2 support + storing encrypted passwords. #### Removed modules (previously deprecated) |