-
Notifications
You must be signed in to change notification settings - Fork 13
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
No security mechanism implemented #84
Comments
You are right there is no such thing for now. There is no plan or ETA but any contributions are very welcome. |
Hi @antonio-gomez-navarro, thanks to bring this out to our attention. Yes, we do not handle any kind of authentication/authorization. |
@ppatierno Because this came out, I think we should support OAuth to start as Strimzi has https://github.com/strimzi/strimzi-kafka-oauth. EDIT: I do not know if there is a plan to add support for MQTT v5, but it would make everything easy when dealing with authentication/authorization. |
Answering this question, you can write a basic gateway to authenticate and authorize your MQTT clients before they connect or produce messages through the bridge. This can be a small python script using paho-mqtt and any auth provider of your choice. |
I am not sure it's simple as you are describing. |
As I said, I have not tested it so I can't ensure we get rid of any complexity. It was an initial workaround. And I agree with you, this auth should come from the Bridge only. In this scenario, where the Bridge does not have any support for auth, this gateway would somehow be helpful. Let's see a breakdown of the working gateway, it should:
Maybe some extra configuration/behavior would be needed. Note that the MQTT clients does not have to connect with the Bridge. In the end, the MQTT clients just need to be aware of the gateway. Again, I have to agree with you that it might not be an easy task as I mentioned early. |
Well it's a big workaround I would say. You are rewriting an MQTT server from scratch in the end (notice I said an MQTT server not an MQTT broker). |
Yeah, even paho-mqtt might not be helpful because it was built necessarily to create MQTT clients and not servers. I did a quick search and found this useful: https://www.nginx.com/blog/nginx-plus-iot-security-encrypt-authenticate-mqtt ATT: Just because the Bridge does not support Auth yet. |
But Nginx Plus is not free and/or open source AFAIK. |
You are right, it is not free nor open source. |
If I am not wrong, there is no authentication/authorization mechanism implemented. Once installed, anyone could send messages to the MQTT endpoint.
Do you know how I could implement at least a simple user and pass authentication? Do you plan to integrate this functionality in the future?
The text was updated successfully, but these errors were encountered: