Fixes #25402 - bad handshake failure#26235
Fixes #25402 - bad handshake failure#26235aurelienmaury wants to merge 3 commits intoansible:develfrom
Conversation
|
Hi @nitzmahone sorry to bother, but I think there is a lack with this PR's labels: like stated in the description, it clearly affects 2.3, I have not even tested with 2.4. |
|
possibly related to #31998 ? |
|
@aurelienmaury the bot uses the version of the "devel" branch at time of submission to flag the "affects_x.x" labels for PRs. Your PR would not have been merged into the 2.3 branch unless a backport had been requested or you submitted the PR against the 2.3 branch. |
|
This will need more branches. Mac does not include So although it has |
|
@aurelienmaury We can't use this verbatim as |
We do not go through the effort of finding the right PROTOCOL setting if we have SSLContext in the stdlib. So we do not want to hit the code that uses PROTOCOL to set the urllib3-provided ssl context when SSLContext is available. Also, the urllib3 implementation appears to have a bug in some recent versions. Preferring the stdlib version will work around that for those with Python-2.7.9+ as well. Fixes ansible#26235 Fixes ansible#25402 Fixes ansible#31998
|
@aurelienmaury Okay, I think I've tracked down a better way to fix this. See the code in PR #32053 if you'd care to test out my fix. |
We do not go through the effort of finding the right PROTOCOL setting if we have SSLContext in the stdlib. So we do not want to hit the code that uses PROTOCOL to set the urllib3-provided ssl context when SSLContext is available. Also, the urllib3 implementation appears to have a bug in some recent versions. Preferring the stdlib version will work around that for those with Python-2.7.9+ as well. Fixes ansible#26235 Fixes ansible#25402 Fixes ansible#31998
We do not go through the effort of finding the right PROTOCOL setting if we have SSLContext in the stdlib. So we do not want to hit the code that uses PROTOCOL to set the urllib3-provided ssl context when SSLContext is available. Also, the urllib3 implementation appears to have a bug in some recent versions. Preferring the stdlib version will work around that for those with Python-2.7.9+ as well. Fixes #26235 Fixes #25402 Fixes #31998 (cherry picked from commit 725ae96)
We do not go through the effort of finding the right PROTOCOL setting if we have SSLContext in the stdlib. So we do not want to hit the code that uses PROTOCOL to set the urllib3-provided ssl context when SSLContext is available. Also, the urllib3 implementation appears to have a bug in some recent versions. Preferring the stdlib version will work around that for those with Python-2.7.9+ as well. Fixes #26235 Fixes #25402 Fixes #31998 (cherry picked from commit 725ae96)
We do not go through the effort of finding the right PROTOCOL setting if we have SSLContext in the stdlib. So we do not want to hit the code that uses PROTOCOL to set the urllib3-provided ssl context when SSLContext is available. Also, the urllib3 implementation appears to have a bug in some recent versions. Preferring the stdlib version will work around that for those with Python-2.7.9+ as well. Fixes #26235 Fixes #25402 Fixes #31998 (cherry picked from commit 725ae96)
We do not go through the effort of finding the right PROTOCOL setting if we have SSLContext in the stdlib. So we do not want to hit the code that uses PROTOCOL to set the urllib3-provided ssl context when SSLContext is available. Also, the urllib3 implementation appears to have a bug in some recent versions. Preferring the stdlib version will work around that for those with Python-2.7.9+ as well. Fixes #26235 Fixes #25402 Fixes #31998 (cherry picked from commit 725ae96)
SUMMARY
This is a patch candidate for the #25402 issue.
This modifies the PROTOCOL floor value in
urls.py, so that modules likeget_urlcould validate certificates for website accepting only TLSv1_2 and no less.ISSUE TYPE
COMPONENT NAME
module_utils/urls.pyANSIBLE VERSION
ADDITIONAL INFORMATION