Upstream issue: https://github.com/strimzi/strimzi-kafka-operator/issues/9786
Add tlsTrustedCertificates for the ssl enabled token endpoint
authentication:
tlsTrustedCertificates:
- certificate: ca.crt
secretName: my-secret
It results in the connector configuration with unnecessary quotes for the values of
oauth.ssl.truststore.location and oauth.ssl.truststore.password
curl localhost:8083/connectors/"source->target.MirrorSourceConnector"
oauth.ssl.truststore.location=\"/tmp/kafka/clusters/\"source\"-oauth.truststore.p12\" oauth.ssl.truststore.password=\"\"${file:/tmp/strimzi-mirrormaker2-connector.properties:oauth.ssl.truststore.password}\"\"
This results in the connector failing with the following error:
aused by: org.apache.kafka.common.KafkaException: Failed to create new NetworkClient at org.apache.kafka.clients.ClientUtils.createNetworkClient(ClientUtils.java:245) at org.apache.kafka.clients.ClientUtils.createNetworkClient(ClientUtils.java:185) at org.apache.kafka.clients.admin.KafkaAdminClient.createInternal(KafkaAdminClient.java:503) ... 22 more Caused by: java.lang.IllegalArgumentException: Value not specified for key 'source' in JAAS config at org.apache.kafka.common.security.JaasConfig.parseAppConfigurationEntry(JaasConfig.java:116) at org.apache.kafka.common.security.JaasConfig.<init>(JaasConfig.java:63) at org.apache.kafka.common.security.JaasContext.load(JaasContext.java:93)