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
Keep disabled collection scopes intact when editing TLS trust
pulse-triage[bot]af1b1a48bd98
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 0123d98ca5..7e89468b08 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -15,6 +15,11 @@## Purpose+A trust edit round-trips explicit disabled PVE collection flags. It is not+permission to re-enable guest collection through a missing response field or+a new-connection default. `TestPVEEndpointTrustEditorPreservesDisabledCollectors`+checks this boundary.+### Managed Proxmox TLS edits do not provision agentsThe node editor's endpoint-scoped fingerprint edits and saved-credential testsdiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex f4e8a67daf..8c861bf851 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -21,6 +21,12 @@## Purpose+Existing PVE `monitorVMs`, `monitorContainers`, `monitorStorage` and+`monitorBackups` response fields include false values. Omitting a disabled+scope would make the editor substitute its new-connection defaults and enable+collectors during an unrelated trust save.+`TestPVEEndpointTrustEditorPreservesDisabledCollectors` verifies the round-trip.+### Scoped Proxmox trust edits and connection testsPVE updates accept `clusterEndpointTrustOverrides` entries containing andiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex cae657f95a..c4e31f84b6 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -21,6 +21,11 @@## Purpose+Disabled guest, storage and backup collection scopes remain disabled when a+trust edit is saved. Their false response values must survive the editor+round-trip rather than fall back to enabled new-connection defaults.+`TestPVEEndpointTrustEditorPreservesDisabledCollectors` verifies preservation.+### Proxmox TLS recovery preserves storage and guest stateReconciliation of saved API certificate trust is confined to the selecteddiff --git a/internal/api/configapi/config_handlers.go b/internal/api/configapi/config_handlers.goindex 33307f1be0..c71efe92da 100644--- a/internal/api/configapi/config_handlers.go+++ b/internal/api/configapi/config_handlers.go@@ -904,10 +904,10 @@ type NodeResponse struct {HasToken bool `json:"hasToken"`Fingerprint string `json:"fingerprint,omitempty"`VerifySSL bool `json:"verifySSL"`- MonitorVMs bool `json:"monitorVMs,omitempty"`- MonitorContainers bool `json:"monitorContainers,omitempty"`- MonitorStorage bool `json:"monitorStorage,omitempty"`- MonitorBackups bool `json:"monitorBackups,omitempty"`+ MonitorVMs bool `json:"monitorVMs"`+ MonitorContainers bool `json:"monitorContainers"`+ MonitorStorage bool `json:"monitorStorage"`+ MonitorBackups bool `json:"monitorBackups"`MonitorPhysicalDisks *bool `json:"monitorPhysicalDisks,omitempty"`PhysicalDiskPollingMinutes int `json:"physicalDiskPollingMinutes,omitempty"`TemperatureMonitoringEnabled *bool `json:"temperatureMonitoringEnabled,omitempty"`diff --git a/internal/api/configapi/config_handlers_connection_test.go b/internal/api/configapi/config_handlers_connection_test.goindex 573db58811..eec22819f9 100644--- a/internal/api/configapi/config_handlers_connection_test.go+++ b/internal/api/configapi/config_handlers_connection_test.go@@ -620,3 +620,30 @@ func TestPVEEndpointUnknownTrustProjection(t *testing.T) {t.Fatal("saved probe discarded explicit member CA policy")}}++func TestPVEEndpointTrustEditorPreservesDisabledCollectors(t *testing.T) {+ cfg := &config.Config{DataPath: t.TempDir(), PVEInstances: []config.PVEInstance{{Name: "scope", Host: "https://primary.test:8006", VerifySSL: true, IsCluster: true, ClusterEndpoints: []config.ClusterEndpoint{{NodeName: "primary", Host: "https://primary.test:8006"}}}}}+ h := &ConfigHandlers{defaultConfig: cfg, defaultPersistence: config.NewConfigPersistence(cfg.DataPath), runtime: defaultRuntimeDependencies()}+ data, err := json.Marshal(h.GetAllNodesForAPI(context.Background())[0])+ if err != nil {+ t.Fatal(err)+ }+ var wire map[string]any+ if err := json.Unmarshal(data, &wire); err != nil {+ t.Fatal(err)+ }+ for _, flag := range []string{"monitorVMs", "monitorContainers", "monitorStorage", "monitorBackups"} {+ if value, present := wire[flag]; !present || value != false {+ t.Fatalf("disabled %s omitted from editor response", flag)+ }+ }+ wire["fingerprint"] = "verified-new-pin"+ // Send the same complete collection-scope fields the editor round-trips.+ body, _ := json.Marshal(map[string]any{"fingerprint": wire["fingerprint"], "monitorVMs": wire["monitorVMs"], "monitorContainers": wire["monitorContainers"], "monitorStorage": wire["monitorStorage"], "monitorBackups": wire["monitorBackups"]})+ rec := httptest.NewRecorder()+ h.HandleUpdateNode(rec, httptest.NewRequest("PUT", "/api/config/nodes/pve-0", strings.NewReader(string(body))))+ saved := cfg.PVEInstances[0]+ if rec.Code != 200 || saved.MonitorVMs || saved.MonitorContainers || saved.MonitorStorage || saved.MonitorBackups || !saved.VerifySSL {+ t.Fatal("trust edit enabled an excluded collector")+ }+}