1

I need help because I'm new about kafka and mqtt. I will try to briefly explain the architecture I am using. I'm using the Confluent 5.3.1 platform and I configured a connector (source mqtt connector) that transfers data from the mqtt broker to kafka broker. In order to connect to the mqtt broker I need a Json Web Token and I have no idea how to do it. I've read the Confluent documentation but i can't find any possible solutions. Can someone help me?

Robin Moffatt
  • 30,382
  • 3
  • 65
  • 92

1 Answers1

0

Looking at the documentation for the connector it looks like it only support password-based authentication, not JWT.

Robin Moffatt
  • 30,382
  • 3
  • 65
  • 92
  • I read this document (https://docs.confluent.io/current/connect/security.html ) and it seems that something can be done (am I wrong?) but I can't implement it. – Andrea Calvaresi Nov 28 '19 at 09:43
  • That's authentication to the Kafka Connect cluster itself, whereas your question is about authentication to the MQTT broker. – Robin Moffatt Nov 28 '19 at 10:46
  • ok, thanks. So, the mqtt source connector only allows to set password and username to connect to the mqtt broker but not using an IDP to do that. it's right? – Andrea Calvaresi Nov 28 '19 at 10:51
  • That's my understanding, yes. – Robin Moffatt Nov 28 '19 at 11:41
  • Just a curiosity: I need to set the field mqtt.server.uri using a websocket protocol. So i have something like that ws://:port. I observed that maybe it does not works because i can't read data. It is possible to solve this? – Andrea Calvaresi Nov 28 '19 at 16:58