Generate an API key, download the truststore file, and pass truststore and security
protocol properties. The protocol is SASL_SSL.
Procedure
- Generate an API key.
For instructions, see 4 of Using IBM® EventStreams as your Kafka provider. For IBM Business Automation
Insights, the Operator IBM Event Streams role (or higher) is required to
read and write to Kafka topics.
- Download the truststore .jks file.
Retrieve the truststore from the IBM Event Streams user interface. For
instructions, see 3 of Using IBM EventStreams as your Kafka provider.
- Add the following properties to the event emitter configuration.
Note: If the configuration uses the
plugin-configuration.properties file, the following properties must be prefixed
with com.ibm.rules.bai.plugin..
- kafka.security.protocol
- The value is SASL_SSL.
- kafka.ssl.truststore.location
- The full path to the truststore JKS file that you created previously.
- kafka.ssl.truststore.password
- The password to the truststore.
- kafka.ssl.mechanism
- The value is PLAIN.
- kafka.ssl.protocol
- The value is TLSv1.2.
- kafka.sasl.jaas.config
- The template is org.apache.kafka.common.security.plain.PlainLoginModule required
username="token" password="<api_key>";