Pulse/internal/config
courtmanr@gmail.com 60721cbc22 Add mutex protection for config watcher reloads (re #748)
Introduced sync.RWMutex to protect concurrent access to configuration
fields (AuthUser, AuthPass, APITokens) that are modified by the
ConfigWatcher at runtime.

- Added global config.Mu RWMutex in internal/config/config.go
- Protected config updates in ConfigWatcher.reloadConfig() and reloadAPITokens()
- Protected config reads in CheckAuth and all API token handlers
- Protected Router.SetConfig() during full config reloads

This prevents race conditions when .env file changes trigger config
reloads while authentication handlers are reading the same fields.
2025-11-24 07:45:21 +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 Handle PVE portless fallback when default port fails 2025-11-22 17:01:16 +00:00
client_helpers_test.go Persist PVE fallback host after portless retry 2025-11-22 17:06:15 +00:00
config.go Add mutex protection for config watcher reloads (re #748) 2025-11-24 07:45:21 +00:00
credentials.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
docker_metadata.go Clarify Docker agent cycling troubleshooting for cloned VMs/LXCs (related to #648) 2025-11-07 22:59:19 +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 Improve backup-age alerts to show VM/CT names in multi-cluster setups (related to #668) 2025-11-08 18:24:04 +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 Related to #727: normalize persisted Proxmox hosts 2025-11-20 19:58:05 +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
registration.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
watcher.go Add mutex protection for config watcher reloads (re #748) 2025-11-24 07:45:21 +00:00