check_http: Add "--verify-host" to verify SSL certificate hostname and trust chain#1971
check_http: Add "--verify-host" to verify SSL certificate hostname and trust chain#1971archiecobbs wants to merge 4 commits intomonitoring-plugins:masterfrom
Conversation
|
What about https://github.com/matteocorti/check_ssl_cert instead inventing the wheel again? |
Because that's non-standard. We use openSUSE and monitoring-plugins is vetted and comes with it automatically. I don't want to have to track down a custom build. By analogy, if you buy a car it always comes with a stereo - even though there is a thriving economy for aftermarket stereos. |
|
Maybe it does not make sense to include such things into a dead horse? :) (Just to keep analogy.) |
|
As of now, the horse is still alive, so we should continue to feed and water it :) |
|
Just as a note: |
Thanks. I was trying to keep consistent with the Nagios plugin, which also uses Whether that's a laudable goal is up for debate... I'm happy to change it if need be (or add an alias). |
|
A, maybe then check_curl should be adapted to --verify-host of nagios-plugins? It's |
Sounds like a good idea - though it's beyond the scope of this PR. Thanks. |
|
Sure, your pull request can remain as is, of course. :-) |
|
Updated patch to resolve conflict with recent addition to |
|
Ping... is there anything else to discuss/review for this change? This ability of Thanks. |
|
For me, I would consider |
OK thanks for your opinion. What's the official policy here? Is If not, then where's the replacement for all of its functionality? More generally I don't understand the general sense of inertia here. Maybe someone can provide more context. Who is in charge here and what's going on? Thanks. |
I guess you didn't found https://github.com/monitoring-plugins/monitoring-plugins/blob/master/plugins/check_curl.c yet? |
Previously I did not know about it - because Also, quoting The WARNING is scary because yes, I do need a stable version of this check. Is the warning obsolete?? The note also had me confused at first - it seems to directly contradict If |
|
puh ... not really related to the issue, but looking into https://build.opensuse.org/package/view_file/server:monitoring/monitoring-plugins/monitoring-plugins.spec?expand=1 makes me feel a bit sad, cause for me it looks like folks at suse seems to carry patches not pushing upstream. At least I didn't found traces of it. |
openSUSE policy is for all patches to be submitted to upstream if appropriate. Of course that's a judgement call. In the spec file, the patches that are marked In any case I'd encourage a quick review of any/all of those patches for inclusion here. Of course doing so only makes the openSUSE happier, because upstream'd patches lower their maintenance burden. |
That's exactly the reason why I'm pushing issues and patches upstream from Debian, in the end saving resources for all. |
This adds a new
--verify-hostflag tocheck_httpwhen used with the-Cflat.The new flag enables two additional checks:
-Hhostname (i.e., check_http verify is hostname matches #1570)I also cleaned up some of the documentation that is printed when
-his used.