Pulse/cmd/pulse
rcourtman dbf32baaa0 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
..
bootstrap.go Fix bootstrap-token command to use correct env var and default path 2025-11-09 23:46:41 +00:00
config.go refactor: remove unnecessary type conversions 2025-11-27 10:33:35 +00:00
main.go Rebuild agent token bindings on API token config reload 2025-11-29 14:09:30 +00:00
metrics_server.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00