You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "andrijadukic-syntio (via GitHub)" <gi...@apache.org> on 2023/05/17 15:08:52 UTC

[GitHub] [camel-kamelets-examples] andrijadukic-syntio commented on issue #19: Add example for securely connecting to Kafka (and a potential bug?)

andrijadukic-syntio commented on issue #19:
URL: https://github.com/apache/camel-kamelets-examples/issues/19#issuecomment-1551576632

   > You should use this: https://github.com/apache/camel-kamelets/blob/main/kamelets/kafka-source.kamelet.yaml
   > 
   > I'll update the example accordingly
   
   Hi @oscerd , thanks for replying so quickly!
   The first snippet (the route definition that we've tried using but fails to authenticate) is the one you linked (so not the kafka-not-secured-source, but the kafka-source kamelet), but unfortunately, it's not working:
   ```yaml
   ...
   - route:
       id: "kafka-to-mq"
       from:
         uri: "kamelet:kafka-source"
         parameters:
           bootstrapServers: "{{kafka.bootstrapServers}}"
           topic: "{{kafka.kafka-to-mq-topic}}"
           saslMechanism: PLAIN
           securityProtocol: SASL_SSL
           user: "$ConnectionString"
           password: "<PASSWORD>"
           deserializeHeaders: true
   ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org