mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-02 10:09:02 +01:00
`/api/auto-register` completion picks a Proxmox connection's address by fetching a TLS certificate fingerprint from the request's host and its candidate addresses. This change reads the caller's authority before any of those fetches. - Setup tokens and install-grant holders still try every candidate, as before. - An agent token without an available install grant may change only the connection its spent grant recorded, so Pulse now contacts only a candidate spelled as that recorded address. Names are compared as written, not resolved. - The registration check makes no outbound connection and is unchanged. - Adds a regression test for the auto-register and auto-unregister parse-failure logs, which record the body size rather than the body. Tests: new cases in `internal/api/configapi/auto_register_probe_authority_test.go`. The two agent-token cases fail on the previous handler, and the log case fails if the body is logged again. The full `configapi` package and the `internal/api` auto-register tests pass.