Spring cloud stream starter kafka is not loading the configuration when it is wiring the consumer. The following is configuration that I see in my console when I ran it in debug mode:
security.protocol = PLAINTEXT
send.buffer.bytes = 131072
session.timeout.ms = 10000
ssl.cipher.suites = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.endpoint.identification.algorithm = null
ssl.key.password = null
ssl.keymanager.algorithm = SunX509
ssl.keystore.location = null
ssl.keystore.password = null
ssl.keystore.type = JKS
ssl.protocol = TLS
ssl.provider = null
ssl.secure.random.implementation = null
ssl.trustmanager.algorithm = PKIX
ssl.truststore.location = null
ssl.truststore.password = null
ssl.truststore.type = JKS
I have the following configuration part of bootstrap yml file
spring:
cloud:
stream:
bindings:
<binding configuration>
kafka:
binder:
autoCreateTopics: false
brokers: <list of kafka brokers>
defaultBrokerPort: <default port>
configuration:
security:
protocol: SSL
ssl:
truststore:
location: <path to cliend truststore jks>
password: <password>
type: JKS
keystore:
location: <path to cliend keystore jks>
password: <password>
type: JKS
key:
password: <password>
enabled:
protocols: TLSv1.2,TLSv1.1,TLSv1
Can anyone let me know if I am configuring it correctly? I am able to successfully post messages to the topic using spring-kafka producer. I want to make sure that I did it correctly before I consider writing a consumer also in spring kafka.