-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Anonymous logins removed from Mosquitto Add-on #2623
Comments
Support for anonymous logins was removed as it is a bad security practice. This is the same reason mosquitto itself went from defaulting to allowing anonymous logins to defaulting to not allowing them. That was also when the addon made the change. If you really need them you will have to set up your own broker. This addon won't work for you. |
Why is it enforced by this add-on and not configurable? |
Thanks for clarifying - since Anonymous is officially removed I can now stop wasting my time on this and use a different broker, very unfortunate. |
christ! I spend a week trying to make this work. |
@DCSBL has a good point.... it's up to the user |
@atamgp easy... you are talking to volunteers. Open a PR to change the documentation yourself if you have issues. Anyway, I was able to fix my situation with the use the (quite new) EMQX addon. This broker is highly configurable. https://github.com/hassio-addons/addon-emqx |
you're right, I did not mean it offensive :) |
has this been fixed ? I really love anonymous for my home IoT. |
Its not broken, they removed anonymous on purpose. |
High, did you find a way to use certificate ? I need it for meross_lan support : https://github.com/bytespider/Meross/wiki/MQTT |
There is one perfectly legitimate use case for anonymous logins: debugging. Removing this feature just makes it more difficult to debug MQTT issues. |
Use EMQX, you can do the same and have full control over all your settings. |
How is this done in EMQX? is it something to do with the ACL file? |
Yeah, I actually ended up just using DietPi/Mosquitto directly. My point was that disabling anonymous logins is, in my opinion, a fairly arrogant decision which is likely to drive people away from Home Assistant. If anonymous logins were such an enormous security issue then it should be up to the Mosquitto authors to disable it, not Home Assistant. |
The library I use on my MCU doesn't support anything but anonymous. This should be an option, please reconsider. |
Absolutely an arrogant decision, but that's not unusual. My favourite part is that the alternative broker, EMQX, which allows for unauthorised clients, is provided by the same developer who removed unauthorised clients from the Mosquitto addon. Fingers crossed he doesn't do the same to EMQX addon! |
Debugging is exactly what brought me here! Pulling my hair out wondering why anonymous access wasn't working until I found this issue. Very unfortunate to have this option (allow_anonymous true) force-disabled when it's already not the default, and modifying Mosquitto to silently ignore any configuration to modify this behavior. Doubly unfortunate to not have it documented at all in the addon's documentation after multiple people confess to wasting time unnecessarily; I will try to submit a quick PR for that once I have time. Guess my only alternative is to migrate to EMQX, but I hear Mosquitto is more stable, so guess I will migrate back after I am done debugging. |
…re not supported Reference: home-assistant#2623
The switch to EMQX was utterly painless. I've had no problems at all with it. |
It is still ridiculous, from my point of view. Proper security practice would be disable anonymous by default but still provide option to enable, like mosquitto does. |
Can we end this discussion, please? |
Describe the issue you are experiencing
I have some wifi devices that can connect to a MQTT broker, but they do not provide a way to set an username/password nor they have one. Because of this I get this error:
After looking around a bit, I saw that this PR removed support for anonymous logins, why?
Why can't we just add the
allow_anonymous true
config in the customise part? Or is it not as easy as it seems?What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
Mosquitto broker
What is the version of the add-on?
6.1.2
Steps to reproduce the issue
Anything in the Supervisor logs that might be useful for us?
No response
Anything in the add-on logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: