Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Dynamic Security Plugin - persisting in-memory to config file
Dynamic Security Plugin - persisting in-memory to config file [message #1840954] Thu, 29 April 2021 12:31 Go to next message
Arun J is currently offline Arun JFriend
Messages: 3
Registered: April 2021
Junior Member
After enabling dynamic-security plugin, could add dynamically client, group, role and ACLs. New MQTT clients could also connect using these newly created client/user too.

But these dynamically created config using mosquito_ctrl doesn't get persisted. After restart of the broker all the dynamically created configuration were not available.

Is there anything I need to do beyond this to persist the dynamically created configuration using 'dynsec'. Thanks in advance.

autosave_on_changes true
autosave_interval 5

persistence true
persistence_location /var/lib/mosquitto/
Re: Dynamic Security Plugin - persisting in-memory to config file [message #1840988 is a reply to message #1840954] Thu, 29 April 2021 21:25 Go to previous messageGo to next message
Roger Light is currently offline Roger LightFriend
Messages: 90
Registered: September 2013
Member
When you configure the dynamic-security plugin you need to make sure you include the `plugin_opt_config_file <path to file>` option which defines where the configuration will be saved. If the file isn't writeable then maybe that is your problem.

Regards,

Roger
Re: Dynamic Security Plugin - persisting in-memory to config file [message #1840993 is a reply to message #1840988] Fri, 30 April 2021 05:02 Go to previous message
Arun J is currently offline Arun JFriend
Messages: 3
Registered: April 2021
Junior Member
Thanks Roger. Yes that was the issue. (Using sudo chmod 766 /path/to/dynamic-security.json now it is working).

Surprising thing is you could make out with no other information - there is actually nothing in the log too that it could not write to the file. Shouldn't this be logged into the log file configured.

~JAK

Previous Topic:Mosquitto bridge and retain behaviour
Next Topic:WAGO PLC 750-8100 MQTT Connection
Goto Forum:
  


Current Time: Fri Mar 29 12:31:27 GMT 2024

Powered by FUDForum. Page generated in 0.04886 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top