Pulse/internal
rcourtman e29fda5e5a Rebuild agent token bindings on API token config reload
When api_tokens.json is modified on disk, the ConfigWatcher reloads
the tokens into memory. However, the Monitor's dockerTokenBindings and
hostTokenBindings maps were not synchronized with the new token set,
causing orphaned bindings when agents reconnect after reinstall.

Add SetAPITokenReloadCallback to ConfigWatcher that triggers Monitor's
new RebuildTokenBindings method after token reload. This method
reconstructs the binding maps from current Docker host and host agent
state, keeping only bindings for tokens that still exist in config.

Related to #773
2025-11-29 14:09:30 +00:00
..
agentbinaries chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
agentupdate Fix agent self-update infinite loop due to version prefix mismatch 2025-11-28 06:07:20 +00:00
alerts style: fix revive linter warnings 2025-11-27 10:26:26 +00:00
api Fix hideLocalLogin toggle persistence and login page UI 2025-11-28 09:05:41 +00:00
auth test: add unit tests for auth package 2025-11-26 13:51:13 +00:00
config Rebuild agent token bindings on API token config reload 2025-11-29 14:09:30 +00:00
crypto chore: remove additional dead code 2025-11-27 05:13:26 +00:00
discovery Fix discovery test Prometheus metric collision 2025-11-11 23:34:49 +00:00
dockeragent Fix standalone docker agent version comparison prefix mismatch 2025-11-29 00:04:43 +00:00
errors test: add unit tests for errors package 2025-11-26 14:09:14 +00:00
hostagent test: add unit tests for hostagent package 2025-11-26 14:09:55 +00:00
hostmetrics Fix ZFS storage reporting on TrueNAS SCALE (#718) 2025-11-22 23:53:39 +00:00
logging chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mdadm feat: Add mdadm RAID monitoring support for host agents 2025-11-09 16:36:33 +00:00
metrics chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mock Refine memory visualization with StackedMemoryBar component 2025-11-29 13:48:30 +00:00
models style: use direct type conversions in model converters 2025-11-27 09:24:39 +00:00
monitoring Rebuild agent token bindings on API token config reload 2025-11-29 14:09:30 +00:00
notifications refactor: replace deprecated strings.Title with custom titleCase 2025-11-27 09:22:52 +00:00
sensors style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
ssh/knownhosts chore: remove additional dead code 2025-11-27 05:13:26 +00:00
system style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
tempproxy chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
types test: add unit tests for types package 2025-11-26 14:10:21 +00:00
updates fix: multiple agent installation and update issues 2025-11-27 15:49:03 +00:00
utils fix(tests): resolve flaky ID generation and symlink resolution on macOS 2025-11-27 10:50:13 +00:00
websocket chore: fix staticcheck U1000 unused code warnings 2025-11-27 09:12:17 +00:00