Pulse/internal
rcourtman 7d0bbaf961 WIP: Fix temperature proxy registration persistence (incomplete)
This commit contains multiple fixes for temperature proxy registration,
but the core issue remains unresolved.

## What's Fixed:
1. Added config pointer and reloadFunc to TemperatureProxyHandlers
2. Added SetConfig method to keep handler in sync with router config changes
3. Added config reload after registration to prevent monitor from overwriting
4. Fixed installer port conflict detection and duplicate YAML key issues
5. Added comprehensive debug logging throughout registration flow

## What's Still Broken:
The TemperatureProxyURL, TemperatureProxyToken, and TemperatureProxyControlToken
fields are NOT persisting to nodes.enc after SaveNodesConfig is called.

Debug logs confirm:
- HandleRegister correctly updates nodesConfig.PVEInstances[matchedIndex]
- The correct data is passed to SaveNodesConfig (verified in logs)
- SaveNodesConfig completes without errors
- Config reload executes successfully
- BUT after Pulse restart, the fields are empty when loaded from disk

The bug is in SaveNodesConfig serialization or file writing logic itself.

Related files:
- internal/api/temperature_proxy.go: Registration handler
- internal/config/persistence.go: SaveNodesConfig implementation
- internal/config/config.go: PVEInstance struct definition
2025-11-19 20:12:19 +00:00
..
alerts feat: Add mdadm RAID monitoring support for host agents 2025-11-09 16:36:33 +00:00
api WIP: Fix temperature proxy registration persistence (incomplete) 2025-11-19 20:12:19 +00:00
auth Fix config backup/restore by enforcing 12-char minimum password (related to #646) 2025-11-07 22:51:55 +00:00
config feat: make PVE polling interval configurable (related to #467) 2025-11-18 21:30:04 +00:00
crypto Harden setup token flow and enforce encrypted persistence 2025-10-25 16:00:37 +00:00
discovery Fix discovery test Prometheus metric collision 2025-11-11 23:34:49 +00:00
dockeragent Fix critical version embedding issues for 4.26 release 2025-11-06 11:42:52 +00:00
errors Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
hostagent feat: Add mdadm RAID monitoring support for host agents 2025-11-09 16:36:33 +00:00
hostmetrics fix(hostmetrics): dedupe ZFS pools for usable storage 2025-11-18 23:38:11 +00:00
logging feat: comprehensive diagnostics and observability improvements 2025-10-21 12:37:39 +00:00
mdadm feat: Add mdadm RAID monitoring support for host agents 2025-11-09 16:36:33 +00:00
metrics Add comprehensive alert system reliability improvements 2025-11-06 16:46:30 +00:00
mock Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
models feat: Add mdadm RAID monitoring support for host agents 2025-11-09 16:36:33 +00:00
monitoring feat: avoid redundant PBS snapshot polling (Related to #717) 2025-11-18 23:10:43 +00:00
notifications Add release dry run workflow and API update integration test 2025-11-12 21:02:52 +00:00
sensors feat: Add temperature collection to pulse-host-agent (related to #661) 2025-11-07 22:54:40 +00:00
ssh/knownhosts feat(security): Add SSH output limits and improve host key management 2025-11-07 17:09:02 +00:00
system Add Docker container name auto-detection to bootstrap UI 2025-11-15 10:45:00 +00:00
tempproxy Improve temperature proxy workflow 2025-11-17 14:25:46 +00:00
types Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
updates Improve update procedure tracking 2025-11-15 16:43:42 +00:00
utils Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
websocket Fix P1: Add shutdown mechanism to WebSocket Hub 2025-11-07 10:20:26 +00:00