Is it possible to create/update ACLs on-fly? #139
|
Hi Is it possible that I manually change and update ACLs at runtime? My question is about library itself right now, but it was great if mqttv5-cli also could achieve it via mqttv5 acl command. |
Replies: 4 comments
|
Hi, |
|
@fabracht Best Regards, |
|
You're right. The watcher only tracked the config file, so edits to the linked ACL, password, and SCRAM files weren't detected on their own. You had to touch the config or send SIGHUP. Fixed on main in #144. HotReloadManager now also watches the acl_file, password_file, and scram_file from the running config, compares each file's content hash, and reloads the auth provider when one changes. Editing acl.txt is picked up within the watcher interval without SIGHUP. Released in mqtt5 0.38.5. |
|
Thanks a lot for the implementation. :) |
You're right. The watcher only tracked the config file, so edits to the linked ACL, password, and SCRAM files weren't detected on their own. You had to touch the config or send SIGHUP.
Fixed on main in #144. HotReloadManager now also watches the acl_file, password_file, and scram_file from the running config, compares each file's content hash, and reloads the auth provider when one changes. Editing acl.txt is picked up within the watcher interval without SIGHUP.
Released in mqtt5 0.38.5.