Skip to content

Use ssl.match_hostname from urllib3 as it was removed from Python 3.12 - #6912

Closed
rcritten wants to merge 1 commit into
freeipa:masterfrom
rcritten:issue_9409
Closed

Use ssl.match_hostname from urllib3 as it was removed from Python 3.12#6912
rcritten wants to merge 1 commit into
freeipa:masterfrom
rcritten:issue_9409

Conversation

@rcritten

@rcritten rcritten commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

@rcritten rcritten added ipa-4-10 Mark for backport to ipa 4.10 WIP Work in progress - not ready yet for review labels Jul 6, 2023
@rcritten rcritten removed the WIP Work in progress - not ready yet for review label Jul 6, 2023
@rcritten

rcritten commented Jul 6, 2023

Copy link
Copy Markdown
Contributor Author

So urllib3.util.ssl_match_hostname was introduced in version 1.26.8. RHEL 9.x has 1.26.5 and I can't tell what version Azure has. I'll add a conditional import.

Full release notes https://github.com/urllib3/urllib3/blob/main/CHANGES.rst

@rcritten
rcritten force-pushed the issue_9409 branch 2 times, most recently from 49d863d to a8a733a Compare July 7, 2023 01:03
@frasertweedale

Copy link
Copy Markdown
Contributor

python3-urllib3 dependency needs to be added to python3-ipalib Requires in spec file.

Code changes LGTM.

@rcritten
rcritten force-pushed the issue_9409 branch 3 times, most recently from a2b7695 to 55f11f1 Compare July 7, 2023 15:23
Comment thread freeipa.spec.in Outdated
%else
Requires: python3-setuptools
%endif
# Indirect dependency: use newer urllib3 with TLS 1.3 PHA support

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now a direct dependency, isn't it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a copy of the existing placeholder for now while I fight with Azure to install the right dependencies in tox.

Based on upstream freeipa rawhide patch by Miro Hrončok

See python/cpython#94224 (comment)

Fixes: https://pagure.io/freeipa/issue/9409

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
@rcritten rcritten added the needs review Pull Request is waiting for a review label Jul 10, 2023
@abbra

abbra commented Jul 18, 2023

Copy link
Copy Markdown
Contributor

LGTM.

@abbra abbra added ack Pull Request approved, can be merged and removed needs review Pull Request is waiting for a review labels Jul 18, 2023
@flo-renaud flo-renaud added the pushed Pull Request has already been pushed label Jul 19, 2023
@flo-renaud

Copy link
Copy Markdown
Contributor

master:

  • d2ed490 Use ssl.match_hostname from urllib3 as it was removed from Python 3.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ack Pull Request approved, can be merged ipa-4-10 Mark for backport to ipa 4.10 pushed Pull Request has already been pushed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants