Update mosquitto to 2.0.11 (#2453)

* Update mosquitto base image to alpine 3.14

* Replace mosquitto-auth-plug with mosquitto-go-auth

* Add flags for linker before make

https://github.com/iegomez/mosquitto-go-auth/issues/91#issuecomment-826943411

* In-place sed

* Debian base, new packages, set hasher

* Fix DL3009

* Update changelog

* Clean go cache and link to mosquitto changelog

* Update config.yaml

Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
Mike Degatano
2022-05-03 13:48:04 -04:00
committed by GitHub
parent 4392e97cf2
commit 9356ff743b
6 changed files with 58 additions and 32 deletions

View File

@@ -9,21 +9,22 @@ persistence true
persistence_location /data/
# Authentication plugin
auth_plugin /usr/share/mosquitto/auth-plug.so
auth_plugin /usr/share/mosquitto/go-auth.so
auth_opt_backends files,http
auth_opt_hasher pbkdf2
auth_opt_cache true
auth_opt_auth_cacheseconds 300
auth_opt_auth_cachejitter 30
auth_opt_acl_cacheseconds 300
auth_opt_acl_cachejitter 30
auth_opt_log_quiet true
auth_opt_auth_cache_seconds 300
auth_opt_auth_jitter_seconds 30
auth_opt_acl_cache_seconds 300
auth_opt_acl_jitter_seconds 30
auth_opt_log_level error
# HTTP backend for the authentication plugin
auth_opt_password_file /etc/mosquitto/pw
auth_opt_acl_file /etc/mosquitto/acl
auth_opt_files_password_path /etc/mosquitto/pw
auth_opt_files_acl_path /etc/mosquitto/acl
# HTTP backend for the authentication plugin
auth_opt_http_ip 127.0.0.1
auth_opt_http_host 127.0.0.1
auth_opt_http_port 80
auth_opt_http_getuser_uri /authentication
auth_opt_http_superuser_uri /superuser