-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for core changes: stop stripping Unsafe, adapt adapter to config …
…manager changes (#416) * limit docker SDK for localenv * WIP update unsafe handling * do not fail fast * stringify other non-string ununsafe values * try bytes I guess * stop using options as internal storage (#417) * stop relying on controller code in module utils * another internal option (#417) * fix connection unit * fix option adapter tests * sanity/cleanup * new adapter checking on 2.17+ only * actually use constraints, constrain requests * stop stringifying with newer requests * remove unused import * requests constraints for py3.6 * add changelog fragment * update requirements in user guide
- Loading branch information
Showing
20 changed files
with
174 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
major_changes: | ||
- requirements - the ``requests`` package which is required by ``hvac`` now has a more restrictive range for this collection in certain use cases due to breaking security changes in ``ansible-core`` that were backported (https://github.com/ansible-collections/community.hashi_vault/pull/416). | ||
|
||
trivial: | ||
- We previously sometimes used options, especially in plugins, as a sort of internal information store for things that needed to be passed between methods, or we overwrote some options internally with values that did not match their documentation-defined type. A breaking change in core that validates and converts types to match config manager definitions has broken this usage. Code has been updated to avoid that, and/or change documented types (https://github.com/ansible-collections/community.hashi_vault/pull/416). | ||
- The docker SDK version used in localenv setup has been properly constrained (https://github.com/ansible-collections/community.hashi_vault/pull/416/commits/905ac5da0778ddc236e346dd55578837a546090e). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
tests/integration/targets/setup_localenv_docker/files/requirements/constraints.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
docker >= 5.0.0 ; python_version >= '3.6' | ||
# https://github.com/docker/docker-py/issues/3194#issuecomment-1849016391 | ||
# Must use docker SDK for Python < 7 | ||
docker >= 5.0.0,<7 ; python_version >= '3.6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
coverage >= 4.2, < 5.0.0, != 4.3.2 ; python_version <= '3.7' # features in 4.2+ required, avoid known bug in 4.3.2 on python 2.6, coverage 5.0+ incompatible | ||
coverage >= 4.5.4, < 5.0.0 ; python_version > '3.7' # coverage had a bug in < 4.5.4 that would cause unit tests to hang in Python 3.8, coverage 5.0+ incompatible | ||
cryptography < 2.2 ; python_version < '2.7' # cryptography 2.2 drops support for python 2.6 | ||
deepdiff < 4.0.0 ; python_version < '3' # deepdiff 4.0.0 and later require python 3 | ||
jinja2 < 2.11 ; python_version < '2.7' # jinja2 2.11 and later require python 2.7 or later | ||
urllib3 < 1.24 ; python_version < '2.7' # urllib3 1.24 and later require python 2.7 or later | ||
pywinrm >= 0.3.0 # message encryption support | ||
sphinx < 1.6 ; python_version < '2.7' # sphinx 1.6 and later require python 2.7 or later | ||
sphinx < 1.8 ; python_version >= '2.7' # sphinx 1.8 and later are currently incompatible with rstcheck 3.3 | ||
pygments >= 2.4.0 # Pygments 2.4.0 includes bugfixes for YAML and YAML+Jinja lexers | ||
wheel < 0.30.0 ; python_version < '2.7' # wheel 0.30.0 and later require python 2.7 or later | ||
yamllint != 1.8.0, < 1.14.0 ; python_version < '2.7' # yamllint 1.8.0 and 1.14.0+ require python 2.7+ | ||
pycrypto >= 2.6 # Need features found in 2.6 and greater | ||
ncclient >= 0.5.2 # Need features added in 0.5.2 and greater | ||
idna < 2.6, >= 2.5 # linode requires idna < 2.9, >= 2.5, requests requires idna < 2.6, but cryptography will cause the latest version to be installed instead | ||
paramiko < 2.4.0 ; python_version < '2.7' # paramiko 2.4.0 drops support for python 2.6 | ||
pytest < 3.3.0 ; python_version < '2.7' # pytest 3.3.0 drops support for python 2.6 | ||
pytest < 5.0.0 ; python_version == '2.7' # pytest 5.0.0 and later will no longer support python 2.7 | ||
pytest-forked < 1.0.2 ; python_version < '2.7' # pytest-forked 1.0.2 and later require python 2.7 or later | ||
pytest-forked >= 1.0.2 ; python_version >= '2.7' # pytest-forked before 1.0.2 does not work with pytest 4.2.0+ (which requires python 2.7+) | ||
ntlm-auth >= 1.3.0 # message encryption support using cryptography | ||
requests < 2.20.0 ; python_version < '2.7' # requests 2.20.0 drops support for python 2.6 | ||
requests-ntlm >= 1.1.0 # message encryption support | ||
requests-credssp >= 0.1.0 # message encryption support | ||
voluptuous >= 0.11.0 # Schema recursion via Self | ||
openshift >= 0.6.2, < 0.9.0 # merge_type support | ||
virtualenv < 16.0.0 ; python_version < '2.7' # virtualenv 16.0.0 and later require python 2.7 or later | ||
pathspec < 0.6.0 ; python_version < '2.7' # pathspec 0.6.0 and later require python 2.7 or later | ||
pyopenssl < 18.0.0 ; python_version < '2.7' # pyOpenSSL 18.0.0 and later require python 2.7 or later | ||
pyfmg == 0.6.1 # newer versions do not pass current unit tests | ||
pyyaml < 5.1 ; python_version < '2.7' # pyyaml 5.1 and later require python 2.7 or later | ||
pycparser < 2.19 ; python_version < '2.7' # pycparser 2.19 and later require python 2.7 or later | ||
mock >= 2.0.0 # needed for features backported from Python 3.6 unittest.mock (assert_called, assert_called_once...) | ||
pytest-mock >= 1.4.0 # needed for mock_use_standalone_module pytest option | ||
xmltodict < 0.12.0 ; python_version < '2.7' # xmltodict 0.12.0 and later require python 2.7 or later | ||
lxml < 4.3.0 ; python_version < '2.7' # lxml 4.3.0 and later require python 2.7 or later | ||
pyvmomi < 6.0.0 ; python_version < '2.7' # pyvmomi 6.0.0 and later require python 2.7 or later | ||
pyone == 1.1.9 # newer versions do not pass current integration tests | ||
boto3 < 1.11 ; python_version < '2.7' # boto3 1.11 drops Python 2.6 support | ||
botocore >= 1.10.0, < 1.14 ; python_version < '2.7' # adds support for the following AWS services: secretsmanager, fms, and acm-pca; botocore 1.14 drops Python 2.6 support | ||
botocore >= 1.10.0 ; python_version >= '2.7' # adds support for the following AWS services: secretsmanager, fms, and acm-pca | ||
setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later | ||
cffi >= 1.14.2, != 1.14.3 # Yanked version which older versions of pip will still install: | ||
|
||
# freeze pylint and its requirements for consistent test results | ||
astroid == 2.2.5 | ||
isort == 4.3.15 | ||
lazy-object-proxy == 1.3.1 | ||
mccabe == 0.6.1 | ||
pylint == 2.3.1 | ||
typed-ast == 1.4.0 # 1.4.0 is required to compile on Python 3.8 | ||
wrapt == 1.11.1 | ||
|
||
# hvac | ||
hvac >= 1.2.1 ; python_version >= '3.6' | ||
|
||
# urllib3 | ||
# these should be satisfied naturally by the requests versions required by hvac anyway | ||
urllib3 >= 1.15 ; python_version >= '3.6' # we need raise_on_status for retry support to raise the correct exceptions https://github.com/urllib3/urllib3/blob/main/CHANGES.rst#115-2016-04-06 | ||
|
||
# requests | ||
# https://github.com/psf/requests/pull/6356 | ||
requests >= 2.29 ; python_version >= '3.7' | ||
requests < 2.28 ; python_version < '3.7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.