vvraskin commented on a change in pull request #3258: Encrypt data in motion - Kafka URL: https://github.com/apache/incubator-openwhisk/pull/3258#discussion_r166708403
########## File path: common/scala/src/main/scala/whisk/connector/kafka/KafkaMessagingProvider.scala ########## @@ -84,4 +102,14 @@ object KafkaConfiguration { def configMapToKafkaConfig(configMap: Map[String, String]) = configMap.map { case (key, value) => configToKafkaKey(key) -> value } + + def useSSL(props: Properties, httpsConfig: KafkaSslConfig) = { + props.put(CommonClientConfigs.SECURITY_PROTOCOL_CONFIG, "SSL") + props.put(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG, httpsConfig.truststorePath) + props.put(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG, httpsConfig.truststorePassword) + } + def authenticateUser(props: Properties, httpsConfig: KafkaSslConfig) = { + props.put(SslConfigs.SSL_KEYSTORE_LOCATION_CONFIG, httpsConfig.keystorePath) + props.put(SslConfigs.SSL_KEYSTORE_PASSWORD_CONFIG, httpsConfig.keystorePassword) + } Review comment: Yeap, sounds feasible. I could have probably seen it somewhere in the code, will update it ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services