-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(auth): restore pyOpenSSL for ECP offload flow #18085
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ | |
|
|
||
| reauth_extra_require = ["pyu2f>=0.1.5"] | ||
|
|
||
| enterprise_cert_extra_require = cryptography_base_require | ||
| enterprise_cert_extra_require = ["pyopenssl>=20.0.0", "cffi>=1.0.0"] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replacing enterprise_cert_extra_require = cryptography_base_require + [
"pyopenssl>=20.0.0",
"cffi>=1.0.0",
] |
||
|
|
||
| urllib3_extra_require = [ | ||
| "urllib3 >= 1.26.15, < 3.0.0", | ||
|
|
@@ -65,6 +65,7 @@ | |
| *reauth_extra_require, | ||
| "responses", | ||
| *urllib3_extra_require, | ||
| *enterprise_cert_extra_require, | ||
| # Async Dependencies | ||
| *aiohttp_extra_require, | ||
| "aioresponses", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To prevent security risks such as passphrase leakage from arbitrary duck-typed wrapper objects, we should enforce strict type checking on the SSL context instead of using duck typing. Additionally, to maintain backwards compatibility and avoid introducing breaking changes, we should gracefully return False (or fall back) instead of raising an exception if the context is not of the expected type.
References