-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use MQTT5 enhanced auth for connecting? #176
Comments
Currently, there is no MQTT 5 logic specifically used. Until now there didn't seem to be a need for any MQTT 5 specific logic, but maybe this might be one? What would be the benefit of supporting this? What does it enable? Is it the only way to connect to your broker for you? |
Thanks for the reply. I'm part of the IoT Operations team at Microsoft, and the product has an MQTT Broker built-in. The preferred way to connect to our broker is via MQTT 5 enhanced auth as I outlined above. |
Is there an article somewhere about why it's the preferred way? What's its benefits are? Also, hey there over there. Noticed an Microsoft Article mentioning mqttui some time ago which was nice to see in the wild 😇 |
Happy to showcase such a nifty tool, great work!
The broker in IoT Operations is a Kubernetes-native service. Ideally we'd like to suggest using mqttui to observe message activity on broker without exposing the mqtt endpoint outside of the cluster. For cluster internal clients, the broker has integration with Kubernetes service account tokens for authentication, and this leverages the MQTT5 enhanced auth features. For example an internal client could be spawned using a pod definition:
... and connect like so, after shelling into the container:
|
mosquitto client tools have a mechanism to connect to the an MQTT 5 broker like so:
mosquitto_sub --host $broker--port $port --topic "/#" -v --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method $method -D CONNECT authentication-data $authdata
Is this possible using mqttui?
The text was updated successfully, but these errors were encountered: