You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PR #8042/4b91b530 backport][3.9] Tightening the runtime type check for ssl (#7698) (#8043)
**This is a backport of PR #8042 as merged into 3.10
(4b91b53).**
Currently, the valid types of ssl parameter are SSLContext,
Literal[False], Fingerprint or None.
If user sets ssl = False, we disable ssl certificate validation which
makes total sense. But if user set ssl = True by mistake, instead of
enabling ssl certificate validation or raising errors, we silently
disable the validation too which is a little subtle but weird.
In this PR, we added a check that if user sets ssl=True, we enable
certificate validation by treating it as using Default SSL Context.
---------
Co-authored-by: pre-commit-ci[bot]
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko <[email protected]>
Co-authored-by: Sam Bull <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: Sam Bull <[email protected]>
(cherry picked from commit 9e14ea1)
0 commit comments