Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Stop fabricating ledger agent rows for integration-monitored machines
rcourtman9e8bcd23fe5f
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex d7b46eb662..0dff60b53e 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -1957,11 +1957,17 @@ Agent` secondary handoff against the live setup wizard instead of relying### Agent Doctor covers exactly the Pulse Agent fleet-Agent Doctor target collection-(`collectInfrastructureAgentDoctorTargets`) excludes ledger agent connections-that carry `integrationSource` — integration-monitored machines (vSphere ESXi-hosts, TrueNAS boxes) have no Pulse Agent to diagnose and previously rendered-as permanent "Unknown / no structured reason" rows. In the other direction,+The connections ledger no longer fabricates agent-type rows for+integration-monitored machines at all (`buildConnections` skips hosts with a+non-empty `IntegrationSource`), so vSphere ESXi hosts and TrueNAS boxes no+longer appear under "Pulse Agent hosts" in Infrastructure settings — their+owning platform connection is the source representation, and per-machine+visibility stays on the platform pages and Machines. Agent Doctor target+collection (`collectInfrastructureAgentDoctorTargets`) additionally excludes+any ledger agent connection that carries `integrationSource` as+defense-in-depth — integration-monitored machines have no Pulse Agent to+diagnose and previously rendered as permanent "Unknown / no structured+reason" rows. In the other direction,structured fleet diagnostics that have no ledger binding (agents reportingonly workload telemetry, e.g. Docker-only or Kubernetes-only agents) are nowappended as diagnostics-only targets, honoring the scoped-agent filter, so adiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex b1fd91f43e..28467b3535 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -3500,19 +3500,26 @@ returning prompts, tool transcripts, credentials, or infrastructure data.## Current State-### Connections ledger declares integration-monitored machines--Agent-type rows in `GET /api/connections` carry an optional-`integrationSource` string ("vmware", "truenas", ...) when the underlying-unified host resource has no `SourceAgent` ingest — i.e. the machine's-telemetry comes from a platform integration, not a Pulse Agent. The field is-omitted (never empty-string) for real Pulse Agents, so existing agent payload-shapes are unchanged. Agent-only client workflows (Agent Doctor target-collection, host-local update commands) must skip rows with a value; ledger-membership itself is unchanged so machine surfaces keep rendering these rows.-Update readiness follows the same rule: the `agent-continuity`,-`agent-migration-security`, and agent-token checks count only-non-integration-backed hosts as registered agents.+### Connections ledger excludes integration-monitored machines++The ledger does not fabricate agent-type rows for unified host resources+whose telemetry comes from a platform integration rather than a Pulse Agent+(`models.Host.IntegrationSource` non-empty, e.g. "vmware", "truenas"):+`buildConnections` skips them, so `GET /api/connections` and the grouped+systems list represent those machines solely through their owning platform+connection (the vCenter or TrueNAS source row), and connected-system counts+no longer include them. These rows previously rendered as unmanageable+standalone entries under "Pulse Agent hosts" — they can never attach to their+platform system because attachment requires a shared host, and they carry no+credentials, pause, or remove semantics of their own. Per-machine visibility+stays on the platform pages and Machines, which read the unified fabric+directly. The `Connection.integrationSource` field remains declared as+defense-in-depth: any row carrying a value must be skipped by agent-only+client workflows (Agent Doctor target collection, host-local update+commands), and it is omitted (never empty-string) for real Pulse Agents so+agent payload shapes are unchanged. Update readiness follows the same rule:+the `agent-continuity`, `agent-migration-security`, and agent-token checks+count only non-integration-backed hosts as registered agents.### Action execution revalidates live readinessdiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex d946aa3fca..f081c0424a 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -1840,10 +1840,12 @@ that Safe auto-fix or Autopilot remediation is verified.### Connection integration provenance is telemetry-only evidence-The connections ledger's `integrationSource` field (set on agent-type rows-whose host telemetry comes from a platform integration such as vSphere or-TrueNAS rather than a Pulse Agent) is host-telemetry provenance only. Storage-and recovery surfaces must not read it as evidence about backup coverage,+The connections ledger's `integrationSource` discriminator (host telemetry+supplied by a platform integration such as vSphere or TrueNAS rather than a+Pulse Agent) is host-telemetry provenance only, and the ledger now drops+agent-type rows for such machines entirely — they are represented by their+owning platform connection. Storage and recovery surfaces must not read the+presence or absence of these ledger rows as evidence about backup coverage,protection posture, restore chains, or recoverability, and the updatereadiness change that excludes integration-backed machines fromregistered-agent counts does not alter any Recovery Assurance domain:diff --git a/internal/api/connections_aggregator.go b/internal/api/connections_aggregator.goindex 7dfc62ac0a..ec95210476 100644--- a/internal/api/connections_aggregator.go+++ b/internal/api/connections_aggregator.go@@ -144,6 +144,13 @@ func buildConnections(in aggregatorInputs) []Connection {out = append(out, buildAvailabilityConnection(target, in.availabilityStatuses[target.ID], now))}for _, host := range in.hosts {+ // Integration-monitored machines (vSphere ESXi hosts, TrueNAS boxes)+ // are represented by their owning platform connection; fabricating an+ // agent row for them would list machines with no Pulse Agent under+ // agent-only surfaces and inflate connected-system counts.+ if strings.TrimSpace(host.IntegrationSource) != "" {+ continue+ }desiredConfig := connectionAgentDesiredConfigForHost(in.agentDesiredConfigs, host.ID)out = append(out, buildAgentConnection(host, in.expectedAgentVersion, now, desiredConfig))}diff --git a/internal/api/contract_test.go b/internal/api/contract_test.goindex cafc31635b..8b2dedffff 100644--- a/internal/api/contract_test.go+++ b/internal/api/contract_test.go@@ -15459,47 +15459,50 @@ func TestContract_AgentConnectionPayloadIncludesVersionFields(t *testing.T) {assertJSONSnapshot(t, body, want)}-// integrationSource marks ledger agent rows whose telemetry comes from a-// platform integration rather than a Pulse Agent. It must serialize when set-// and stay entirely absent for real agents so existing payloads keep shape.-func TestContract_AgentConnectionPayloadDeclaresIntegrationSource(t *testing.T) {- host := models.Host{- ID: "vc-1:host:host-101",- Hostname: "esxi-01.lab.local",- Platform: "vmware-vsphere",- Status: "online",- LastSeen: time.Date(2026, 7, 21, 12, 0, 0, 0, time.UTC),- IntervalSeconds: 60,- IntegrationSource: "vmware",- }- conn := buildAgentConnection(host, "6.1.0", host.LastSeen.Add(30*time.Second), nil)- if conn.IntegrationSource != "vmware" {- t.Fatalf("expected integration source %q on connection, got %q", "vmware", conn.IntegrationSource)- }- body, err := json.Marshal(conn)- if err != nil {- t.Fatalf("marshal integration-backed agent Connection: %v", err)+// Integration-monitored machines (models.Host.IntegrationSource != "") must+// not fabricate ledger agent rows: their owning platform connection is the+// source representation. Real Pulse-Agent hosts keep their rows, whose+// payloads never carry integrationSource, so existing shapes are unchanged.+func TestContract_LedgerDropsIntegrationMonitoredMachines(t *testing.T) {+ now := time.Date(2026, 7, 21, 12, 0, 30, 0, time.UTC)+ connections := buildConnections(aggregatorInputs{+ hosts: []models.Host{+ {+ ID: "vc-1:host:host-101",+ Hostname: "esxi-01.lab.local",+ Platform: "vmware-vsphere",+ Status: "online",+ LastSeen: now.Add(-30 * time.Second),+ IntervalSeconds: 60,+ IntegrationSource: "vmware",+ },+ {+ ID: "host-linux-1",+ Hostname: "apollo-114",+ Platform: "linux",+ Status: "online",+ AgentVersion: "6.1.0",+ LastSeen: now.Add(-30 * time.Second),+ IntervalSeconds: 60,+ },+ },+ expectedAgentVersion: "6.1.0",+ now: now,+ })++ if len(connections) != 1 {+ t.Fatalf("expected only the Pulse-Agent host to produce a ledger row, got %d rows", len(connections))}- if !strings.Contains(string(body), `"integrationSource":"vmware"`) {- t.Fatalf("expected integrationSource in payload, got %s", body)+ if connections[0].ID != "agent:host-linux-1" {+ t.Fatalf("expected the agent-backed row to survive, got %q", connections[0].ID)}- agentHost := models.Host{- ID: "host-linux-1",- Hostname: "apollo-114",- Platform: "linux",- Status: "online",- AgentVersion: "6.1.0",- LastSeen: time.Date(2026, 7, 21, 12, 0, 0, 0, time.UTC),- IntervalSeconds: 60,- }- agentConn := buildAgentConnection(agentHost, "6.1.0", agentHost.LastSeen.Add(30*time.Second), nil)- agentBody, err := json.Marshal(agentConn)+ body, err := json.Marshal(connections[0])if err != nil {t.Fatalf("marshal agent-backed Connection: %v", err)}- if strings.Contains(string(agentBody), "integrationSource") {- t.Fatalf("expected integrationSource omitted for Pulse-Agent rows, got %s", agentBody)+ if strings.Contains(string(body), "integrationSource") {+ t.Fatalf("expected integrationSource omitted for Pulse-Agent rows, got %s", body)}}