-
Notifications
You must be signed in to change notification settings - Fork 81
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 SSL settings #470
Standardize SSL settings #470
Conversation
d48dbb5
to
1dacba8
Compare
1dacba8
to
481994e
Compare
…ith deprecated configuration
481994e
to
c0af983
Compare
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.
Overall seems good, but left some comments for improvement.
|
||
import static org.hamcrest.Matchers.*; |
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.
Avoid *
import switch to explicit list
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.
same for the following import of such kind
f4c6175
to
b2a56ef
Compare
b2a56ef
to
19e21ba
Compare
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
What this PR does?
Added the following SSL settings
ssl_enabled
: Enable/disable SSLssl_client_authentication
: Controls the server’s behavior in regard to requesting a certificate from client connectionsReviewed and deprecated the following SSL settings to comply with Logstash's naming convention
ssl
in favor ofssl_enabled
ssl_verify_mode
in favor ofssl_client_authentication
Other changes
Using
ssl_verify_mode
should keep the current behavior as it is. Once upgraded tossl_client_authentication
, it will validate and reject configurations withssl_certificate_authorities
set andssl_client_authentication = > none
. The currentssl_verify_mode
behavior is to silently ignore thenone
value and useforce_peer/required
.Fixed
ssl_peer_metadata
whenssl_enabled => false
: Standardize SSL settings #470 (comment)Added tests for the new and existing
SslContextBuilder
methods.The behavior standardization across plugins, such as the accepted certificate formats, default values, etc will be tackled in future PRs.
Closes elastic/logstash#14925
Closes #399