Roger A. Light
67ad22df0a
Formatting: Double space before functions.
2025-09-17 12:03:03 +01:00
Roger A. Light
dcd5b803f2
Merge branch 'fixes' into develop
2024-02-21 23:30:33 +00:00
Roger A. Light
a5490a7408
oss-fuzz build fixes
2024-02-13 13:11:07 +00:00
Roger A. Light
d17a88d916
Refactor headers for easier discovery.
2023-12-23 12:59:58 +00:00
Roger A. Light
97c25654ed
Add helper messages for lax permissions
2023-09-18 22:21:56 +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
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
b648ba227b
Fuzzing: Add dynsec file load fuzz target.
2023-04-13 08:35:11 +01:00
Roger A. Light
1195dd991e
Clearer len calculation.
2023-04-01 08:50:03 +01: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
fd68bf00c7
Merge branch 'master' into develop
2022-08-17 16:18:24 +01:00
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 .
2022-08-16 01:27:55 +01:00
Roger A. Light
b22df5140e
Clear errno before check.
2022-08-16 00:23:06 +01:00
Roger A. Light
80c7726d5c
Fix confusing error message when dynamic security config file was a directory.
...
Closes #2520 . Thanks to sezanzeb
2022-08-12 08:34:56 +01:00
Roger A. Light
34391080d6
Add dynsec init by simple file.
2022-06-22 17:33:39 +01:00
Roger A. Light
5279a424b1
Dynsec: Kick clients in tick event rather than immediately
...
This means that PUBACK/PUBREC should be sent to clients that modify
their own roles.
Closes #2474 . Thanks to Stefano Berlato.
2022-03-12 23:16:57 +00:00
Roger A. Light
96931643a4
Use strings.h for strcasecmp, except on Windows.
...
Closes #2420 . Thanks to Frédéric Fauberteau.
2022-02-24 12:02:16 +00:00
Roger A. Light
d032c94d14
Remove global vars.
2022-02-03 21:50:20 +00:00
Roger A. Light
11c5cf039f
Simplify memory use for dynsec.
2022-01-27 16:09:09 +00:00
Roger A. Light
cd28187e5e
Minor refactor to separate files.
2021-12-15 16:36:54 +00:00
Roger A. Light
17fd1929eb
Move config load/save to own file.
2021-12-13 09:14:05 +00:00
Roger Light
cd07f1136b
Bump copyrights.
2021-11-03 22:10:06 +00:00
Roger A. Light
2bfc7e7cc8
Do plugin callback unregistering automatically.
2021-09-30 12:42:13 +01:00
Roger A. Light
6763d94962
Add plugin version helper.
2021-09-30 10:56:48 +01:00
Roger A. Light
3413001d47
Add mosquitto_plugin_set_info()
...
This allows plugins to tell the broker their name and version.
2021-09-07 23:13:06 +01:00
Roger A. Light
14993528ab
Dynsec will generate a config file if it is not found.
2021-07-29 17:47:59 +01:00
Roger Light
a5d9986cbd
More compiler warning fixes.
2021-03-21 22:50:48 +00:00
Roger A. Light
a4389fc9ce
Fix SPDX identifiers: EDL-1.0 -> BSD-3-Clause.
...
The two licenses are the same.
2021-01-20 11:46:18 +00:00
Roger A. Light
370cec5edd
Fixes for lots of minor build warnings highlighted by Visual Studio.
2021-01-09 21:06:08 +00:00
Roger A. Light
b8962cc040
Add more log messages for dynsec load/save error conditions.
2020-12-22 10:00:23 +00:00
Roger A. Light
c6a6165f3b
Fix dynamic security configuration possibly not being reloaded on Windows only.
...
Closes #1962 . Thanks to martgeier.
2020-12-20 23:02:19 +00:00
Roger A. Light
791c63372b
Fix cjson include paths.
2020-12-04 22:15:19 +00:00
Roger A. Light
3731535298
Add SPDX license identifiers.
2020-12-01 20:46:56 +00:00
Roger A. Light
0605fd402a
dynsec: Command logging.
2020-11-30 10:10:12 +00:00
Roger A. Light
e5af6def25
dynsec: Simplify
2020-11-29 23:26:57 +00:00
Roger A. Light
782696c8e4
Simplify, remove duplication.
2020-11-26 00:23:03 +00:00
Roger A. Light
584cf51ba7
Update to EPL-2.0
2020-11-25 17:34:21 +00:00
Roger A. Light
69f7fcae82
Support cJSON < 1.7.13.
2020-11-25 16:57:33 +00:00
Roger A. Light
0c6365726f
Coverity Scan issues.
...
1436823
1436837
1436843
1432792
1436847
1436848
1436849
2020-11-24 10:06:28 +00:00
Roger A. Light
f83fcc8535
Fix Coverity Scan issues.
...
1436866
1436865
1436864
1436862
1436857
1436856
1436852
1436851
2020-11-24 00:47:30 +00:00
Roger A. Light
d1bf2c0d13
dynsec: Fix missing correlationData for getDefaultACLAccess.
2020-11-23 14:06:19 +00:00
Roger A. Light
b06c5cd88f
dynsec: Add setClientId command.
2020-11-17 14:58:23 +00:00
Roger A. Light
bb840ed55b
Conversion fixes.
2020-11-03 10:09:18 +00:00
Roger A. Light
66d16280d8
dynsec: Add enableClient disableClient commands.
2020-10-29 15:17:12 +00:00
Roger A. Light
df30b6c9d4
Dynsec: add getAnonymousGroup and getDefaultACLAccess commands
2020-10-29 11:38:34 +00:00
Roger A. Light
a1ad4cfcc4
Dynsec: Rename ACL types for clarity.
...
publishBrokerToClient -> publishClientReceive
publishClientToBroker -> publishClientSend
2020-10-28 11:03:44 +00:00
Roger A. Light
fdff255916
New dynamic security plugin.
2020-10-27 00:54:55 +00:00