Commit Graph

229 Commits (2e36d523c8e07d7391847ed6ecfe26a1aa5eadb9)

Author SHA1 Message Date
Norbert Heusser ba5f8eb448 Cleanup of include guard defines
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Roger A. Light 9e9a4f836c Fix duplicate# 3 years ago
Roger A. Light c6be853a7e Sync example with plugin interface 3 years ago
Roger A. Light 8cbfb59f66 Add mosquitto_plugin_cleanup() to examples for 2.0 compatibility 3 years ago
Roger A. Light dae1073360 Add missing Makefile 3 years ago
Roger A. Light be8cf754fb Move plugin to examples dir, plus some tweaks. 3 years ago
Frank Villaro-Dixon cbbc4a0ea3 Auth: add authentication via env variable
This commit provides a "cloud-native" way of authenticating clients
by comparing the provided password to the MOSQUITTO_PASSWORD environment
variable.

This allows to quickly and easily adding authentication by simply
providing the password to the environment variable of the docker
container / kubernetes pod.

Signed-off-by: Frank Villaro-Dixon <frank@vi-di.fr>
3 years ago
Norbert Heusser 170cd85cec Add target test-compile to all Makefile to allow tests in plugin folders
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Norbert Heusser e4c252b781 Don't install example plugin client-lifetime-stats
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Roger A. Light 54365ec53b Dynsec: Fix improbably out of memory case 3 years ago
Roger A. Light 7ebe148065 Dynsec: Simplify config load 3 years ago
Roger A. Light a2e5bb5294 Merge branch 'fix-compiler-warnings' of https://github.com/buschulte/mosquitto into buschulte-fix-compiler-warnings 3 years ago
Roger A. Light 0503d5d35c Fix windows build 3 years ago
Kai Buschulte e6f5633ff6 Fix some compiler warnings
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 9c5a5081df Fix CMake build
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light 4596cef734 Ban file should be appended. 3 years ago
Roger A. Light 6dc27d8214 Fix Coverity Scan 1499812, 1499810 3 years ago
Roger A. Light 7f0e5cd809 Tidy plugin directory 3 years ago
Roger A. Light 9aeb756dac Fix Coverity Scan 1499842 3 years ago
Roger A. Light ae14eb34e1 Fix Coverity Scan 1499817 3 years ago
Roger A. Light 403f6443be Sqlite: Provide logs on restore errors 3 years ago
Roger A. Light 9bb389dda1 Avoid compile error.
"a label can only be part of a statement and a declaration is not a
statement"
3 years ago
Roger A. Light 1a5cd9e849 Fix Coverity Scan 1499794. 3 years ago
Roger A. Light 9c2d0ce401 Fix copy paste error.
Coverity Scan 1499794.
3 years ago
Roger A. Light c5c7dd3f57 Fix payload check 3 years ago
Roger A. Light 65153eba45 Example plugin that bans based on payload 3 years ago
Roger A. Light a872c0466f Fix leak 3 years ago
Roger A. Light adf985bff8 Persistence: Store cmsg_id and sub id for client_msgs. 3 years ago
Roger A. Light cfd4aa1c95 sqlite: Consistent naming 3 years ago
Roger A. Light 2bfb0dc022 sqlite: client_msgs are only ever all cleared 3 years ago
Roger A. Light bdf8493e81 sqlite: base_msg can never have these properties 3 years ago
Roger A. Light 16feb14a57 Persistence interface updates and sqlite plugin fixes
The MOSQ_EVT_PERSIST_CLIENT_MSG_CLEAR event has been removed, due to
never being called. It is the responsibility of the plugin to remove
client subscriptions and client messages when the client is removed.

Lots of persist test improvements and additions - mostly checking item
counts.
3 years ago
Roger A. Light d4960d0ead sqlite: Save/restore binary properties. 3 years ago
Roger A. Light 86b314c624 Remove unused defs 3 years ago
Roger A. Light 1d230bd255 dynsec: Fix listClients/getClient crashing if an anon user present
This only affects the unreleased `develop` branch.
3 years ago
Roger A. Light fd68bf00c7 Merge branch 'master' into develop 3 years ago
Roger A. Light ba13edc6a4 dynsec: Forbid deleting the anon group. 3 years ago
Roger A. Light 9d9469cbec Merge branch 'fixes' 3 years ago
Roger A. Light 4d1b587e29 dynsec: Forbid deleting the anon group. 3 years ago
Roger A. Light df317ff71f Dynamic security: Fix the plugin being able to be loaded twice.
Currently only a single plugin can interact with a unique $CONTROL
topic. Using multiple instances of the plugin would produce duplicate
entries in the config file.

Closes #2601.
Closes #2470.
3 years ago
Roger A. Light 436f0b9348 dynsec: Fix modifyClient and modifyGroup commands
They will now not modify the client/group if a new group/client being
added is not valid, or on other failures.

Closes #2598. Thanks to Sebastian Szczepański.
3 years ago
Roger A. Light b22df5140e Clear errno before check. 3 years ago
Roger A. Light 80c7726d5c Fix confusing error message when dynamic security config file was a directory.
Closes #2520. Thanks to sezanzeb
3 years ago
Roger A. Light a2f91babdf Fix incorrect format specifier 3 years ago
Kai Buschulte 8b67883548 Remove old compatibility header support
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light 7794001ce2 Don't free arrays. 3 years ago
Roger A. Light 832e51cb57 dynsec: reduce memory allocations 3 years ago
Roger A. Light e5d6bbb907 dynsec: don't leave in partial state on error 3 years ago
Roger A. Light dd34b707ac Fix Coverity Scan 1490914. 3 years ago
Roger A. Light c397d080b4 Merge branch 'fix-corrupted-dynsec-config' of https://github.com/NorbertHeusser/mosquitto into NorbertHeusser-fix-corrupted-dynsec-config 3 years ago