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

Client(verify=False) is not respected #510

Open
mklassen opened this issue May 10, 2022 · 1 comment
Open

Client(verify=False) is not respected #510

mklassen opened this issue May 10, 2022 · 1 comment

Comments

@mklassen
Copy link

If verify is set to False and the environment variables REQUESTS_CA_BUNDLE or CURL_CA_BUNDLE happen to be set, then these environment variables will override the explicit verify=False. This is because in Session.merge_environment_settings the request level verify is merged with the session level verify after the request level verify is obtained for the environment and the default for trust_env is true.

@sparkiegeek
Copy link
Contributor

Now that #535 has merged, you should be able to create a requests.Session, set trust_env to False and then pass it into the pylxd.Client which will help isolate you from the environment

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

No branches or pull requests

2 participants