This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
[INFINITY-3520] Make Kafka ciphers configurable and have a secure default. #2483
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds plumbing for a new configuration for TLS cipher suites:
service.security.transport_encryption.ciphers
. That value is plumbed directly to Kafka'sserver.properties
ssl.cipher.suites
configuration.However, Kafka doesn't seem to be accepting the current default configuration value. It is a comma-separated list of cipher suite names prefixed withTLS_
. I added the prefix after seeing it on a couple of places. I've tried it without the prefix too, to no avail. Ifservice.security.transport_encryption.ciphers
is left blank Kafka accepts connections with the 21 ciphers we saw before. The documentation isn't very specific and doesn't provide example values.I've tried:- WithTLS_
prefix, separated by dashes. e.g.:TLS_AES128-GCM-SHA256,...
- WithoutTLS
prefix, separated by dashes. e.g.:AES128-GCM-SHA256,...
- WithTLS_
prefix, separated by underscores. e.g.:TLS_AES128_GCM_SHA256,...
- WithoutTLS
prefix, separated by underscores. e.g.:AES128_GCM_SHA256,...
I'll look into this tomorrow morning unless someone feels like taking a swing at it. The added test is currently failing due to the above.Examples of configuringssl.cipher.suites
in the wild:- IBM/sarama#643 (comment)- https://phabricator.wikimedia.org/T182993#3855423