Skip to content
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

Mosquitto 2.x incompatible with default IOTstack config file #266

Merged
merged 1 commit into from
Feb 6, 2021

Conversation

Paraphraser
Copy link

References:

Mosquitto 2.x has introduced a requirement for a listener in the
config file. If this is absent, Mosquitto will bind to the loopback
interface. When Mosquitto is running in a container, this implies no
connectivity.

Mosquitto 2.x has also changed the security defaults. Earlier versions
permitted passwordless access out-of-the box. The new version assumes
a password scheme will be implemented and requires passwordless
access to be an explicit configuration choice.

This PR maintains the IOTstack status quo by:

  1. Adding listener 1883; and
  2. Activating allow_anonymous with the value true.

Anyone who has already set up a password scheme will need to import
the listener line but, presumably, their allow_anonymous will
already be active and set to false, and that will not need to change.

References:

* [Mosquitto doc](https://mosquitto.org/documentation/migrating-to-2-0/)
* [Workaround](SensorsIot#265)
* [IOTstack new menu breaks Mosquitto configs](SensorsIot#258 (comment))
* [Pull Request on gcgarner/IOTstack](gcgarner#228)

Mosquitto 2.x has introduced a requirement for a `listener` in the
config file. If this is absent, Mosquitto will bind to the loopback
interface. When Mosquitto is running in a container, this implies no
connectivity.

Mosquitto 2.x has also changed the security defaults. Earlier versions
permitted passwordless access out-of-the box. The new version assumes
a password scheme will be implemented and requires passwordless
access to be an explicit configuration choice.

This PR maintains the IOTstack status quo by:

1. Adding `listener 1883`; and
2. Activating `allow_anonymous` with the value `true`.

Anyone who has already set up a password scheme will need to import
the `listener` line but, presumably, their `allow_anonymous` will
already be active and set to `false`, and that will not need to change.
Paraphraser added a commit to Paraphraser/IOTstack that referenced this pull request Feb 6, 2021
This is an attempt at proposing a PR to apply to the old-menu branch
to implement the same changes as proposed for the master branch in
[PR266](SensorsIot#266).
@Slyke Slyke merged commit 1e21de1 into SensorsIot:master Feb 6, 2021
@Paraphraser Paraphraser deleted the 20210206-mosquitto-config branch February 6, 2021 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants