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

Remove requests_unixsocket #604

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

hamistao
Copy link
Contributor

@hamistao hamistao commented Oct 1, 2024

This includes implementation to connect to a Unix socket without requests_unixsocket. This allows us to remove this dependency along with the version restrictions for urllib3 and requests;

Fixes #583 #600

@hamistao hamistao force-pushed the remove_requests_unixsocket branch 2 times, most recently from 302476f to 14f5207 Compare October 1, 2024 02:36
Implementation inspired by `request_unixsocket` own implementation:
https://github.com/msabramo/requests-unixsocket/blob/master/requests_unixsocket/adapters.py
Method `get_connection_with_tls_context` introduced for compatibility
with later `requests` versions, but keeping old `get_connections` to
retain compatibility with previously used versions.
Keeping this does not imply in a security vulnerability as TLS authentication is
not required for Unix Socket connections.

Signed-off-by: hamistao <[email protected]>
@hamistao hamistao marked this pull request as ready for review October 1, 2024 11:38
@hamistao
Copy link
Contributor Author

hamistao commented Oct 1, 2024

@simondeziel This is ready for a review!

Copy link
Member

@simondeziel simondeziel left a comment

Choose a reason for hiding this comment

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

Excellent, thank you Pedro!

@simondeziel simondeziel merged commit 93b83d1 into canonical:main Oct 1, 2024
14 checks passed
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.

Remove dependency on requests_unixsocket
2 participants