mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-16 11:19:11 +00:00
When the agent is reinstalled on a Proxmox host, it rotates the PVE API token in Proxmox but the Pulse server's /api/setup-script-url endpoint requires settings:write scope — agent tokens only have agent:report — so the 401 aborted the update, leaving Pulse with a stale token and a disconnected PVE node. Three-part fix: - server: accept agent API tokens on /api/auto-register for updating existing nodes (new nodes still require setup-token auth) - agent: fall through instead of aborting when setup token fetch returns 4xx; send X-API-Token header so the server can authenticate via the agent token instead - update: allow HTTP auto-update URLs for RFC 1918 private network addresses (LAN installs without HTTPS no longer block auto-update) |
||
|---|---|---|
| .. | ||
| coverage_test.go | ||
| export_test.go | ||
| restart_unix.go | ||
| restart_windows.go | ||
| update.go | ||
| update_hostagent_integration_test.go | ||
| update_http_test.go | ||
| update_test.go | ||