Commit graph

358 commits

Author SHA1 Message Date
Roger A. Light
68b939f997 Don't run persist sqlite tests if WITH_SQLITE=no 2026-02-24 00:42:39 +00:00
Jesús Fernández Manzano
c6669ef715 Fix makefile build with WITH_SQLITE disabled
When using WITH_SQLITE=no, the build system correctly avoids to compile
the plugin, but the install step fails because it tries to install it
even if it has not been compiled.

This commit fixes this behaviour by totally omitting the plugin if
WITH_SQLITE=no is specified, so no compilation and no installation is
performed

Signed-off-by: Jesús Fernández Manzano <jesus.fernandez@titanos.tv>
2026-02-24 00:35:15 +00:00
Roger A. Light
d2435fc685 cmake: Simplify WITH_BUNDLED_DEPS handling 2026-02-13 13:14:50 +00:00
Roger A. Light
800ec38e22 Fix payload conversion in migrate_to_persist_sqlite.py
Closes #3492. Thanks to Marc Haesen.
2026-02-11 14:53:02 +00:00
Roger A. Light
51ab9cabec migrate_to_persist_sqlite.py: Fix db dump tool name
Closes #3473. Thanks to Stuart Henderson
2026-02-06 15:30:33 +00:00
Roger A. Light
87903e29b0 migrate_to_persist_sqlite.py: Fix subscription migration 2026-02-06 15:29:45 +00:00
Roger A. Light
aa8fc9a5bf Make migration scripts executable and add shebang 2026-02-06 15:18:13 +00:00
Roger A. Light
6edc3fb6a7 Fix incorrect linking of libmosquitto_common.so for the acl and password plugins
Closes #3460. Thanks to Jacopo Labardi
2026-02-03 08:29:50 +00:00
Roger A. Light
348f2ba851 mac: Fix persist-sqlite compilation 2026-01-25 00:47:08 +00:00
Roger A. Light
7de6cb42ef Compiler warning fixes 2026-01-23 08:44:34 +00:00
Roger A. Light
0665690c8a Windows build fix 2026-01-21 22:55:09 +00:00
Roger A. Light
2fb87f8cc7 Add missing header for strcasecmp 2026-01-21 22:25:20 +00:00
Roger A. Light
2bf9c8c8fb persist-sqlite: Avoid array literal 2026-01-21 22:25:20 +00:00
Roger A. Light
d2eb276f34 Fix incorrect memory free when finding duplicate username
Fix oss-fuzz #468922225. Unreleased changes.
2026-01-06 16:31:30 +00:00
Roger A. Light
30ee4a2d3e Fix heap use after free in password-file plugin
Unreleased code.

Closes oss-fuzz #462551340.
2025-12-09 13:25:34 +00:00
Roger A. Light
160ccde1cd password-file: Refactor parsing error handling 2025-11-19 22:14:00 +00:00
Roger A. Light
0ba2436589 Remove unused srand() etc. functions 2025-10-15 11:49:13 +01:00
Roger A. Light
0566a90eb0 Fix leak on exit in password-file plugin 2025-09-17 17:00:58 +01:00
Roger A. Light
0a6fa2ee90 Uncrustify config, plus updated format changes 2025-09-17 12:48:02 +01:00
Roger A. Light
460995652e Formatting: Apply to C headers 2025-09-17 12:48:02 +01:00
Roger A. Light
7ea73f6d60 Formatting: Forbid single line if statements
These hide cases from coverage checks
2025-09-17 12:48:02 +01:00
Roger A. Light
48b76e49f8 Formatting: Misc automatic formatting changes 2025-09-17 12:03:06 +01:00
Roger A. Light
883fdb2ad2 Formatting: Double indent continuation 2025-09-17 12:03:06 +01:00
Roger A. Light
6e7ddef145 Formatting: Always include comma for last enum
Plus some spacing
2025-09-17 12:03:06 +01:00
Roger A. Light
9d95bf24c3 Formatting: Indent fixes 2025-09-17 12:03:06 +01:00
Roger A. Light
d743413ac3 Formatting: Spacing consistency 2025-09-17 12:03:06 +01:00
Roger A. Light
67ad22df0a Formatting: Double space before functions. 2025-09-17 12:03:03 +01:00
Roger A. Light
a9fe4037ea Add example plugin for topic hierarchy flattening.
Issue #3365
2025-09-16 16:13:18 +01:00
Roger A. Light
76eaef0419 Fix leak in password-file plugin on error
Unreleased changes
2025-08-24 11:33:00 +01:00
Roger A. Light
d0a94d0f41 Fix leak in acl-file plugin.
Unreleased
2025-08-23 23:31:42 +01:00
Roger A. Light
3ecbf701a4 Fix variety of Coverity Scan issues in tests 2025-08-23 22:34:34 +01:00
Roger A. Light
ed9936e39d Exit broker on reload if acl_file or password_file detect invalid input
Also exit if a plugin returns an error code from the RELOAD event.

