Pulse/internal/config
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
..
api_tokens.go feat: add native Windows service support and expandable host details 2025-10-23 22:11:56 +00:00
api_tokens_test.go Add API token scopes and standalone host agent 2025-10-23 11:40:31 +00:00
client_helpers.go chore: remove dead code and unused files 2025-11-27 00:05:04 +00:00
client_helpers_test.go Persist PVE fallback host after portless retry 2025-11-22 17:06:15 +00:00
config.go chore: remove dead code and unused files 2025-11-27 00:05:04 +00:00
detect_root.go WIP: Save all pending changes including frontend updates and unified agent scaffolding 2025-11-25 11:27:07 +00:00
docker_metadata.go style: fix staticcheck style warnings 2025-11-27 09:19:33 +00:00
export.go feat: production-ready import/export with API tokens and transactional rollback 2025-10-21 14:37:44 +00:00
guest_metadata.go style: fix staticcheck style warnings 2025-11-27 09:19:33 +00:00
import_transaction.go feat: production-ready import/export with API tokens and transactional rollback 2025-10-21 14:37:44 +00:00
oidc.go Add OIDC CA bundle support 2025-11-22 09:44:03 +00:00
persistence.go Implement UI toggle for Hide Local Login (related to issue #750) 2025-11-25 08:14:19 +00:00
persistence_fail_test.go Harden setup token flow and enforce encrypted persistence 2025-10-25 16:00:37 +00:00
persistence_test.go Related to #727: normalize persisted Proxmox hosts 2025-11-20 19:58:05 +00:00
watcher.go Rebuild agent token bindings on API token config reload 2025-11-29 14:09:30 +00:00