-
Notifications
You must be signed in to change notification settings - Fork 20
Feat: add ssl_verification_mode => 'full' / 'none' #39
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
Conversation
due Manticore requiring Ruby >= 2.3
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.
minor nit picks to improve reading comprehension when tests fail, otherwise LGTM
next step is going to plugins that use this and adding documentation snippet for this new setting.
The direction we want to go is to group this mixin and the plugins that use it (http output, http poller) into an integration, to avoid this finicky weak link between plugins and mixins.
|
|
||
| case @ssl_verification_mode | ||
| when 'full' | ||
| # NOTE: would make sense to have :browser here but historically we've used the (:strict) default |
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.
We'll also want to have something like "certificate" for a mode that verifies the cert chain but doesn't perform hostname verification. Totally out of scope for this PR though.
Co-authored-by: João Duarte <[email protected]>
Co-authored-by: João Duarte <[email protected]>
Co-authored-by: João Duarte <[email protected]>
Adds
ssl_verification_modeconfiguration option, with the default being'full'.Manticore wise, due backwards compatibility, the
'full'option translates toverify: :strict.This could be relaxed in the future (
verify: :browser) but would need more investigation/implementation whether we could force SAN to be present in the server certificate (same way as ES/Beats implement strict verification).closing #31 (alternate impl)
closing #34 (alternate impl)