diff options
author | Sloane Hertel <shertel@redhat.com> | 2020-04-14 22:26:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 19:26:47 -0700 |
commit | d41e38435b1a9e300d8011ac28f16a5add2db119 (patch) | |
tree | 74b24fb22ba61310ccc8bb0e52efb98d9bdecdc4 /docs | |
parent | 0b4788a71fc7d24ffa957a94ee5e23d6a9733ab0 (diff) | |
download | ansible-d41e38435b1a9e300d8011ac28f16a5add2db119.tar.gz |
[2.9] CVE-2020-1746 - Remove the params module option from ldap_attr and ldap_entry (#68714)
* Remove the params module option from ldap_attr and ldap_entry
Module options that circumvent Ansible's option handling were disallowed
in:
https://meetbot.fedoraproject.org/ansible-meeting/2017-09-28/ansible_dev_meeting.2017-09-28-15.00.log.html
Additionally, this particular usage can be insecure if bind_pw is set
this way as the password could end up in a logfile or displayed on
stdout.
Fixes CVE-2020-1746
(cherry picked from commit 0ff609f1bc5e391fa25710b9a0baaf669f347eb1)
* Fix formatting for option names
Co-Authored-By: Felix Fontein <felix@fontein.de>
* Fix fail_json
* fix indentation error
Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/docsite/rst/porting_guides/porting_guide_2.7.rst | 14 | ||||
-rw-r--r-- | docs/docsite/rst/porting_guides/porting_guide_2.8.rst | 9 | ||||
-rw-r--r-- | docs/docsite/rst/porting_guides/porting_guide_2.9.rst | 9 |
3 files changed, 31 insertions, 1 deletions
diff --git a/docs/docsite/rst/porting_guides/porting_guide_2.7.rst b/docs/docsite/rst/porting_guides/porting_guide_2.7.rst index ac412bb4fc..816f77bc5c 100644 --- a/docs/docsite/rst/porting_guides/porting_guide_2.7.rst +++ b/docs/docsite/rst/porting_guides/porting_guide_2.7.rst @@ -103,6 +103,15 @@ hashing algorithm being used with this filter. Deprecated ========== +Expedited Deprecation: Removal of the params module option in ``ldap_attr`` and ``ldap_entry`` +---------------------------------------------------------------------------------------------- + +The ``params`` module option in ``ldap_attr`` and ``ldap_entry`` are deprecated on a short cycle (to +be removed in Ansible-2.10) due to circumventing Ansible's normal option handling. In particular, +if the ``bind_pw`` option is set with ``params``, the value of the option could end up being placed +in a logfile or displayed on stdout. + + Expedited Deprecation: Use of ``__file__`` in ``AnsibleModule`` --------------------------------------------------------------- @@ -192,6 +201,11 @@ The following modules will be removed in Ansible 2.11. Please update your playbo Noteworthy module changes ------------------------- +* **Security Issue** Setting ``bind_pw`` with the ``params`` option for the ``ldap_entry`` and + ``ldap_attr`` modules has been disallowed. If ``bind_pw`` was set with ``params``, the value + could have ended up in a logfile or displayed on stdout. Set ``bind_pw`` directly, with the + modules' options instead. + * Check mode is now supported in the ``command`` and ``shell`` modules. However, only when ``creates`` or ``removes`` is specified. If either of these are specified, the module will check for existence of the file and report the correct changed status, if they are not included the module will skip like it had done previously. diff --git a/docs/docsite/rst/porting_guides/porting_guide_2.8.rst b/docs/docsite/rst/porting_guides/porting_guide_2.8.rst index 5f376b5881..d4879d353e 100644 --- a/docs/docsite/rst/porting_guides/porting_guide_2.8.rst +++ b/docs/docsite/rst/porting_guides/porting_guide_2.8.rst @@ -324,6 +324,11 @@ By default in Ansible 2.7, or with ``AGNOSTIC_BECOME_PROMPT=False`` in Ansible 2 Deprecated ========== +* The ``params`` module option in ``ldap_attr`` and ``ldap_entry`` are deprecated on a short cycle + (to be removed in Ansible-2.10) due to circumventing Ansible's normal option handling. In + particular, if the ``bind_pw`` option is set with ``params``, the value of the option could end up + being placed in a logfile or displayed on stdout. + * Setting the async directory using ``ANSIBLE_ASYNC_DIR`` as an task/play environment key is deprecated and will be removed in Ansible 2.12. You can achieve the same result by setting ``ansible_async_dir`` as a variable like:: @@ -406,6 +411,10 @@ The following modules will be removed in Ansible 2.12. Please update your playbo Noteworthy module changes ------------------------- +* **Security Issue** Setting ``bind_pw`` with the ``params`` option for the ``ldap_entry`` and + ``ldap_attr`` modules has been disallowed. If ``bind_pw`` was set with ``params``, the value + could have ended up in a logfile or displayed on stdout. Set ``bind_pw`` directly, with the + modules' options instead. * The ``foreman`` and ``katello`` modules have been deprecated in favor of a set of modules that are broken out per entity with better idempotency in mind. * The ``foreman`` and ``katello`` modules replacement is officially part of the Foreman Community and supported there. * The ``tower_credential`` module originally required the ``ssh_key_data`` to be the path to a ssh_key_file. diff --git a/docs/docsite/rst/porting_guides/porting_guide_2.9.rst b/docs/docsite/rst/porting_guides/porting_guide_2.9.rst index 603c8fe4f1..423823f253 100644 --- a/docs/docsite/rst/porting_guides/porting_guide_2.9.rst +++ b/docs/docsite/rst/porting_guides/porting_guide_2.9.rst @@ -42,7 +42,10 @@ Command Line Deprecated ========== -No notable changes +- The ``params`` module option in ``ldap_attr`` and ``ldap_entry`` are deprecated on a short cycle (to be + removed in Ansible-2.10) due to circumventing Ansible's normal option handling. In particular, if + the ``bind_pw`` option is set with ``params``, the value of the option could end up being placed in + a logfile or displayed on stdout. Collection loader changes @@ -691,6 +694,10 @@ be removed in Ansible 2.13. Please update update your playbooks accordingly. Noteworthy module changes ------------------------- +* **Security Issue** Setting ``bind_pw`` with the ``params`` option for the ``ldap_entry`` and + ``ldap_attr`` modules has been disallowed. If ``bind_pw`` was set with ``params``, the value could + have ended up in a logfile or displayed on stdout. Set ``bind_pw`` directly, with the modules' + options instead. * :ref:`vmware_cluster <vmware_cluster_module>` was refactored for easier maintenance/bugfixes. Use the three new, specialized modules to configure clusters. Configure DRS with :ref:`vmware_cluster_drs <vmware_cluster_drs_module>`, HA with :ref:`vmware_cluster_ha <vmware_cluster_ha_module>` and vSAN with :ref:`vmware_cluster_vsan <vmware_cluster_vsan_module>`. * :ref:`vmware_dvswitch <vmware_dvswitch_module>` accepts ``folder`` parameter to place dvswitch in user defined folder. This option makes ``datacenter`` as an optional parameter. * :ref:`vmware_datastore_cluster <vmware_datastore_cluster_module>` accepts ``folder`` parameter to place datastore cluster in user defined folder. This option makes ``datacenter`` as an optional parameter. |