-
Notifications
You must be signed in to change notification settings - Fork 814
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
[Nginx] Allow to disable SSL Certificate validation #1626
Comments
@remh Any update on this? It's preventing the ability to monitor https-only nginx endpoints on localhost. |
Same issue here, sadness. |
I hacked around it locally, not a great solution, but: r = requests.get(url, auth=auth, headers=headers(self.agentConfig), verify=False) I think I'd rather this be a parameter I can pass into the Ref: Line 66 in ab469ec
Ref: http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification |
Thanks for the feedback everyone, we will fix this issue for version 5.5.0 |
PR is ready for review: #1782 |
Closed with #1782 |
Currently, there is no way that I could find to tell the nginx check to attempt to use a status endpoint located behind an SSL-enabled service, and ignore some of the SSL validations.
Consider a host with:
raises:
This is also likely to be the case when a certificate is self-signed.
It appears that a library replacement Agent 5.3.0 from the changes here: 3c95374 - but Agent 5.2.2 exhibits the same behavior, so I don't think that change introduced the problem - it might have been there for a while. Python 2.7.3
This is likely due to the OpenSSL version compiled into Python - an older version allowed the insecure access.
I'll note that using requests 2.7.0 on older Python 2.7.3 raises the same issue - so it's even more likely a bug in urllib2/ssl handling somewhere.
The http_check has, and had before the
disable_ssl_validation
parameter - one solution would be to add that type of configuration flag for other http-based checks that used to use httplib2/urllib2 that allowed insecure requests without requiring an operator override.The text was updated successfully, but these errors were encountered: