The production deployment runs a build from the former stand-alone
safing/spn repository (v0.7.4). Its job passes --data and reads the log
from stdout.
- Accept --data as a second name of --data-dir.
- Log to stdout unless --log-dir is given.
The observation hub has been broken since November 2024 and could not
report anything:
- Since commit 706ce222d (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 commit 80664d1a2 (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.
Portmaster, the SPN hub and the observation hub now verify the intel
index the way they verify the binary index: VerifyIntelUpdates is set
to a new trust store with two dedicated intel signing keys. An intel
index that is unsigned, signed with another key or changed after
signing is refused, and the intel files in use stay as they are.
The intel keys are kept apart from the code signing keys, so that an
intel key can only ever forge intel data, not binaries. A test makes
sure that no code signing key is in the intel trust store, and another
one that ParseIndex accepts exactly an index signed with a trusted key.
When the shutdown did not complete within three minutes, the process
exited without stopping the interception. The kext then kept holding
every new connection for a verdict that never came, and the network
stayed dead until a reboot.
Add a shutdown-timeout hook to cmdbase and let portmaster-core use it
to stop the interception, bounded by ten seconds, before the exit.
- fix Windows logging regression where %PROGRAMDATA% in service args stopped resolving
- keep quoted + EXPAND_SZ ImagePath unchanged
- convert quoted REG_SZ ImagePath to EXPAND_SZ without altering command text
- keep unquoted-path self-heal and executable ownership guard
- write repaired ImagePath as EXPAND_SZ so SCM expands environment variables consistently
- Update NSIS installer to register service with properly quoted executable path
- Add runtime self-heal in portmaster-core on Windows service startup to protect users who update via in-app updater without re-running the installer
https://github.com/safing/portmaster-shadow/issues/43
* [service] Set file permissions on windows
* [service] Fix minor windows permission bugs
* [service] Fix permission bugs
* [service] Fix windows non admin user start