Closes #3350.
2025-08-23 08:52:24 +01:00
Roger A. Light
7c8391908f Don't free data->acl_anon 2025-08-22 12:37:05 +01:00
Roger A. Light
40f814a8dc Fix Coverity Scan #1589589
Leak on error in config load
2025-08-22 11:14:00 +01:00
Roger A. Light
e498168781 Fix oss-fuzz #439559900
Performance issue with acl files with thousands of ACLs in use
2025-08-22 10:03:42 +01:00
Roger A. Light
c64273f663 Fix build on Mac OS, introduce Mac OS CI workflow
Closes #3312
2025-08-14 08:38:45 +01:00
Roger A. Light
518abf49ff oss-fuzz: Fix broker_fuzz_acl_file timeout 2025-08-09 10:06:31 +01:00
Norbert Heusser
7a22685866 Fixed memory issue with property handling in persistence SQLite will restore
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-08-04 18:36:24 +01:00
Steve Hamann
2077283a30 Add script to migrate from Snapshot persistence to SQLite persistence
Signed-off-by: Steve Hamann <steve.hamann@cedalo.com>
2025-08-04 18:31:02 +01:00
Steve Hamann
2d6ad4a27f Add migration of mosquitto.conf to DynSec migration script
Signed-off-by: Steve Hamann <steve.hamann@cedalo.com>
2025-08-04 18:30:21 +01:00
Roger A. Light
65ad337bbb dynsec: Add getDetails command 2025-07-17 17:04:48 +01:00
Roger A. Light
0c0683094b Allow plugins to choose when their tick event is next called 2025-07-10 21:06:01 +01:00
Roger A. Light
0b4ab2f285 Move password file code to own plugin 2025-07-10 14:49:46 +01:00
Roger A. Light
c83ee48e5c Make acl-file function names clearer 2025-07-10 14:49:46 +01:00
Norbert Heusser
424df70395 Add support for will message to persistence API and Sqlite3 persistence plugin
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-07-10 00:52:33 +01:00
Steve Hamann
ff0afc8374 Implement migration script to migrate from ACL file to DynSec
Signed-off-by: Steve Hamann <steve.hamann@cedalo.com>
2025-07-10 00:46:17 +01:00
Roger A. Light
c522361d35 Move acl_file code to own file. 2025-07-10 00:39:51 +01:00
Roger A. Light
2ff2029c42 mosquitto_ctrl interactive shell mode 2025-04-16 15:42:51 +01:00
Roger A. Light
3511db6889 Whitespace tidy
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Coverage / coverage (push) Has been cancelled
Mosquitto - CMake / build (push) Has been cancelled
Mosquitto - Make ASAN / build (push) Has been cancelled
Mosquitto - Make / build (push) Has been cancelled
Windows build / mosquitto (push) Has been cancelled
2025-04-06 22:40:48 +01:00
Roger A. Light
f8d37b70a6 Merge branch 'fix-persist-plugin-expiry' of github.com:NorbertHeusser/mosquitto into NorbertHeusser-fix-persist-plugin-expiry 2025-02-26 09:59:32 +00:00