Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-5820

MM2 connector task fails for Oauth enabled clusters due to unwanted quotes in the resulting sasl.jaas.config values.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.7.0.GA
    • None
    • None
    • None
    • False
    • None
    • False

      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)
      

              Unassigned Unassigned
              rhn-support-adongre Avinash Dongre
              Henrich Zrncik Henrich Zrncik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: