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
Remove dead cloud raw signals field
rcourtmane536c635bf44
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex d76ba56cce..1a8370e60d 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -115,9 +115,9 @@ uses for export boundaries instead of rebuilding privacy posture locally.The same shared policy presenter also owns the `Allowed`/`Blocked` routingdecision labels shown in the resource drawer, so the policy state wordingstays canonical instead of being rendered inline by the consumer.-That same presenter also owns the drawer's `Cloud Summary` and `Raw Signals`-routing rows, so the AI-facing resource policy view does not rebuild the row-layout or decision labels locally.+That same presenter also owns the drawer's `Cloud Summary` routing row, so+the AI-facing resource policy view does not rebuild the row layout or+decision labels locally.That same policy boundary now applies to chat structured-mention prefetch andresource-summary formatting: mention resolution must consume canonicalunified-resource policy metadata, skip discovery fan-out when governeddiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 173a478a00..241b138f7a 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -170,6 +170,9 @@ The shared unified-resource consumer hook now also preserves `recentChanges`,surfaces read unified resources, so those pages see the same control-planetimeline facets and recent-change totals as the dedicated resource drawerinstead of flattening them away locally.+That shared policy payload now remains intentionally minimal as well: storage+and recovery consumers should expect only routing scope, `allowCloudSummary`,+and redaction hints, not a raw-signals routing flag.The same storage-facing runtime paths now also normalize org scope through`frontend-modern/src/utils/orgScope.ts` before building cache keys ormulti-tenant fetch state, so Dashboard, StorageSummary, and other storagediff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 7d8e793cdd..20f48a940c 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -138,6 +138,10 @@ rendered inline by the drawer.That same helper also owns the drawer's `Cloud Summary` routing row, so thedetail view no longer reconstructs the row structure or decision labellocally.+The shared routing policy itself now stays intentionally minimal: it carries+only the routing scope, `allowCloudSummary`, and the redaction hints derived+from canonical sensitivity, so the old raw-signals flag no longer appears in+the owned resource-policy contract.The backend AI and Patrol correlation context renderers now derive their canonicalrelationship labels, direction, provenance, freshness, and metadata flagsfrom `internal/unifiedresources/relationship_presentation.go`, so the correlationdiff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsxindex 1078fd7b97..4eafa26f11 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx@@ -296,7 +296,6 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {routing: {scope: 'local-only',allowCloudSummary: false,- allowCloudRawSignals: false,redact: ['hostname', 'ip-address', 'alias'],},},@@ -309,7 +308,7 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {expect(getAllByText('Local Only').length).toBeGreaterThan(0);expect(getByText('Data Governance')).toBeInTheDocument();expect(getByText('Cloud Summary')).toBeInTheDocument();- expect(getAllByText('Blocked').length).toBe(2);+ expect(getAllByText('Blocked').length).toBe(1);expect(getByText('Redactions')).toBeInTheDocument();expect(getByText('Hostname')).toBeInTheDocument();expect(getByText('IP Address')).toBeInTheDocument();diff --git a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsxindex ce14767aeb..d9df82eef8 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx@@ -340,7 +340,6 @@ describe('UnifiedResourceTable performance contract', () => {routing: {scope: i % 3 === 0 ? 'local-only' : 'local-first',allowCloudSummary: i % 3 !== 0,- allowCloudRawSignals: false,redact: ['hostname', 'alias'],},},diff --git a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.policy-governance.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.policy-governance.test.tsxindex bee019278f..71055f4b8e 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.policy-governance.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.policy-governance.test.tsx@@ -42,7 +42,6 @@ const resource: Resource = {routing: {scope: 'local-only',allowCloudSummary: false,- allowCloudRawSignals: false,redact: ['hostname', 'alias'],},},diff --git a/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts b/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.tsindex 0f56c5d66e..cf748bfa04 100644--- a/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts+++ b/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts@@ -284,7 +284,6 @@ describe('useUnifiedResources', () => {routing: {scope: 'local-only',allowCloudSummary: false,- allowCloudRawSignals: false,redact: ['hostname', 'ip-address', 'platform-id', 'alias'],},},@@ -304,13 +303,12 @@ describe('useUnifiedResources', () => {await result!.refetch();expect(result!.resources()[0].policy).toEqual({sensitivity: 'restricted',- routing: {- scope: 'local-only',- allowCloudSummary: false,- allowCloudRawSignals: false,- redact: ['hostname', 'ip-address', 'platform-id', 'alias'],- },- });+ routing: {+ scope: 'local-only',+ allowCloudSummary: false,+ redact: ['hostname', 'ip-address', 'platform-id', 'alias'],+ },+ });expect(result!.resources()[0].aiSafeSummary).toBe('resource summary safe for remote AI use');dispose();diff --git a/frontend-modern/src/hooks/useUnifiedResources.ts b/frontend-modern/src/hooks/useUnifiedResources.tsindex d16160865a..303173105b 100644--- a/frontend-modern/src/hooks/useUnifiedResources.ts+++ b/frontend-modern/src/hooks/useUnifiedResources.ts@@ -373,7 +373,6 @@ type APIResource = {routing?: {scope?: string;allowCloudSummary?: boolean;- allowCloudRawSignals?: boolean;redact?: string[];};};diff --git a/frontend-modern/src/types/__tests__/resource.test.ts b/frontend-modern/src/types/__tests__/resource.test.tsindex da8e89122d..cbeb1f9790 100644--- a/frontend-modern/src/types/__tests__/resource.test.ts+++ b/frontend-modern/src/types/__tests__/resource.test.ts@@ -284,7 +284,6 @@ describe('Resource Interface', () => {routing: {scope: 'local-only',allowCloudSummary: false,- allowCloudRawSignals: false,redact: ['hostname', 'ip-address', 'platform-id', 'alias'],},},diff --git a/frontend-modern/src/types/resource.ts b/frontend-modern/src/types/resource.tsindex 4cd832403e..7584285bdc 100644--- a/frontend-modern/src/types/resource.ts+++ b/frontend-modern/src/types/resource.ts@@ -129,7 +129,6 @@ export type ResourceRedactionHint = 'hostname' | 'ip-address' | 'platform-id' |export interface ResourceRoutingPolicy {scope: ResourceRoutingScope;allowCloudSummary: boolean;- allowCloudRawSignals: boolean;redact?: ResourceRedactionHint[];}diff --git a/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts b/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.tsindex c60e306878..724a38142f 100644--- a/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts@@ -31,7 +31,6 @@ describe('resourcePolicyPresentation utils', () => {routing: {scope: 'local-first',allowCloudSummary: true,- allowCloudRawSignals: false,redact: ['hostname', 'ip-address'],},}),@@ -45,7 +44,6 @@ describe('resourcePolicyPresentation utils', () => {routing: {scope: 'local-first',allowCloudSummary: true,- allowCloudRawSignals: false,redact: [],},}),diff --git a/internal/ai/chat/context_prefetch_additional_test.go b/internal/ai/chat/context_prefetch_additional_test.goindex 5d03c623ed..497e4ac46c 100644--- a/internal/ai/chat/context_prefetch_additional_test.go+++ b/internal/ai/chat/context_prefetch_additional_test.go@@ -436,9 +436,8 @@ func TestContextPrefetcher_FormatContextSummary_GovernedMention(t *testing.T) {Policy: &unifiedresources.ResourcePolicy{Sensitivity: unifiedresources.ResourceSensitivityRestricted,Routing: unifiedresources.ResourceRoutingPolicy{- Scope: unifiedresources.ResourceRoutingScopeLocalOnly,- AllowCloudSummary: false,- AllowCloudRawSignals: false,+ Scope: unifiedresources.ResourceRoutingScopeLocalOnly,+ AllowCloudSummary: false,Redact: []unifiedresources.ResourceRedactionHint{unifiedresources.ResourceRedactionAlias,unifiedresources.ResourceRedactionHostname,@@ -480,9 +479,8 @@ func TestContextPrefetcher_FormatContextSummary_UsesSharedGovernedBlockFormatterPolicy: &unifiedresources.ResourcePolicy{Sensitivity: unifiedresources.ResourceSensitivityRestricted,Routing: unifiedresources.ResourceRoutingPolicy{- Scope: unifiedresources.ResourceRoutingScopeLocalOnly,- AllowCloudSummary: false,- AllowCloudRawSignals: false,+ Scope: unifiedresources.ResourceRoutingScopeLocalOnly,+ AllowCloudSummary: false,Redact: []unifiedresources.ResourceRedactionHint{unifiedresources.ResourceRedactionAlias,unifiedresources.ResourceRedactionHostname,@@ -496,9 +494,8 @@ func TestContextPrefetcher_FormatContextSummary_UsesSharedGovernedBlockFormatter&unifiedresources.ResourcePolicy{Sensitivity: unifiedresources.ResourceSensitivityRestricted,Routing: unifiedresources.ResourceRoutingPolicy{- Scope: unifiedresources.ResourceRoutingScopeLocalOnly,- AllowCloudSummary: false,- AllowCloudRawSignals: false,+ Scope: unifiedresources.ResourceRoutingScopeLocalOnly,+ AllowCloudSummary: false,Redact: []unifiedresources.ResourceRedactionHint{unifiedresources.ResourceRedactionAlias,unifiedresources.ResourceRedactionHostname,diff --git a/internal/ai/chat/knowledge_extractor_test.go b/internal/ai/chat/knowledge_extractor_test.goindex be64cbad9c..9b9210dec1 100644--- a/internal/ai/chat/knowledge_extractor_test.go+++ b/internal/ai/chat/knowledge_extractor_test.go@@ -104,7 +104,7 @@ func TestExtractFacts_QueryGet_NoCPU(t *testing.T) {func TestExtractFacts_QueryGet_UsesGovernedSummary(t *testing.T) {input := map[string]interface{}{"action": "get", "resource_type": "vm", "resource_id": "100"}- result := `{"type":"vm","name":"finance-vm","status":"running","node":"node1.internal","id":"qemu/pve1/node1/100","vmid":100,"policy":{"sensitivity":"sensitive","routing":{"scope":"local-first","allowCloudSummary":true,"allowCloudRawSignals":false,"redact":["hostname","platform-id","alias"]}},"ai_safe_summary":"virtual machine resource; status running; redacted for cloud summary","cpu":{"percent":2.5,"cores":4},"memory":{"percent":45.0,"used_gb":1.2,"total_gb":4.0}}`+ result := `{"type":"vm","name":"finance-vm","status":"running","node":"node1.internal","id":"qemu/pve1/node1/100","vmid":100,"policy":{"sensitivity":"sensitive","routing":{"scope":"local-first","allowCloudSummary":true,"redact":["hostname","platform-id","alias"]}},"ai_safe_summary":"virtual machine resource; status running; redacted for cloud summary","cpu":{"percent":2.5,"cores":4},"memory":{"percent":45.0,"used_gb":1.2,"total_gb":4.0}}`facts := ExtractFacts("pulse_query", input, result)require.Len(t, facts, 2)@@ -137,7 +137,7 @@ func TestExtractFacts_QuerySearch_Empty(t *testing.T) {func TestExtractFacts_QuerySearch_UsesGovernedSummary(t *testing.T) {input := map[string]interface{}{"action": "search", "query": "finance"}- result := `{"query":"finance","matches":[{"name":"finance-vm","status":"running","type":"vm","policy":{"sensitivity":"sensitive","routing":{"scope":"local-first","allowCloudSummary":true,"allowCloudRawSignals":false,"redact":["hostname","platform-id","alias"]}},"ai_safe_summary":"virtual machine resource; status running; redacted for cloud summary"}],"total":1}`+ result := `{"query":"finance","matches":[{"name":"finance-vm","status":"running","type":"vm","policy":{"sensitivity":"sensitive","routing":{"scope":"local-first","allowCloudSummary":true,"redact":["hostname","platform-id","alias"]}},"ai_safe_summary":"virtual machine resource; status running; redacted for cloud summary"}],"total":1}`facts := ExtractFacts("pulse_query", input, result)require.Len(t, facts, 1)@@ -468,7 +468,7 @@ func TestExtractFacts_QueryTopology(t *testing.T) {func TestExtractFacts_QueryTopology_UsesGovernedSummary(t *testing.T) {input := map[string]interface{}{"action": "topology"}- result := `{"summary":{"total_nodes":1,"total_vms":1,"running_vms":1,"total_system_containers":0,"running_containers":0,"total_docker_hosts":0},"proxmox":{"nodes":[{"name":"finance-node.internal","status":"online","policy":{"sensitivity":"sensitive","routing":{"scope":"local-first","allowCloudSummary":true,"allowCloudRawSignals":false,"redact":["hostname","platform-id","alias"]}},"ai_safe_summary":"agent resource; status online; redacted for cloud summary"}]}}`+ result := `{"summary":{"total_nodes":1,"total_vms":1,"running_vms":1,"total_system_containers":0,"running_containers":0,"total_docker_hosts":0},"proxmox":{"nodes":[{"name":"finance-node.internal","status":"online","policy":{"sensitivity":"sensitive","routing":{"scope":"local-first","allowCloudSummary":true,"redact":["hostname","platform-id","alias"]}},"ai_safe_summary":"agent resource; status online; redacted for cloud summary"}]}}`facts := ExtractFacts("pulse_query", input, result)require.Len(t, facts, 1)@@ -967,7 +967,7 @@ func TestExtractFacts_QueryConfig_VM(t *testing.T) {func TestExtractFacts_QueryConfig_UsesGovernedSummary(t *testing.T) {input := map[string]interface{}{"action": "config", "resource_id": "106", "node": "pve-node"}- result := `{"guest_type":"lxc","vmid":106,"name":"postfix-server","node":"pve-node","hostname":"postfix.internal","os_type":"ubuntu","policy":{"sensitivity":"sensitive","routing":{"scope":"local-first","allowCloudSummary":true,"allowCloudRawSignals":false,"redact":["hostname","platform-id","alias"]}},"ai_safe_summary":"system container resource; status online; linked to parent resource; redacted for cloud summary","onboot":true,"mounts":[{"key":"mp0","mountpoint":"/data"}]}`+ result := `{"guest_type":"lxc","vmid":106,"name":"postfix-server","node":"pve-node","hostname":"postfix.internal","os_type":"ubuntu","policy":{"sensitivity":"sensitive","routing":{"scope":"local-first","allowCloudSummary":true,"redact":["hostname","platform-id","alias"]}},"ai_safe_summary":"system container resource; status online; linked to parent resource; redacted for cloud summary","onboot":true,"mounts":[{"key":"mp0","mountpoint":"/data"}]}`facts := ExtractFacts("pulse_query", input, result)require.Len(t, facts, 2)diff --git a/internal/ai/resource_context_test.go b/internal/ai/resource_context_test.goindex 332471276c..4466f699bc 100644--- a/internal/ai/resource_context_test.go+++ b/internal/ai/resource_context_test.go@@ -377,9 +377,8 @@ func TestResourcePolicyHelpersShareAISafeSummaryDecision(t *testing.T) {policy := &unifiedresources.ResourcePolicy{Sensitivity: unifiedresources.ResourceSensitivitySensitive,Routing: unifiedresources.ResourceRoutingPolicy{- Scope: unifiedresources.ResourceRoutingScopeLocalFirst,- AllowCloudSummary: true,- AllowCloudRawSignals: false,+ Scope: unifiedresources.ResourceRoutingScopeLocalFirst,+ AllowCloudSummary: true,Redact: []unifiedresources.ResourceRedactionHint{unifiedresources.ResourceRedactionHostname,unifiedresources.ResourceRedactionIPAddress,diff --git a/internal/unifiedresources/code_standards_test.go b/internal/unifiedresources/code_standards_test.goindex cd01944967..bdb32044df 100644--- a/internal/unifiedresources/code_standards_test.go+++ b/internal/unifiedresources/code_standards_test.go@@ -259,6 +259,24 @@ func TestResourceAPIExposesDedicatedFacetReads(t *testing.T) {}}+func TestResourcePolicySummaryContractOmitsRawSignals(t *testing.T) {+ policy := ResourcePolicy{+ Sensitivity: ResourceSensitivityRestricted,+ Routing: ResourceRoutingPolicy{+ Scope: ResourceRoutingScopeLocalOnly,+ AllowCloudSummary: false,+ Redact: []ResourceRedactionHint{+ ResourceRedactionHostname,+ },+ },+ }++ summary := strings.Join(ResourcePolicySummaryLines(&policy), "\n")+ if strings.Contains(summary, "Raw Signals") || strings.Contains(summary, "allowCloudRawSignals") {+ t.Fatalf("resource policy summary leaked raw-signals wording: %q", summary)+ }+}+func TestResourceChangeFilterParsingIsOwnedByUnifiedResources(t *testing.T) {requiredSnippets := map[string][]string{filepath.Join(".", "change_filters.go"): {diff --git a/internal/unifiedresources/policy_metadata.go b/internal/unifiedresources/policy_metadata.goindex 343ab39687..547550b617 100644--- a/internal/unifiedresources/policy_metadata.go+++ b/internal/unifiedresources/policy_metadata.go@@ -44,10 +44,9 @@ type ResourcePolicy struct {// ResourceRoutingPolicy captures the current routing posture for AI-safe handling.type ResourceRoutingPolicy struct {- Scope ResourceRoutingScope `json:"scope"`- AllowCloudSummary bool `json:"allowCloudSummary"`- AllowCloudRawSignals bool `json:"allowCloudRawSignals"`- Redact []ResourceRedactionHint `json:"redact,omitempty"`+ Scope ResourceRoutingScope `json:"scope"`+ AllowCloudSummary bool `json:"allowCloudSummary"`+ Redact []ResourceRedactionHint `json:"redact,omitempty"`}// CloneResourcePolicy returns a deep copy of the canonical resource policy.@@ -144,9 +143,7 @@ func classifyResourceSensitivity(resource Resource) ResourceSensitivity {}func buildResourceRoutingPolicy(resource Resource, sensitivity ResourceSensitivity) ResourceRoutingPolicy {- policy := ResourceRoutingPolicy{- AllowCloudRawSignals: false,- }+ policy := ResourceRoutingPolicy{}switch sensitivity {case ResourceSensitivityPublic, ResourceSensitivityInternal:diff --git a/internal/unifiedresources/policy_metadata_test.go b/internal/unifiedresources/policy_metadata_test.goindex 84cf238646..1164c9a652 100644--- a/internal/unifiedresources/policy_metadata_test.go+++ b/internal/unifiedresources/policy_metadata_test.go@@ -1,6 +1,9 @@package unifiedresources-import "testing"+import (+ "strings"+ "testing"+)func TestRefreshPolicyMetadata_ClassifiesRestrictedResources(t *testing.T) {resource := Resource{@@ -74,9 +77,6 @@ func TestRefreshPolicyMetadata_ClassifiesInfrastructureAsInternal(t *testing.T)if !resource.Policy.Routing.AllowCloudSummary {t.Fatal("expected internal resource to allow cloud summary")}- if resource.Policy.Routing.AllowCloudRawSignals {- t.Fatal("expected raw signals to remain local")- }}func TestRefreshCanonicalMetadata(t *testing.T) {@@ -259,9 +259,8 @@ func TestResourcePolicySummaryLines(t *testing.T) {policy := &ResourcePolicy{Sensitivity: ResourceSensitivityRestricted,Routing: ResourceRoutingPolicy{- Scope: ResourceRoutingScopeLocalOnly,- AllowCloudSummary: false,- AllowCloudRawSignals: false,+ Scope: ResourceRoutingScopeLocalOnly,+ AllowCloudSummary: false,Redact: []ResourceRedactionHint{ResourceRedactionAlias,ResourceRedactionHostname,@@ -317,9 +316,8 @@ func TestResourcePolicyRedactsAndUsesAISafeSummary(t *testing.T) {policy := &ResourcePolicy{Sensitivity: ResourceSensitivitySensitive,Routing: ResourceRoutingPolicy{- Scope: ResourceRoutingScopeLocalFirst,- AllowCloudSummary: true,- AllowCloudRawSignals: false,+ Scope: ResourceRoutingScopeLocalFirst,+ AllowCloudSummary: true,Redact: []ResourceRedactionHint{ResourceRedactionHostname,ResourceRedactionIPAddress,@@ -457,9 +455,8 @@ func TestCloneResourcePolicy(t *testing.T) {original := &ResourcePolicy{Sensitivity: ResourceSensitivityRestricted,Routing: ResourceRoutingPolicy{- Scope: ResourceRoutingScopeLocalOnly,- AllowCloudSummary: false,- AllowCloudRawSignals: false,+ Scope: ResourceRoutingScopeLocalOnly,+ AllowCloudSummary: false,Redact: []ResourceRedactionHint{ResourceRedactionHostname,ResourceRedactionIPAddress,@@ -489,6 +486,21 @@ func TestCloneResourcePolicy(t *testing.T) {}}+func TestResourcePolicySummaryLinesOmitRawSignals(t *testing.T) {+ got := ResourcePolicySummaryLines(&ResourcePolicy{+ Sensitivity: ResourceSensitivityInternal,+ Routing: ResourceRoutingPolicy{+ Scope: ResourceRoutingScopeCloudSummary,+ AllowCloudSummary: true,+ },+ })++ joined := strings.Join(got, "\n")+ if strings.Contains(joined, "Raw Signals") || strings.Contains(joined, "allowCloudRawSignals") {+ t.Fatalf("policy summary leaked raw-signals wording: %q", joined)+ }+}+func containsRedactionHint(hints []ResourceRedactionHint, want ResourceRedactionHint) bool {for _, hint := range hints {if hint == want {