-
Notifications
You must be signed in to change notification settings - Fork 86
Standardize and add SSL settings #185
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
Standardize and add SSL settings #185
Conversation
andsel
left a comment
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.
Left some comments, for your evaluation
andsel
left a comment
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 are almost at the finish just a style nitpick
36a2a6b to
4f291fa
Compare
Thank you again for reviewing it, @andsel. I've addressed your suggestions plus the suggestion #1 and suggestion #2 made on the output plugin. |
andsel
left a comment
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.
LGTM
|
|
||
| [id="plugins-{type}s-{plugin}-deprecated-options"] | ||
| ==== Elasticsearch Input deprecated configuration options | ||
|
|
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.
This is a departure from the standard approach we've used for deprecated options in other plugins. For example, https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html#plugins-inputs-beats-options.
This approach is cleaner, but not as discoverable for users with older configs.
What this PR does?
Added the following SSL settings:
ssl_enabled: Enable/disable the SSL settings. Infer the value from the hosts' scheme if neither the deprecate :ssl nor the new :ssl_enabled configs were setssl_certificate: OpenSSL-style X.509 certificate file to authenticate the clientssl_key: OpenSSL-style RSA private key that corresponds to thessl_certificatessl_truststore_path: he JKS truststore to validate the server's certificatessl_truststore_type: The format of the truststore filessl_truststore_password: The truststore passwordssl_keystore_path: The keystore used to present a certificate to the serverssl_keystore_type: The format of the keystore filessl_keystore_password: The keystore passwordssl_cipher_suites: The list of cipher suites to usessl_supported_protocols: Supported protocols with versionsReviewed and deprecated SSL settings to comply with Logstash's naming convention
sslin favor ofssl_enabled:ca_filein favor ofssl_certificate_authoritiesssl_certificate_verificationin favor ofssl_verification_modeThe behavior standardization across plugins, such as the accepted certificate formats, default values, etc will be tackled in future PRs.
Closes elastic/logstash#14922
Closes #96
Closes #71
Closes #42
Closes #115