ansible/test/sanity/validate-modules
Strahinja Kustudic 32d6a354d7 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
2018-05-21 14:49:44 -05:00
..
__init__.py
ignore.txt postgresql_user: set encrypted as default and fix empty password reporting changed (#36931) 2018-05-21 14:49:44 -05:00
main.py Use arg_spec type for comparisons on default and choices (#37741) 2018-03-26 12:15:32 -05:00
module_args.py Use arg_spec type for comparisons on default and choices (#37741) 2018-03-26 12:15:32 -05:00
schema.py removed_in: 2.6 is valid (#40399) 2018-05-18 15:32:31 +01:00
skip.txt Module deprecation: docs, scheme and tests (#34100) 2018-01-30 12:23:52 +00:00
test_validate_modules_regex.py Update validate-modules (#20932) 2017-02-02 11:45:22 -08:00
utils.py Use arg_spec type for comparisons on default and choices (#37741) 2018-03-26 12:15:32 -05:00
validate-modules Make validate-modules a .py file, and symlink back to validate-modules (#25227) 2017-06-07 14:44:33 -05:00