-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add setting to skip ssl certificate verification for HTTP checks #1984
Conversation
67113f9
to
e290599
Compare
e290599
to
b5744e6
Compare
check.Stop() | ||
server.Close() | ||
|
||
server = mockTLSHTTPServer(500) |
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.
Not sure we need to go into this in the tests, since we want to test that we are failing at the transport layer really. Doesn't hurt to keep it, though.
Hey @kylemcc, this looks great! Just a few minor comments but otherwise LGTM. Sorry for the delay! |
Great! I'll get on those tonight. |
b5744e6
to
9bf99d6
Compare
t.Fatalf("should be critical %v", mock.state) | ||
} | ||
|
||
if !strings.Contains(mock.output["skipverify_false"], "certificate signed by unknown authority") { |
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.
@ryanuber Based on your feedback, I've updated this test to make sure we're failing at the transport layer
@ryanuber I've made a few changes based on your feedback. The test failure here seems unrelated to my changes - it may be due to my rebasing on top of master. They do pass for me locally though. Let me know if you have any other feedback. |
@kylemcc great, will review again shortly! |
Hey guys, are there any information when this PR will be merged? We are very interested in using the new option! |
a4045ca
to
6a596da
Compare
6a596da
to
7f208d7
Compare
Thanks! |
This pull request adds the same functionality as #1897, but does so by adding a setting to the check definition so that verification can be turned off on a per-check basis. I've also included some unit tests and updated the documentation to reflect the change.
E.g.: