-
Notifications
You must be signed in to change notification settings - Fork 581
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
Added the --dane
option to the command definition ssl_cert
#10196
Conversation
75ca700
to
76d1b70
Compare
I don't have the slightest idea why the windows tests fail ... very unlikely to have anything to do with the code change. |
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.
Thanks for your Pull Request!
I am a bit uncertain about the failing Windows tests at the moment, but these are not related to your change. Please remove the unnecessary repeat_key
, otherwise it looks good to me. Thanks!
You are totally right. I missed something up, sorry. Please keep it as it is. Regarding the failing Windows Jobs, it seems the access permissions for the Windows packaging repository were changed. This, however, has nothing to do with your PR. |
76d1b70
to
b63ecfe
Compare
The "--dane" option can be used both as a flag and with an argument. In its current implementation, it is even a special case for flags with variable numbers of arguments. At an Icinga 2 ITL PR by GitHub user @peteeckel, an unexpected behavior was seen when calling check_ssl_cert with "--dane" followed by an empty argument[0], as so: $ ./check_ssl_cert --dane "" If the empty argument was used, the --dane option was effectively useless. This is due to the argument counting/checking code, not expecting an empty second argument, setting DANE="", which disables it. This change allows an empty second argument, which will then be swallowed. For the other options with variable numbers of arguments, this does not seem to apply. [0]: Icinga/icinga2#10196 (comment)
f94aa81
to
ec9e468
Compare
I have rebased your PR against the current master to contain all necessary checks to satisfy the auto-merge. |
Perfect, thanks! |
fixes #10195
Added the
ssl_cert_date
option to thessl_cert
command definition. Values can be an empty string or a specification of the TLSA record type to check (201, 301, 302, or 311).