-
Notifications
You must be signed in to change notification settings - Fork 36
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
config: accept verify=False #80
Conversation
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
cs/client.py
Outdated
try: | ||
verify = strtobool(config['verify']) | ||
except ValueError: | ||
pass |
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.
Should we not throw an error message if the verify configuration is not correctly set ?
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.
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.
verify
is of type Union[str, bool]
I've tried to avoid adding such a possibility in the past, e.g. #18 and #27 The reasoning is that an insecure setup should be either hard to get or it should be obvious that it's insecure. If there really is no other way I'd love something in the spirit of |
@brutasse requests comes with its own set of warnings once false is set. |
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
@brutasse |
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
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.
This allows such configuration, which is mostly useful for special developer cases.
http://docs.python-requests.org/en/master/user/advanced/?#ssl-cert-verification