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

Docs update: warn that Session.verify is ignored if REQUESTS_CA_BUNDLE is set #6696

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

StefanKopieczek
Copy link

@StefanKopieczek StefanKopieczek commented May 8, 2024

Issue #3829 tracks that Session.verify is ignored whenever REQUESTS_CA_BUNDLES or CURL_CA_BUNDLES is set. The underlying behavior will apparently be changed in 3.x, but in the meantime it would be helpful to call out the behavior in the docs to avoid catching people out (the issue has been locked due to a large number of comments).

I'm happy to rework this PR as needed, but it'd be great to get something in the docs about this in one form or another to help prevent people hitting this.

Thanks in advance for your thoughts!


Change Details

  • Added a warning:: callout to the relevant section of the docs.

Alternate Approaches Considered

I initially wrote out a longer section detailing the semantics for how the various options interact — but all the other interactions are very intuitive, so this felt like overkill. Let me know if you'd prefer that approach.

This section of the docs is also a bit callout heavy, so I'm happy to inline the text rather than put it in a callout, if you prefer.

Add docs warning to indicate that setting
REQUESTS_CA_BUNDLE or CURL_CA_BUNDLE causes
Session.verify to be ignored.
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