Commit Graph
284 Commits
Author SHA1 Message Date
Roger A. Light 3199768aef Dynsec: Max priority of 100,000 2024-02-11 23:40:41 +00:00
Roger A. Light 05e42f7dbb Default to using argon2 for passwords 2024-02-11 22:08:16 +00:00
Roger A. Light d17a88d916 Refactor headers for easier discovery. 2023-12-23 12:59:58 +00:00
Roger A. Light 837c272c29 Add argon2 password hash support 2023-11-20 22:58:42 +00:00
Roger A. Light b6710f9364 Refactor password code 2023-11-20 22:58:42 +00:00
Roger A. Light fe4fe0102f Place client context in mosquitto_control_cmd for API simplicity 2023-10-11 15:12:49 +01:00
Roger A. Light 5a67361af0 Clearer name 2023-09-20 21:45:06 +01:00
Roger A. Light 13fa9f535a Protect password init file 2023-09-20 21:40:22 +01:00
Roger A. Light 7a011ede19 Localise variable use 2023-09-20 21:38:48 +01:00
Roger A. Light c8e313aac0 Fix build
This is for the case where command line overrides are set.
2023-09-19 22:48:24 +01:00
Roger A. Light 21c1ddc2c3 Add sparkplug aware plugin. 2023-09-13 17:13:33 +01:00
Roger A. Light e656e694ed Merge branch 'master' into develop 2023-09-09 15:20:40 +01:00
Roger A. Light b76c3c7820 Dynsec: Don't allow duplicate c/g/r when loading config 2023-08-16 14:01:21 +01:00
Roger A. Light 8bc047511a Fix any possible case where a json string might be incorrectly loaded. 2023-08-16 14:01:21 +01:00
Roger A. Light 411ed41c27 Dynsec: Simplify config load 2023-08-16 14:01:21 +01:00
Roger A. Light 67ac8cbe17 mosquitto_memcmp_const is now more constant time. 2023-08-16 14:01:21 +01:00
Roger A. Light 4ca294fd9c Warn on lax permissions on sensitive files.
- Broker will log warnings if sensitive files are world readable/writable, or
  if the owner/group is not the same as the user/group the broker is running
  as. In future versions the broker will refuse to open these files.
2023-08-16 14:01:21 +01:00
Roger A. Light 3bb4ff180e Fix Coverity Scan 1509020 Unchecked return value.
This was really a false positive, however the intent is probably clearer
now.
2023-07-09 08:40:02 +01:00
Roger A. Light a31bee722f Simplify make build. 2023-05-10 16:20:06 +01:00
Roger A. Light bc1315820c Don't require cJSON in mosquitto_broker.h 2023-04-24 20:09:41 +01:00
Roger A. Light 68636012a2 Fix cmake build 2023-04-23 20:27:51 +01:00
Roger A. Light f317a0fdfe Fix incorrect free 2023-04-23 20:14:03 +01:00
Roger Light 2b69724ef2 Fix cmake build 2023-04-21 22:38:18 +01:00
Roger A. Light 747fcacd67 Make args const where possible, fix persist-sqlite build. 2023-04-19 22:54:53 +01:00
Roger A. Light 56462c1229 Refactor for more consistent json helper use. 2023-04-19 17:12:20 +01:00
Roger A. Light b648ba227b Fuzzing: Add dynsec file load fuzz target. 2023-04-13 08:35:11 +01:00
Roger A. Light 2940d9cc4c Move control common helper functions to broker. 2023-04-02 00:27:15 +01:00
Roger A. Light 53dc3006a2 Make cJSON a hard dependency. 2023-04-01 23:35:03 +01:00
Roger A. Light 4f9c5567ba Fix example plugin incorrect callback unregister.
Closes #2673. Thanks to Karl Palsson.
2023-04-01 22:36:38 +01:00
Roger A. Light 1195dd991e Clearer len calculation. 2023-04-01 08:50:03 +01:00
Roger Light ec6a56d759 Merge pull request #2734 from axos88/patch-1
Fix malloc size for file path
2023-04-01 08:48:30 +01:00
Roger Light 3f7dd60daa Merge pull request #2768 from cicorias/cicorias-fix-jail-plugin
fixes build fail on darwin arm64
2023-03-27 23:21:34 +01:00
Roger A. Light 910b8e2c1d Remove effectively duplicate parameter. 2023-03-23 12:10:00 +00:00
Shawn Cicoria e74e5d0123 fixes build fail on darwin arm64
made cmake same as other plugin
examples and now it compiles
clean with cmake

Signed-off-by: Shawn Cicoria <github@cicoria.com>
Shawn Cicoria <shawn@cicoria.com>:
2023-03-08 18:36:09 -05:00
Roger A. Light dcbbf71cb2 Coverity suppressions 2023-01-25 12:00:48 +00:00
Akos Vandra-Meyer e0d8ef20fa Fix malloc size for file path
We need 4 more characters to store the suffix.
2023-01-20 21:13:54 +01:00
Roger A. Light da0eab36a4 Remove unused events 2023-01-16 22:49:31 +00:00
Roger A. Light fd330de080 client_id -> clientid rename. 2023-01-16 18:46:35 +00:00
Roger A. Light 0dc1fa5a49 Rejig SUBSCRIBE and UNSUBSCRIBE plugin event structs. 2023-01-16 17:48:56 +00:00
Roger A. Light 3e17494d34 Rename topic -> topic_filter in events. 2023-01-16 17:17:55 +00:00
Roger A. Light 9ef6c49266 Renaming and adding tests. 2023-01-16 10:31:13 +00:00
Abilio Marques 46442193f3 add example plugin that jails clients
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2023-01-16 10:31:13 +00:00
Abilio Marques 4cc76aae9c add example plugin that limits subscriptions' QoS
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2023-01-16 10:31:11 +00:00
Abilio Marques 1677d1aed2 allow message modification on output
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2023-01-16 10:29:50 +00:00
Roger A. Light 1081661f74 Refactor client structs. 2023-01-16 10:21:12 +00:00
Roger A. Light 5364410615 Rename members 2023-01-16 10:21:12 +00:00
Roger A. Light 7013a3502d Refactor client_msg structs 2023-01-16 10:21:12 +00:00
Roger A. Light 3634f18bc9 Refactor subscription structs 2023-01-16 10:21:12 +00:00
Roger A. Light 100fd31530 Refactor base_msg structs. 2023-01-16 10:21:12 +00:00
Roger A. Light 4199e7b2d3 Move control functions to common, and use in the broker. 2022-12-31 14:34:26 +00:00