Skip to content

Commit

Permalink
Add function worker client auth config in cluster. (apache#4499)
Browse files Browse the repository at this point in the history
  • Loading branch information
murong00 authored and jerrypeng committed Jun 11, 2019
1 parent acbf0c8 commit a52e9af
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,16 @@ private static class BrokerStarter {
workerConfig.setZooKeeperSessionTimeoutMillis(brokerConfig.getZooKeeperSessionTimeoutMillis());
workerConfig.setZooKeeperOperationTimeoutSeconds(brokerConfig.getZooKeeperOperationTimeoutSeconds());

workerConfig.setUseTls(brokerConfig.isTlsEnabled());
workerConfig.setTlsHostnameVerificationEnable(false);

workerConfig.setTlsAllowInsecureConnection(brokerConfig.isTlsAllowInsecureConnection());
workerConfig.setTlsTrustCertsFilePath(brokerConfig.getTlsTrustCertsFilePath());

// client in worker will use this config to authenticate with broker
workerConfig.setClientAuthenticationPlugin(brokerConfig.getBrokerClientAuthenticationPlugin());
workerConfig.setClientAuthenticationParameters(brokerConfig.getBrokerClientAuthenticationParameters());

// inherit super users
workerConfig.setSuperUserRoles(brokerConfig.getSuperUserRoles());

Expand Down

0 comments on commit a52e9af

Please sign in to comment.