-
Notifications
You must be signed in to change notification settings - Fork 813
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
[elastic] Add support for SSL (Elasticsearch Shield) #2195
Conversation
Hi @pabrahamsson! Thank you very much for this PR, it's always great to add SSL support to our checks. We'll give this a test-drive and can hopefully merge in your SSL support in very soon! Your code is very much appreciated! |
Thanks @truthbk I updated the tests so they pass. |
Thanks @pabrahamsson tests look good now. Mind squashing this down? |
3c2cb91
to
c536c0f
Compare
@irabinovitch squashed, but now showing conflicts, not sure why |
@pabrahamsson Try rebasing on master? |
9e2cbf4
to
3b476c5
Compare
@irabinovitch I think we're good now, learning |
@@ -424,12 +430,29 @@ def _get_data(self, url, config, send_sc=True): | |||
else: | |||
auth = None | |||
|
|||
# Load SSL configuration, if available. | |||
# ssl_verify can be a bool or a string (http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification) | |||
if isinstance(config.ssl_verify, bool): |
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 could be rewritten more concisely in
if isinstance(config.ssl_verify, bool) or isinstance(config.ssl_verify, str):
verify = config.ssl_verify
else:
verify = None
Thanks @remh |
bd34ec8
to
165635e
Compare
Squashed |
Thanks! |
No description provided.