Files
Pulse/internal/api
rcourtman 92f1b83b0b Keep LXC Docker probes on the guest's own node
Docker discovery runs trusted pct exec commands through an agent on the
Proxmox node, and looked that agent up by node name alone. If a second
connection had a node of the same name, a guest there was probed through
the other machine's agent: pct exec read a different machine's guest under
that VMID and the answer landed on the wrong guest (#2681).

Commands now go only to the agent whose link monitoring holds on both sides
for the guest's node on its connection, using the resolver temperature
readings already use, so one machine added through two connections still
counts as one node. A guest with no proven agent is skipped without feeding
the failure backoff or the node breaker, and the next poll decides again.

The session lookup checks agent ID and hostname. A session bound to an
earlier ID may be found through its token, but only when no agent of an
equivalent hostname shares it: the command server admits one session per
hostname, so a second machine must not borrow the first one's.

The circuit breaker is now keyed by connection and node, so a failing node
no longer stops probes on a same-named node elsewhere.

One setup changes: a node reached through an address its agent does not
report (NAT, an IP proxy) loses its automatic link on every node poll, which
is the same evidence a different machine of that name would give. Its guests
are now skipped until the agent is linked manually, and the server logs why
once.
2026-11-04 16:06:08 +00:00
..
2026-10-11 22:20:25 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-08-31 19:47:01 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-04-26 17:26:16 +01:00
2026-01-22 00:30:15 +00:00
2026-10-11 22:20:25 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-09-01 01:02:17 +01:00
2026-03-18 16:06:30 +00:00

Internal API Package

This directory contains the API server implementation for Pulse.

Important Note About frontend-modern/

The frontend-modern/ subdirectory that appears here is:

  • AUTO-GENERATED during builds
  • NOT the source code - just a build artifact
  • IN .gitignore - never committed
  • REQUIRED BY GO - The embed directive needs it here

Frontend Development Location

👉 Edit frontend files at: ${PULSE_REPOS_DIR}/pulse/frontend-modern/src/

Why This Structure?

Go's //go:embed directive has limitations:

  1. Cannot use ../ paths to access parent directories
  2. Cannot follow symbolic links
  3. Must embed files within the Go module

This is a known Go limitation and our structure works around it.