Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull in code from requests-unixsocket and support urllib3 v2 #29

Merged
merged 11 commits into from
Jun 11, 2023

Conversation

pronovic
Copy link
Owner

@pronovic pronovic commented Jun 11, 2023

Historically, we've relied on requests-unixsocket to provide connectivity to the private server port, as discussed in DEVELOPER.md.

We need to be on requests >= v2.31.0 due to CVE-2023-32681. However, requests v2.30.0 started depending on urllib3 v2, which requests-unixsocket is not compatible with. The initial workaround was to pin urllib3<2 in pyproject.toml, but that's not a good long-term solution.

The problem with requests-unixsocket is tracked in issue #70 and fixed in PR #69, both from May 5. However, as of this writing, the requests-unixsocket maintainer hasn't responded to either the issue or the PR. Given how small the code is, it seems safer and simpler to just pull it in rather than waiting for a new package to be released on PyPI. The code is under Apache v2, so this is permitted use.

This PR pulls source code taken from v0.3.0 on PyPI, because there is no v0.3.0 tag on GitHub.

@pronovic pronovic changed the title Pull in code from requests-unixsocket and patch to support new urllib3 Pull in code from requests-unixsocket and support urllib3 v2 Jun 11, 2023
@pronovic pronovic merged commit 03df46d into master Jun 11, 2023
@pronovic pronovic deleted the ken/unixsocket branch June 11, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant