-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TLSConfiguration
: separate client and broker TLS configuration (#111)
* Refactor `KafkaConfiguration.TLSConfiguration` Motivation: Previously, `TLSConfiguration` forced users into providing a key store / key pair for client verification and did not expose a canonical way to disable client verification. Modifications: * `KafkaConfiguration.TLSConfiguration` * separate `Client` and `Broker` `TLS` configuration * provide default `TLSConfiguration`: `.disableClientVerification`, and verify broker identity * `KafkaConfiguration.SecurityProtocol`: * provide `TLSConfiguration()` as default parameter value for `TLSConfiguration:` * update `TLSConfiguration` examples in `README` * Rename Security configuration types * Review David Co-authored-by: David Nadoba <[email protected]> * Review Franz Modifications: * consistent naming: `disabled` instead of `disable` * rename `rootCert` -> `trustRoots` * rename `caCertificates` -> `trustRoots` * rename `crlLocation` -> `certificateRevocationListPath` Co-authored-by: Franz Busch <[email protected]> * Review David Modifications: * add `certificateRevocationListPath` parameter default value `nil` * `KafkaConfiguration.TLSConfiguration.brokerVerification`: more readable default value documentation * README: Update security examples --------- Co-authored-by: David Nadoba <[email protected]> Co-authored-by: Franz Busch <[email protected]>
- Loading branch information
1 parent
950d1f8
commit a8eb315
Showing
3 changed files
with
110 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters