mirror of
https://github.com/safing/portmaster.git
synced 2026-12-05 10:03:06 +00:00
eaa9fc84c7
The observation hub has been broken since November 2024 and could not report anything: - Since commit706ce222d(2024-11-27, first in the repository tag v2.0.20) it used Portmaster's full instance. There the SPN modules only start for an integrated client, so the tool never connected and the observer waited forever. A failed instance creation also ended in a nil-pointer panic, because the error was ignored. - Since commit80664d1a2(2024-08-09, first in the repository tag v1.6.19) the Apprise module was never added and the observer was added twice instead. Nothing was sent to the chat rooms, without any error message. The hub's instance is no better fit: it installs binary updates by itself, which here would install Portmaster's binaries, and it lacks the notifications module. The SPN client's connection loop reports failures as notifications and panics without that module; the hub never runs that loop. - Add a small instance with only the modules the tool uses: the SPN client, intel updates and notifications, but no binary updater and no core module. The tool is updated by replacing its container image. - Add the Apprise module once and before the observer. - Return the errors of the instance creation instead of ignoring them. - Require a data directory, so that the data of an installed Portmaster is never used. - Remove --bin-dir and the update command: there are no binaries to manage, and the command would install Portmaster's. - Add a VS Code debug entry for the observation hub.