community.general/lib/ansible
Toshio Kuratomi e238ae999b Cyptography pr 20566 rebase (#25560)
Make pyca/cryptography the preferred backend for cryptographic needs (mainly vault) falling back to pycrypto

pyca/cryptography is already implicitly a dependency in many cases
through paramiko (2.0+) as well as the new openssl_publickey module,
which requires pyOpenSSL 16.0+. Additionally, pyca/cryptography is
an optional dep for better performance with vault already.

This commit leverages cryptography's padding, constant time comparisons,
and CBC/CTR modes to reduce the amount of code ansible needs to
maintain.

* Handle wrong password given for VaultAES format

* Do not display deprecation warning for cryptography on python-2.6

* Namespace all of the pycrypto imports and always import them

  Makes unittests better and the code less likely to get stupid mistakes
  (like using HMAC from cryptogrpahy when the one from pycrypto is needed)

* Add back in atfork since we need pycrypto to reinitialize its RNG just in case we're being used with old paramiko

* contrib/inventory/gce: Remove spurious require on pycrypto

(cherry picked from commit 9e16b9db275263b3ea8d1b124966fdebfc9ab271)

* Add cryptography to ec2_win_password module requirements
  * Fix python3 bug which would pass text strings to a function which
    requires byte strings.

* Attempt to add pycrypto version to setup deps

* Change hacking README for dual pycrypto/cryptography

* update dependencies for various CI scripts

* additional CI dockerfile/script updates

* add paramiko to the windows and sanity requirement set

  This is needed because ansible lists it as a requirement. Previously
  the missing dep wasn't enforced, but cryptography imports pkg_resources
  so you can't ignore a requirement any more

* Add integration test cases for old vault and for wrong passwords

* helper script for manual testing of pycrypto/cryptography

* Skip the pycrypto tests so that users without it installed can still run the unittests

* Run unittests for vault with both cryptography and pycrypto backend
2017-06-27 06:00:15 -07:00
..
cli Fix ansible ad-hoc to respect ANSIBLE_STDOUT_CALLBACK (#26098) 2017-06-26 16:01:06 -04:00
compat ansible/compat/: PEP8 compliancy (#24689) 2017-05-18 08:36:11 +01:00
config Add persistent connection control path dir constant (#25736) 2017-06-15 11:14:43 +01:00
errors Try to show original exception info for yaml (and other) errors (#24468) 2017-06-09 13:13:15 -04:00
executor Cyptography pr 20566 rebase (#25560) 2017-06-27 06:00:15 -07:00
galaxy Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
inventory Ensure hosts aren't duplicated in groups 2017-06-19 17:38:43 -04:00
module_utils Removes unused f5 module utils 2017-06-26 13:14:10 -07:00
modules Cyptography pr 20566 rebase (#25560) 2017-06-27 06:00:15 -07:00
parsing Cyptography pr 20566 rebase (#25560) 2017-06-27 06:00:15 -07:00
playbook Don't include dependent roles in the dep chain for include_role 2017-06-22 13:16:29 +01:00
plugins re-enable non-pipelined mode for Powershell (#25012) 2017-06-26 22:58:09 -07:00
template Try to show original exception info for yaml (and other) errors (#24468) 2017-06-09 13:13:15 -04:00
utils check options exist before forcing assignment 2017-06-23 15:56:43 -04:00
vars 01110000 01100101 01110000 00111000 00100000 2017-06-19 17:50:52 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py constants: pep8 fix (#25735) 2017-06-15 13:40:06 +02:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00