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
Give the Docker-in-LXC opt-in an admin Settings toggle
rcourtmana4d37447a06c
diff --git a/docs/AGENT_SECURITY.md b/docs/AGENT_SECURITY.mdindex 6aa4a2c0ea..ef0137f4b5 100644--- a/docs/AGENT_SECURITY.md+++ b/docs/AGENT_SECURITY.md@@ -77,7 +77,7 @@ answers your monitoring question:| VM guest disk and memory details through QEMU Guest Agent | Use Proxmox API permissions such as `VM.GuestAgent.Audit` and `VM.GuestAgent.FileRead` where supported | No host agent for the Proxmox node || All mounted LXC filesystem capacities and usage | Install the Unified Agent on the owning PVE node; it automatically uses bounded `pct list` and `pct df` reads for running LXCs | Yes, on the PVE node || Docker/Podman containers inside a VM or LXC through guest-local reporting | Install the agent inside that VM/LXC with Docker/Podman monitoring enabled, or use another explicit guest access/reporting path | Usually requires root or Docker socket-equivalent access |-| Docker containers inside an LXC from a Proxmox host agent | Start Pulse with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`; optionally limit guests with `PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102` | Requires a root/equivalent Pulse agent on the Proxmox node and explicit server opt-in |+| Docker containers inside an LXC from a Proxmox host agent | Turn on **Discover Docker in LXC guests** in Settings → System → General (admin only), or start Pulse with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true` to lock it on; optionally limit guests with `PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102` | Requires a root/equivalent Pulse agent on the Proxmox node and explicit server opt-in || Host SMART, temperatures, local ZFS/Ceph/mdadm detail, arbitrary mount reads, and full host telemetry | Install the agent on that host | Yes, for the supported full-telemetry profile || Kubernetes node/pod monitoring from a cluster | Use the Kubernetes agent/DaemonSet profile | Depends on whether host metrics are enabled |@@ -93,8 +93,10 @@ guests reported stopped and bounds command time, output, guest count, and diskcount.The node agent can collect Docker container inventory from LXC guests-through `pct exec`, but only when the server is started with-`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`.+through `pct exec`, but only after an explicit server-side opt-in: the+admin-only **Discover Docker in LXC guests** toggle in Settings → System →+General, or starting the server with+`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true` (which locks the toggle).Inventory collection is disabled by default, can be VMID-allowlisted, and islimited to the Docker page summary path: Docker host/runtime version, containerID, name, image, state/status, ports, and aggregate `docker stats` counters.diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.mdindex 54fe050a03..a265ecec63 100644--- a/docs/CONFIGURATION.md+++ b/docs/CONFIGURATION.md@@ -328,7 +328,7 @@ When `allowEmbedding` is `false`, Pulse sends `X-Frame-Options: DENY` and `frame| `MAX_POLL_TIMEOUT` | Maximum time per polling cycle | `3m` || `PULSE_DISABLE_DOCKER_UPDATE_ACTIONS` | Hide Docker update buttons (read-only mode) | `false` || `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_DETECTION` | Allow Proxmox-side LXC Docker socket hinting with `pct exec` | `false` |-| `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY` | Allow Proxmox-side minimal LXC Docker inventory collection with `pct exec`; collects Docker host/container summary, not inspect/env/mount/process data | `false` |+| `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY` | Allow Proxmox-side minimal LXC Docker inventory collection with `pct exec`; collects Docker host/container summary, not inspect/env/mount/process data. Admins can also toggle this in Settings → System → General; setting the env var locks the toggle | `false` || `PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS` | Optional comma-separated VMID allowlist for Proxmox-side LXC Docker discovery; when set, only these guests are socket-probed and inventoried. Empty means all running LXCs are eligible when detection or inventory is enabled | *(unset)* || `PULSE_TELEMETRY` | Outbound usage telemetry ([details](PRIVACY.md)); set `false` to disable | `true` || `PULSE_DEPLOYMENT_METHOD` | Optional closed telemetry label: `docker_compose`, `docker_run`, `container_other`, `systemd`, `binary_other`, or `other`; invalid values are reported only as the safe runtime fallback | Inferred as `container_other` or `binary_other` |diff --git a/docs/UNIFIED_AGENT.md b/docs/UNIFIED_AGENT.mdindex 42ed53b551..f33e7a8722 100644--- a/docs/UNIFIED_AGENT.md+++ b/docs/UNIFIED_AGENT.md@@ -416,8 +416,10 @@ with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_DETECTION=true`. That hint uses`pct exec` only to check whether `/var/run/docker.sock` exists in a running LXC;it does not enumerate containers, images, environment variables, files, orprocesses. The stronger Proxmox-side LXC Docker inventory path is separately-disabled unless the server is started with-`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`. Use either path only when+disabled by default. An admin can turn it on with the **Discover Docker in+LXC guests** toggle in Settings → System → General, or the server can be+started with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`, which locks+the toggle to the environment value. Use either path only whenoperators are comfortable with Proxmox-side guest probing.## Installation Optionsdiff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 3fcf4a25d1..6322c57599 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -1076,8 +1076,10 @@ For PVE, that same setup guide must keep Docker inside Proxmox LXCs attachedto the Host Telemetry Agent path, not the default API Inventory path: APIInventory alone cannot run host-side guest Docker inventory, while the PVE HostTelemetry Agent command must explicitly request Pulse command execution and-explain the separate server-side `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY`-opt-in.+explain the separate server-side opt-in: the admin-only Discover Docker in LXC+guests toggle in Settings → System → General, or the+`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY` environment variable, which+overrides and locks the toggle when set.For existing Proxmox API sources, that same setup guide must expose thenon-destructive Audit/Repair rerun path before asking operators to rotatecredentials. Audit/Repair is the first lifecycle response to suspected setup@@ -5107,8 +5109,10 @@ augmentation is equivalent to a local agent install on that machine.Docker onboarding copy must also distinguish the standalone Docker / Podmaninstall path from Docker inside Proxmox LXCs: standalone runtimes use theDocker runtime profile on that host, while Proxmox LXC Docker inventory uses a-Proxmox VE node agent with command execution plus explicit server-side-`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`, and the copy may not imply+Proxmox VE node agent with command execution plus an explicit server-side+opt-in (the admin-only Settings toggle, or+`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true` which locks the toggle),+and the copy may not implythat installing an agent inside every LXC is required. The Docker empty state,infrastructure installer, and Proxmox node setup guide must all preserve thatsame distinction.diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex d8dc888f62..841ff0ea01 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,104 +1,62 @@{"version": 1,- "base_sha": "547afd2d17867d1be13797d6308c98284525456c",- "verified_at": "2026-08-19T20:01:48Z",+ "base_sha": "a64dd2f0052aa498e7e771466fc61a3055c77721",+ "verified_at": "2026-08-20T13:26:51Z","result": "passed","changed_paths": [- "frontend-modern/src/components/Settings/AuditLogPanel.tsx",- "frontend-modern/src/components/Storage/Storage.tsx",- "frontend-modern/src/components/Storage/StoragePageControls.tsx",- "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx",- "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx",- "frontend-modern/src/components/Workloads/useWorkloadUrlSync.ts",- "frontend-modern/src/components/Workloads/useWorkloadsState.ts",- "frontend-modern/src/components/Workloads/workloadsFilterModel.ts",- "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",- "frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx",- "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts",- "frontend-modern/src/components/shared/FilterBar/index.ts",- "frontend-modern/src/components/shared/FilterBar/useSavedViews.ts",- "frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx",- "frontend-modern/src/features/docker/DockerContainersTable.tsx",- "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx",- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",- "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx",- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx",- "frontend-modern/src/features/standalone/StandalonePageSurface.tsx",- "frontend-modern/src/features/vmware/VmwarePageSurface.tsx"+ "frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx",+ "frontend-modern/src/components/Settings/GuestDockerDiscoverySettingsCard.tsx",+ "frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx",+ "frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx",+ "frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx",+ "frontend-modern/src/components/Settings/useSystemSettingsState.ts",+ "frontend-modern/src/i18n/messages.de.ts",+ "frontend-modern/src/i18n/messages.es.ts",+ "frontend-modern/src/i18n/messages.ts",+ "frontend-modern/src/types/config.ts",+ "frontend-modern/src/utils/systemSettingsPresentation.ts"],"content_sha256": {- "frontend-modern/src/components/Settings/AuditLogPanel.tsx": "3ec47cffc5921365a789b05fbb9d2a9002974df2a6db1523ae71db061b124801",- "frontend-modern/src/components/Storage/Storage.tsx": "8d9a6b3f78b5b8d694a09aee18349f66fec81529f21e47d47053a024ac3dc52c",- "frontend-modern/src/components/Storage/StoragePageControls.tsx": "f4c7f06ec6fea2f2e34ded9908f79c90ae55d9bfc96674b8cfbaeb3181cccc2e",- "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx": "d639c27b017c6fa96ec431bbe841ebc38e6417d9a6c54a5d9ce32291c7455586",- "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx": "3a41bf1bd3bcc7f26e586ee150b40558532b9b2887463ae930ce7f08879ed33a",- "frontend-modern/src/components/Workloads/useWorkloadUrlSync.ts": "2e5b0e59bd204299483fe51ccc199859e2fc0f21d8122eb3a879a002bb14d594",- "frontend-modern/src/components/Workloads/useWorkloadsState.ts": "f6b491b4ab05333b933f2dfd6bdc099dba005a65e643b7cd7daba71750d3bc73",- "frontend-modern/src/components/Workloads/workloadsFilterModel.ts": "2db9b55b63d51ec1c802f5094fedbfcae48a2435370c704ab575611b9e5de393",- "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "050208432907f3d8792d20cf3b17513cf4c88d161514479904494770c2066f6c",- "frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx": "deleted",- "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts": "5452714b77d1351e4f85921411a64d4dde7152aa8a2aba2b489a8af7346a4e7c",- "frontend-modern/src/components/shared/FilterBar/index.ts": "66d9e1452cc370e8e1e0b7c3675daccf113479c49aff868b236eddadbc699a95",- "frontend-modern/src/components/shared/FilterBar/useSavedViews.ts": "deleted",- "frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx": "2915f7b24d8fed33b184d7fb38235afaec2a1ae5e3c284598891117a2d6045e4",- "frontend-modern/src/features/docker/DockerContainersTable.tsx": "d62b73afe8ddf5792b928d8fa550e206ed59be8a0b67d845f23d7a43f039a89c",- "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx": "a91d94d80d092071eb24e69a291ef0e95882fe3a1059adc2e03b24ee56af3cc8",- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "8b1610e0135a310df8146577bfe50a41468dcb9a37bf655580c2838a350b5467",- "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx": "6df9928955507b75e589bf4b310cd323f6f3d65a7336dd4e7e604d999a25c2a9",- "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx": "62fc19b42934d428bf4db2ee652621e1465531d4b16beaae1d90d85bc106f883",- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx": "0aea2cf00d43e3ea87319ac630e71b71a7f9602315bc011164c3e623eba321f6",- "frontend-modern/src/features/standalone/StandalonePageSurface.tsx": "f055818ac46f80fe039d6c93c1291e4c657faea1985d59adbf892b307098bf87",- "frontend-modern/src/features/vmware/VmwarePageSurface.tsx": "8a7cdbd5d03aa343be626855b6f0bc8b5c86ac6815cfad5db526b0f686335f84"+ "frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx": "28dcc409ee274cb87100bad34c5923141f2991428bff5530cd3f40d005cb016b",+ "frontend-modern/src/components/Settings/GuestDockerDiscoverySettingsCard.tsx": "12dcae6e8e515e3d0e60a5f93e3eb43e324643c9e8c7e36733b0fdcd0c5710dc",+ "frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx": "dde3334841438625575add15d5fa8becf46af2ad4db91d9aaff2a6e944024d1f",+ "frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx": "155682d67bb2a9e482160d98d21b69bfb6600adbab1a5a8bffb1186a0c343467",+ "frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx": "aede4d05bd687dd28606b0c621d2c2a13ab9ac0e2782c688b3c016ee766ea320",+ "frontend-modern/src/components/Settings/useSystemSettingsState.ts": "216e99c171fed89fb8dd1b2df87fe54b3e6f28aaf9fdd2335d22ec49e87aa906",+ "frontend-modern/src/i18n/messages.de.ts": "9313d26271469cdd8f53d89ddecfd7223b08766b47333a7be79d080504a0c424",+ "frontend-modern/src/i18n/messages.es.ts": "3306c37ad2155c46e4f453ea80d6633131760733dd345484f5d3df238da72aa5",+ "frontend-modern/src/i18n/messages.ts": "5001d13ef5fce44bdadf54343ae260e44e4e07cf1d02b8bb2e2a0da38dfe96b3",+ "frontend-modern/src/types/config.ts": "275188a0f2c35fe521a3ae1bc67ca222966bc7460f1bcfd396c7fb236b90c81c",+ "frontend-modern/src/utils/systemSettingsPresentation.ts": "e24b3b467cacd963723bd83c00c55b511a41928d66930b7c662226cd2939e436"},"routes": [- "/proxmox/overview",- "/proxmox/overview?status=running",- "/proxmox/backups",- "/proxmox/storage",- "/docker",- "/kubernetes",- "/kubernetes/workloads",- "/kubernetes/services",- "/kubernetes/configuration",- "/vmware",- "/standalone/machines",- "/alerts/history"+ "/settings/system-general",+ "/settings/infrastructure?add=docker",+ "/settings/infrastructure?add=pve"],"viewports": [{"width": 1280,- "height": 900+ "height": 720},{- "width": 1024,- "height": 900- },- {- "width": 390,- "height": 844+ "width": 375,+ "height": 812}],"states": [- "desktop 1280x900: action cluster renders Add filter / Clear filters / View with no Saved control and no residual gap",- "desktop 1280x900: cluster keeps the rebased justify-between rail and max-w-full justify-start cluster classes from 547afd2d1",- "desktop 1024x900: rail wraps and the action cluster left-aligns flush with the rail (cluster left 53px == rail left 53px), which is the wrapped case 547afd2d1 fixes, verified with the Saved control absent",- "desktop 1280x900: Proxmox Backups cluster renders Add filter only",- "desktop 1280x900: Machines toolbar renders View + machine count only",- "mobile 390x844: filter body collapsed shows only search + Filters toggle with its active-count badge",- "mobile 390x844: filter body expanded renders the action row without any Saved control",- "mobile 390x844: with status=running active, exactly one Clear filters button renders (no duplicate)",- "mobile 390x844: /alerts/history has no auxiliary controls so the mobile action row is not rendered at all rather than rendered empty",- "no Saved views control on any exercised surface and no pulse:filterbar:saved-views:* localStorage keys remain"+ "General panel: Docker in Proxmox LXCs card rendered below the Docker/Podman updates card with toggle ON reflecting the persisted server value",+ "General panel: toggle OFF state after disabling (aria-pressed=false), backend value false, monitor checker and collector torn down per server log",+ "General panel: toggle restored ON, backend value true persisted to system.json and surviving a server restart",+ "Infrastructure installer (add=docker): Docker-inside-Proxmox-LXCs callout points at the Settings toggle first with the env variable as the locking override",+ "PVE node setup guide (Host Telemetry Agent): opt-in callout names the toggle, the Settings path, and both environment variables",+ "Mobile viewport: card renders with no horizontal overflow, env hint wraps with break-all"],"interactions": [- "signed in as admin and opened each platform surface",- "expanded the mobile filter body via the Filters toggle on /proxmox/overview and /alerts/history",- "activated the Running status facet on mobile and confirmed the URL became ?status=running",- "confirmed exactly one Clear filters control renders with an active filter on mobile",- "reloaded /proxmox/overview?status=running from a bare URL and confirmed the Running facet was restored, which is the bookmark path that replaces saved views",- "re-exercised every viewport after rebasing onto 547afd2d1 because that commit changed the same action-cluster alignment classes; measured the wrapped cluster geometry at 1024px rather than re-pinning hashes on an unexercised merge",- "scanned each exercised route for a Saved views control and for saved-views localStorage keys, both empty",- "checked the console on a fresh tab against this build: no errors"+ "Clicked the Discover Docker in LXC guests toggle off: settings update POST returned 200, GET showed false, server logged \"Docker detection disabled\"/\"Docker inventory collection disabled\" and \"opt-in changed via settings\" enabled=false",+ "Clicked the toggle back on: GET showed true, server logged \"Docker inventory collection enabled\" and the collector reconfigure line",+ "Restarted the backend with the opt-in persisted true: GET after boot returned true (persistence across restart)",+ "Selected the Host Telemetry Agent source in the PVE setup guide to render the Docker-in-LXC callout",+ "Scrolled the General panel to the new card at desktop and mobile widths"]}diff --git a/frontend-modern/public/docs/AGENT_SECURITY.md b/frontend-modern/public/docs/AGENT_SECURITY.mdindex 6aa4a2c0ea..ef0137f4b5 100644--- a/frontend-modern/public/docs/AGENT_SECURITY.md+++ b/frontend-modern/public/docs/AGENT_SECURITY.md@@ -77,7 +77,7 @@ answers your monitoring question:| VM guest disk and memory details through QEMU Guest Agent | Use Proxmox API permissions such as `VM.GuestAgent.Audit` and `VM.GuestAgent.FileRead` where supported | No host agent for the Proxmox node || All mounted LXC filesystem capacities and usage | Install the Unified Agent on the owning PVE node; it automatically uses bounded `pct list` and `pct df` reads for running LXCs | Yes, on the PVE node || Docker/Podman containers inside a VM or LXC through guest-local reporting | Install the agent inside that VM/LXC with Docker/Podman monitoring enabled, or use another explicit guest access/reporting path | Usually requires root or Docker socket-equivalent access |-| Docker containers inside an LXC from a Proxmox host agent | Start Pulse with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`; optionally limit guests with `PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102` | Requires a root/equivalent Pulse agent on the Proxmox node and explicit server opt-in |+| Docker containers inside an LXC from a Proxmox host agent | Turn on **Discover Docker in LXC guests** in Settings → System → General (admin only), or start Pulse with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true` to lock it on; optionally limit guests with `PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102` | Requires a root/equivalent Pulse agent on the Proxmox node and explicit server opt-in || Host SMART, temperatures, local ZFS/Ceph/mdadm detail, arbitrary mount reads, and full host telemetry | Install the agent on that host | Yes, for the supported full-telemetry profile || Kubernetes node/pod monitoring from a cluster | Use the Kubernetes agent/DaemonSet profile | Depends on whether host metrics are enabled |@@ -93,8 +93,10 @@ guests reported stopped and bounds command time, output, guest count, and diskcount.The node agent can collect Docker container inventory from LXC guests-through `pct exec`, but only when the server is started with-`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`.+through `pct exec`, but only after an explicit server-side opt-in: the+admin-only **Discover Docker in LXC guests** toggle in Settings → System →+General, or starting the server with+`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true` (which locks the toggle).Inventory collection is disabled by default, can be VMID-allowlisted, and islimited to the Docker page summary path: Docker host/runtime version, containerID, name, image, state/status, ports, and aggregate `docker stats` counters.diff --git a/frontend-modern/public/docs/CONFIGURATION.md b/frontend-modern/public/docs/CONFIGURATION.mdindex 54fe050a03..a265ecec63 100644--- a/frontend-modern/public/docs/CONFIGURATION.md+++ b/frontend-modern/public/docs/CONFIGURATION.md@@ -328,7 +328,7 @@ When `allowEmbedding` is `false`, Pulse sends `X-Frame-Options: DENY` and `frame| `MAX_POLL_TIMEOUT` | Maximum time per polling cycle | `3m` || `PULSE_DISABLE_DOCKER_UPDATE_ACTIONS` | Hide Docker update buttons (read-only mode) | `false` || `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_DETECTION` | Allow Proxmox-side LXC Docker socket hinting with `pct exec` | `false` |-| `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY` | Allow Proxmox-side minimal LXC Docker inventory collection with `pct exec`; collects Docker host/container summary, not inspect/env/mount/process data | `false` |+| `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY` | Allow Proxmox-side minimal LXC Docker inventory collection with `pct exec`; collects Docker host/container summary, not inspect/env/mount/process data. Admins can also toggle this in Settings → System → General; setting the env var locks the toggle | `false` || `PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS` | Optional comma-separated VMID allowlist for Proxmox-side LXC Docker discovery; when set, only these guests are socket-probed and inventoried. Empty means all running LXCs are eligible when detection or inventory is enabled | *(unset)* || `PULSE_TELEMETRY` | Outbound usage telemetry ([details](PRIVACY.md)); set `false` to disable | `true` || `PULSE_DEPLOYMENT_METHOD` | Optional closed telemetry label: `docker_compose`, `docker_run`, `container_other`, `systemd`, `binary_other`, or `other`; invalid values are reported only as the safe runtime fallback | Inferred as `container_other` or `binary_other` |diff --git a/frontend-modern/public/docs/UNIFIED_AGENT.md b/frontend-modern/public/docs/UNIFIED_AGENT.mdindex 42ed53b551..f33e7a8722 100644--- a/frontend-modern/public/docs/UNIFIED_AGENT.md+++ b/frontend-modern/public/docs/UNIFIED_AGENT.md@@ -416,8 +416,10 @@ with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_DETECTION=true`. That hint uses`pct exec` only to check whether `/var/run/docker.sock` exists in a running LXC;it does not enumerate containers, images, environment variables, files, orprocesses. The stronger Proxmox-side LXC Docker inventory path is separately-disabled unless the server is started with-`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`. Use either path only when+disabled by default. An admin can turn it on with the **Discover Docker in+LXC guests** toggle in Settings → System → General, or the server can be+started with `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`, which locks+the toggle to the environment value. Use either path only whenoperators are comfortable with Proxmox-side guest probing.## Installation Optionsdiff --git a/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx b/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsxindex 4a0999a44b..cc89e3c59a 100644--- a/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx+++ b/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx@@ -7,6 +7,7 @@ import { EnvironmentLockBadge } from '@/components/shared/EnvironmentLockBadge';import { FilterButtonGroup, type FilterOption } from '@/components/shared/FilterButtonGroup';import type { TelemetryPreviewResponse } from '@/api/settings';import { DockerRuntimeSettingsCard } from './DockerRuntimeSettingsCard';+import { GuestDockerDiscoverySettingsCard } from './GuestDockerDiscoverySettingsCard';import { BrandingSettingsCard } from './BrandingSettingsCard';import type { ReportBrandSettings } from '@/types/config';import Sun from 'lucide-solid/icons/sun';@@ -96,6 +97,11 @@ export interface GeneralSettingsPanelProps {disableDockerUpdateActionsLocked: () => boolean;savingDockerUpdateActions: Accessor<boolean>;handleDisableDockerUpdateActionsChange: (disabled: boolean) => Promise<void>;++ enableProxmoxGuestDockerInventory: Accessor<boolean>;+ guestDockerInventoryLocked: () => boolean;+ savingGuestDockerInventory: Accessor<boolean>;+ handleGuestDockerInventoryChange: (enabled: boolean) => Promise<void>;}export const GeneralSettingsPanel: Component<GeneralSettingsPanelProps> = (props) => {@@ -328,6 +334,13 @@ export const GeneralSettingsPanel: Component<GeneralSettingsPanelProps> = (propshandleDisableDockerUpdateActionsChange={props.handleDisableDockerUpdateActionsChange}/>+ <GuestDockerDiscoverySettingsCard+ enableProxmoxGuestDockerInventory={props.enableProxmoxGuestDockerInventory}+ guestDockerInventoryLocked={props.guestDockerInventoryLocked}+ savingGuestDockerInventory={props.savingGuestDockerInventory}+ handleGuestDockerInventoryChange={props.handleGuestDockerInventoryChange}+ />+{/* Monitoring Cadence Card */}<SettingsPaneltitle={t('settings.general.monitoringCadence.section.title')}diff --git a/frontend-modern/src/components/Settings/GuestDockerDiscoverySettingsCard.tsx b/frontend-modern/src/components/Settings/GuestDockerDiscoverySettingsCard.tsxnew file mode 100644index 0000000000..b5222621e2--- /dev/null+++ b/frontend-modern/src/components/Settings/GuestDockerDiscoverySettingsCard.tsx@@ -0,0 +1,87 @@+import { Component, Accessor, Show } from 'solid-js';+import { EnvironmentLockBadge } from '@/components/shared/EnvironmentLockBadge';+import { TogglePrimitive } from '@/components/shared/Toggle';+import { ENVIRONMENT_LOCK_BUTTON_TITLE } from '@/utils/environmentLockPresentation';+import {+ GUEST_DOCKER_INVENTORY_ENV_VAR,+ getGuestDockerDiscoveryPresentation,+} from '@/utils/systemSettingsPresentation';++interface GuestDockerDiscoverySettingsCardProps {+ enableProxmoxGuestDockerInventory: Accessor<boolean>;+ guestDockerInventoryLocked: Accessor<boolean>;+ savingGuestDockerInventory: Accessor<boolean>;+ handleGuestDockerInventoryChange: (enabled: boolean) => Promise<void>;+}++export const GuestDockerDiscoverySettingsCard: Component<GuestDockerDiscoverySettingsCardProps> = (+ props,+) => (+ <div class="rounded-xl border border-border bg-surface p-4 shadow-sm sm:p-5">+ <div class="space-y-4">+ <div class="space-y-1">+ <h3 class="text-base font-semibold text-base-content">+ {getGuestDockerDiscoveryPresentation().sectionTitle}+ </h3>+ <p class="text-sm text-muted">{getGuestDockerDiscoveryPresentation().sectionDescription}</p>+ </div>++ <div class="rounded-md border border-border bg-surface-hover p-3 sm:p-4">+ <div class="flex min-w-0 items-center justify-between gap-3">+ <div class="flex min-w-0 items-center gap-2">+ <span+ id="guest-docker-inventory-toggle-label"+ class="text-sm font-medium text-base-content"+ >+ {getGuestDockerDiscoveryPresentation().toggleLabel}+ </span>+ <Show when={props.guestDockerInventoryLocked()}>+ <EnvironmentLockBadge+ envVar={GUEST_DOCKER_INVENTORY_ENV_VAR}+ icon={(props) => (+ <svg+ class={props.class}+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ stroke-width="2"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"+ />+ </svg>+ )}+ />+ </Show>+ </div>+ <div class="shrink-0">+ <TogglePrimitive+ checked={props.enableProxmoxGuestDockerInventory()}+ onChange={(event) =>+ props.handleGuestDockerInventoryChange(event.currentTarget.checked)+ }+ disabled={props.guestDockerInventoryLocked() || props.savingGuestDockerInventory()}+ ariaLabelledBy="guest-docker-inventory-toggle-label"+ ariaDescribedBy="guest-docker-inventory-toggle-description"+ title={props.guestDockerInventoryLocked() ? ENVIRONMENT_LOCK_BUTTON_TITLE : undefined}+ />+ </div>+ </div>+ <p id="guest-docker-inventory-toggle-description" class="mt-2 text-xs text-muted">+ {getGuestDockerDiscoveryPresentation().toggleDescription}+ </p>+ <p class="mt-1 text-xs text-muted">+ {getGuestDockerDiscoveryPresentation().requirementsHint}+ </p>+ <p class="mt-1 text-xs text-muted">+ {getGuestDockerDiscoveryPresentation().environmentHint}{' '}+ <code class="break-all rounded bg-surface-hover px-1 py-0.5 text-base-content">+ {GUEST_DOCKER_INVENTORY_ENV_VAR}=true+ </code>+ </p>+ </div>+ </div>+ </div>+);diff --git a/frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx b/frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsxindex 47d4727a33..2d5de320de 100644--- a/frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx@@ -289,10 +289,13 @@ export const InfrastructureInstallerSection: Component<InfrastructureInstallerSe<p class="mt-1 text-xs text-blue-800 dark:text-blue-200">Install the agent on the Proxmox node, not inside every LXC. In advanced options,select <span class="font-medium">Proxmox VE node</span> and enable{' '}- <span class="font-medium">Pulse command execution</span>. Then start Pulse with{' '}- <code>PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true</code>. Optionally restrict it- with <code>PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102</code>. Pulse uses- bounded <code>pct exec</code> inventory for <code>docker ps</code> and{' '}+ <span class="font-medium">Pulse command execution</span>. Then turn on{' '}+ <span class="font-medium">Discover Docker in LXC guests</span> in Settings → System →+ General (admin only), or set{' '}+ <code>PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true</code> in the server+ environment to lock it on. Optionally restrict it with{' '}+ <code>PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102</code>. Pulse uses bounded{' '}+ <code>pct exec</code> inventory for <code>docker ps</code> and{' '}<code>docker stats</code>, skips guests that already have their own agent, and doesnot collect inspect, environment, mount, command, or process details.</p>diff --git a/frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx b/frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsxindex 4db843319e..801067e541 100644--- a/frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx+++ b/frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx@@ -146,12 +146,13 @@ export const NodeModalSetupGuideSection: Component<NodeModalSetupGuideSectionPro<p class="text-xs text-blue-800 dark:text-blue-200"><strong>Docker inside Proxmox LXCs:</strong> use this host-agent path insteadof installing Pulse Agent in every guest. The copied command enables Pulse- command execution on the Proxmox node. The Pulse server still must be opted in- with{' '}+ command execution on the Proxmox node. The Pulse server still must be opted+ in: turn on <span class="font-medium">Discover Docker in LXC guests</span> in+ Settings → System → General (admin only), or set{' '}<code class="break-all rounded bg-blue-100 px-1 font-mono dark:bg-blue-900">PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true- </code>- , and you can limit guests with{' '}+ </code>{' '}+ in the server environment to lock it on. You can limit guests with{' '}<code class="break-all rounded bg-blue-100 px-1 font-mono dark:bg-blue-900">PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102</code>diff --git a/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.localization.test.tsx b/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.localization.test.tsxindex 8401234cc1..d02ec5df0d 100644--- a/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.localization.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.localization.test.tsx@@ -53,6 +53,10 @@ function renderGeneralSettingsPanel(overrides: Partial<GeneralSettingsPanelPropsdisableDockerUpdateActionsLocked: () => false,savingDockerUpdateActions: () => false,handleDisableDockerUpdateActionsChange: vi.fn(),+ enableProxmoxGuestDockerInventory: () => false,+ guestDockerInventoryLocked: () => false,+ savingGuestDockerInventory: () => false,+ handleGuestDockerInventoryChange: vi.fn(),...overrides,};diff --git a/frontend-modern/src/components/Settings/__tests__/NodeModalSetupGuideSection.test.tsx b/frontend-modern/src/components/Settings/__tests__/NodeModalSetupGuideSection.test.tsxindex 32303cbb7d..23c4fff25c 100644--- a/frontend-modern/src/components/Settings/__tests__/NodeModalSetupGuideSection.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/NodeModalSetupGuideSection.test.tsx@@ -118,6 +118,7 @@ describe('NodeModalSetupGuideSection', () => {expect(tlsOverride).not.toBeChecked();fireEvent.click(tlsOverride);expect(tlsOverride).toBeChecked();+ expect(screen.getByText('Discover Docker in LXC guests')).toBeInTheDocument();expect(screen.getByText('PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true'),).toBeInTheDocument();diff --git a/frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx b/frontend-modern/src/components/Settings/useSettingsSystemPanels.tsxindex 66d938bacf..b27eb1ca9f 100644--- a/frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx+++ b/frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx@@ -63,6 +63,10 @@ export function useSettingsSystemPanels(savingDockerUpdateActions: params.systemSettings.savingDockerUpdateActions,handleDisableDockerUpdateActionsChange:params.systemSettings.handleDisableDockerUpdateActionsChange,+ enableProxmoxGuestDockerInventory: params.systemSettings.enableProxmoxGuestDockerInventory,+ guestDockerInventoryLocked: params.systemSettings.guestDockerInventoryLocked,+ savingGuestDockerInventory: params.systemSettings.savingGuestDockerInventory,+ handleGuestDockerInventoryChange: params.systemSettings.handleGuestDockerInventoryChange,});const systemGeneralPanel: Component = () => (diff --git a/frontend-modern/src/components/Settings/useSystemSettingsState.ts b/frontend-modern/src/components/Settings/useSystemSettingsState.tsindex 56f0ef3d5c..c3bc0b7ad1 100644--- a/frontend-modern/src/components/Settings/useSystemSettingsState.ts+++ b/frontend-modern/src/components/Settings/useSystemSettingsState.ts@@ -14,6 +14,7 @@ import {getBackupIntervalSelectValue,getBackupIntervalSummary,getDockerUpdateActionsUpdateErrorMessage,+ getGuestDockerInventoryUpdateErrorMessage,getHideLocalLoginUpdateErrorMessage,getSystemSettingsSaveErrorMessage,getTelemetryUpdateErrorMessage,@@ -58,6 +59,9 @@ export function useSystemSettingsState({const [savingHideLocalLogin, setSavingHideLocalLogin] = createSignal(false);const [disableDockerUpdateActions, setDisableDockerUpdateActions] = createSignal(false);const [savingDockerUpdateActions, setSavingDockerUpdateActions] = createSignal(false);+ const [enableProxmoxGuestDockerInventory, setEnableProxmoxGuestDockerInventory] =+ createSignal(false);+ const [savingGuestDockerInventory, setSavingGuestDockerInventory] = createSignal(false);const [telemetryEnabled, setTelemetryEnabled] = createSignal(true);const [reportBrandDisplayName, setReportBrandDisplayName] = createSignal('');const [reportBrandLogoBase64, setReportBrandLogoBase64] = createSignal('');@@ -94,6 +98,11 @@ export function useSystemSettingsState({envOverrides().disableDockerUpdateActions ||envOverrides()['PULSE_DISABLE_DOCKER_UPDATE_ACTIONS'],);+ const guestDockerInventoryLocked = () =>+ Boolean(+ envOverrides().enableProxmoxGuestDockerInventory ||+ envOverrides()['PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY'],+ );const telemetryEnabledLocked = () =>Boolean(envOverrides().telemetryEnabled || envOverrides()['PULSE_TELEMETRY']);const pvePollingEnvLocked = () =>@@ -148,6 +157,9 @@ export function useSystemSettingsState({);setHideLocalLogin(systemSettings.hideLocalLogin ?? false);setDisableDockerUpdateActions(systemSettings.disableDockerUpdateActions ?? false);+ setEnableProxmoxGuestDockerInventory(+ systemSettings.enableProxmoxGuestDockerInventory ?? false,+ );setTelemetryEnabled(systemSettings.telemetryEnabled ?? true);setReportBrandDisplayName(systemSettings.reportBranding?.displayName ?? '');setReportBrandLogoBase64(systemSettings.reportBranding?.logoBase64 ?? '');@@ -341,6 +353,36 @@ export function useSystemSettingsState({}};+ const handleGuestDockerInventoryChange = async (enabled: boolean): Promise<void> => {+ if (guestDockerInventoryLocked() || savingGuestDockerInventory()) {+ return;+ }++ const previous = enableProxmoxGuestDockerInventory();+ setEnableProxmoxGuestDockerInventory(enabled);+ setSavingGuestDockerInventory(true);++ try {+ await SettingsAPI.updateSystemSettings({ enableProxmoxGuestDockerInventory: enabled });++ if (enabled) {+ notificationStore.success('Docker discovery in LXC guests enabled', 2000);+ } else {+ notificationStore.info('Docker discovery in LXC guests disabled', 2000);+ }+ } catch (error) {+ logger.error('Failed to update guest Docker discovery setting', error);+ notificationStore.error(+ getGuestDockerInventoryUpdateErrorMessage(+ error instanceof Error ? error.message : undefined,+ ),+ );+ setEnableProxmoxGuestDockerInventory(previous);+ } finally {+ setSavingGuestDockerInventory(false);+ }+ };+const handleTelemetryEnabledChange = async (enabled: boolean): Promise<void> => {if (telemetryEnabledLocked() || savingTelemetry()) {return;@@ -539,6 +581,10 @@ export function useSystemSettingsState({disableDockerUpdateActionsLocked,savingDockerUpdateActions,handleDisableDockerUpdateActionsChange,+ enableProxmoxGuestDockerInventory,+ guestDockerInventoryLocked,+ savingGuestDockerInventory,+ handleGuestDockerInventoryChange,telemetryEnabled,reportBrandDisplayName,setReportBrandDisplayName,diff --git a/frontend-modern/src/i18n/messages.de.ts b/frontend-modern/src/i18n/messages.de.tsindex d9928ae6ae..0f419235c5 100644--- a/frontend-modern/src/i18n/messages.de.ts+++ b/frontend-modern/src/i18n/messages.de.ts@@ -309,6 +309,14 @@ export const DE_MESSAGE_OVERRIDES = {'settings.general.docker.toggle.description':'Wenn aktiviert, werden {sourceLabel}-Aktionen "Update" in Pulse ausgeblendet. Die Update-Erkennung laeuft weiter, sodass verfuegbare Updates sichtbar bleiben.','settings.general.docker.toggle.title': 'Update-Schaltflaechen ausblenden',+ 'settings.general.guestDocker.section.title': 'Docker in Proxmox-LXCs',+ 'settings.general.guestDocker.section.description':+ 'Docker-Container in Proxmox-LXC-Gaesten erkennen, ohne in jedem Gast einen Agent zu installieren.',+ 'settings.general.guestDocker.toggle.title': 'Docker in LXC-Gaesten erkennen',+ 'settings.general.guestDocker.toggle.description':+ 'Wenn aktiviert, fuehrt Pulse begrenzte pct-exec-Pruefungen ueber verbundene Proxmox-Node-Agents aus, um Docker in LXC-Gaesten zu finden und deren Container aufzulisten. Gaeste mit eigenem Agent werden uebersprungen; Pulse erfasst nur Containerliste und Auslastung — keine Inspect-, Umgebungs-, Mount-, Befehls- oder Prozessdetails.',+ 'settings.general.guestDocker.requirements':+ 'Erfordert einen Pulse-Agent auf dem Proxmox-Node mit aktivierter Befehlsausfuehrung. Nur fuer Administratoren.','settings.general.language.ariaLabel': 'App-Sprache','settings.general.language.description':'Verwenden Sie diese Sprache fuer die App-Oberflaeche. Befehle, Ressourcennamen und API-Felder bleiben unveraendert.',diff --git a/frontend-modern/src/i18n/messages.es.ts b/frontend-modern/src/i18n/messages.es.tsindex 4909d0c3dc..155937b3c3 100644--- a/frontend-modern/src/i18n/messages.es.ts+++ b/frontend-modern/src/i18n/messages.es.ts@@ -301,6 +301,14 @@ export const ES_MESSAGE_OVERRIDES = {'settings.general.docker.toggle.description':'Cuando está activado, las acciones "Update" de {sourceLabel} se ocultan en Pulse. La detección de actualizaciones sigue ejecutándose, por lo que las actualizaciones disponibles siguen visibles.','settings.general.docker.toggle.title': 'Ocultar botones de actualización',+ 'settings.general.guestDocker.section.title': 'Docker en LXCs de Proxmox',+ 'settings.general.guestDocker.section.description':+ 'Descubre contenedores Docker dentro de invitados LXC de Proxmox sin instalar un agente en cada invitado.',+ 'settings.general.guestDocker.toggle.title': 'Descubrir Docker en invitados LXC',+ 'settings.general.guestDocker.toggle.description':+ 'Cuando está activado, Pulse ejecuta comprobaciones acotadas con pct exec a través de los agentes de nodo Proxmox conectados para encontrar Docker dentro de los invitados LXC y listar sus contenedores. Los invitados que ya informan mediante su propio agente se omiten, y Pulse solo recopila la lista de contenedores y sus estadísticas de uso — sin detalles de inspect, entorno, montajes, comandos ni procesos.',+ 'settings.general.guestDocker.requirements':+ 'Requiere un agente de Pulse en el nodo Proxmox con la ejecución de comandos habilitada. Solo administradores.','settings.general.language.ariaLabel': 'Idioma de la app','settings.general.language.description':'Usa este idioma para la interfaz de la app. Los comandos, nombres de recursos y campos API no cambian.',diff --git a/frontend-modern/src/i18n/messages.ts b/frontend-modern/src/i18n/messages.tsindex f5ece73d61..a9d774fb08 100644--- a/frontend-modern/src/i18n/messages.ts+++ b/frontend-modern/src/i18n/messages.ts@@ -295,6 +295,14 @@ export const EN_MESSAGES = {'settings.general.docker.toggle.description':'When enabled, {sourceLabel} "Update" actions are hidden across Pulse. Update detection still runs, so available updates remain visible.','settings.general.docker.toggle.title': 'Hide update buttons',+ 'settings.general.guestDocker.section.title': 'Docker in Proxmox LXCs',+ 'settings.general.guestDocker.section.description':+ 'Discover Docker containers running inside Proxmox LXC guests without installing an agent in every guest.',+ 'settings.general.guestDocker.toggle.title': 'Discover Docker in LXC guests',+ 'settings.general.guestDocker.toggle.description':+ 'When enabled, Pulse runs bounded pct exec checks through connected Proxmox node agents to find Docker inside LXC guests and list their containers. Guests that already report through their own agent are skipped, and Pulse collects only the container list and usage stats — no inspect, environment, mount, command, or process details.',+ 'settings.general.guestDocker.requirements':+ 'Requires a Pulse agent on the Proxmox node with command execution enabled. Admin only.','settings.general.language.ariaLabel': 'App language','settings.general.language.description':'Use this language for the app shell. Commands, resource names, and API fields stay unchanged.',diff --git a/frontend-modern/src/types/config.ts b/frontend-modern/src/types/config.tsindex 0868dd62f1..f417e7cb48 100644--- a/frontend-modern/src/types/config.ts+++ b/frontend-modern/src/types/config.ts@@ -53,6 +53,7 @@ export interface SystemConfig {hideLocalLogin?: boolean; // Hide local login form (username/password)publicURL?: string; // Public URL for email notifications (e.g., http://198.51.100.100:8080)disableDockerUpdateActions?: boolean; // Hide Docker update buttons while still detecting updates (server-wide)+ enableProxmoxGuestDockerInventory?: boolean; // Discover Docker inside Proxmox LXC guests via node agents (server-wide, admin opt-in)reduceProUpsellNoise?: boolean; // Legacy compatibility preference for proactive commercial promptstelemetryEnabled?: boolean; // Outbound usage telemetry, enabled by default unless disabledreportBranding?: ReportBrandSettings; // Entitlement-gated application and report brandingdiff --git a/frontend-modern/src/utils/systemSettingsPresentation.ts b/frontend-modern/src/utils/systemSettingsPresentation.tsindex e51cf3379d..b5c0266aab 100644--- a/frontend-modern/src/utils/systemSettingsPresentation.ts+++ b/frontend-modern/src/utils/systemSettingsPresentation.ts@@ -124,6 +124,19 @@ export function getDockerUpdateActionsPresentation(} as const;}+export const GUEST_DOCKER_INVENTORY_ENV_VAR = 'PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY';++export function getGuestDockerDiscoveryPresentation(locale?: SupportedLocale) {+ return {+ sectionTitle: t('settings.general.guestDocker.section.title', {}, locale),+ sectionDescription: t('settings.general.guestDocker.section.description', {}, locale),+ toggleLabel: t('settings.general.guestDocker.toggle.title', {}, locale),+ toggleDescription: t('settings.general.guestDocker.toggle.description', {}, locale),+ requirementsHint: t('settings.general.guestDocker.requirements', {}, locale),+ environmentHint: t('settings.general.docker.envHint', {}, locale),+ } as const;+}+export function getBackupIntervalSelectValue(backupPollingUseCustom: boolean,backupPollingInterval: number,@@ -172,6 +185,10 @@ export function getDockerUpdateActionsUpdateErrorMessage(message?: string): strireturn message || `Unable to update ${DOCKER_PODMAN_SOURCE_LABEL} update actions.`;}+export function getGuestDockerInventoryUpdateErrorMessage(message?: string): string {+ return message || 'Unable to update Docker discovery for Proxmox LXC guests.';+}+export function getTelemetryUpdateErrorMessage(message?: string): string {return message || 'Unable to update outbound usage telemetry.';}diff --git a/internal/api/contract_test.go b/internal/api/contract_test.goindex 3e9d2fc2ef..cd53933bb4 100644--- a/internal/api/contract_test.go+++ b/internal/api/contract_test.go@@ -10230,6 +10230,7 @@ func TestContract_SystemSettingsResponseJSONSnapshot(t *testing.T) {"temperatureMonitoringEnabled":true,"hideLocalLogin":false,"disableDockerUpdateActions":true,+ "enableProxmoxGuestDockerInventory":false,"envOverrides":{"PULSE_TELEMETRY":true}}`diff --git a/internal/api/router.go b/internal/api/router.goindex 5aa2c9cd62..dc50174989 100644--- a/internal/api/router.go+++ b/internal/api/router.go@@ -720,6 +720,14 @@ func (r *Router) setupRoutes() {// System settings and API token managementr.systemSettingsHandler = NewSystemSettingsHandler(r.config, r.persistence, r.wsHub, r.mtMonitor, r.monitor, r.reloadSystemSettings, r.reloadFunc)+ // Toggling the Proxmox guest Docker inventory opt-in reconfigures the+ // monitor's checker and collector immediately instead of waiting for a+ // restart.+ r.systemSettingsHandler.SetGuestDockerInventoryToggleFunc(func() {+ if r.monitor != nil {+ r.configureProxmoxGuestDockerDetection(r.monitor)+ }+ })// Agent execution server for AI tool user.agentExecServer = agentexec.NewServerWithAdmissionValidator(r.admitAgentExecToken, r.validateAgentExecSession)diff --git a/internal/api/system_settings.go b/internal/api/system_settings.goindex 67bc91f2fb..77917f8233 100644--- a/internal/api/system_settings.go+++ b/internal/api/system_settings.go@@ -51,6 +51,10 @@ type SystemSettingsHandler struct {telemetryToggleFunc func(enabled bool) // Called when telemetry is toggled at runtimetelemetryPreviewFunc func() (telemetry.Ping, error)telemetryResetFunc func() (telemetry.Ping, error)+ // Called after the Proxmox guest Docker inventory opt-in changes at+ // runtime, so the router can reconfigure the monitor's checker and+ // collector without a restart.+ guestDockerInventoryToggleFunc func()mtMonitor interface {GetMonitor(string) (*monitoring.Monitor, error)}@@ -103,6 +107,12 @@ func (h *SystemSettingsHandler) SetTelemetryToggleFunc(fn func(enabled bool)) {h.telemetryToggleFunc = fn}+// SetGuestDockerInventoryToggleFunc sets the callback invoked after the+// Proxmox guest Docker inventory opt-in changes at runtime.+func (h *SystemSettingsHandler) SetGuestDockerInventoryToggleFunc(fn func()) {+ h.guestDockerInventoryToggleFunc = fn+}+// SetTelemetryPreviewFunc sets the callback used to build the exact telemetry// payload preview exposed through the system settings API.func (h *SystemSettingsHandler) SetTelemetryPreviewFunc(fn func() (telemetry.Ping, error)) {@@ -712,6 +722,8 @@ func (h *SystemSettingsHandler) HandleGetSystemSettings(w http.ResponseWriter, rsettings.TemperatureMonitoringEnabled = h.config.TemperatureMonitoringEnabled// Expose Docker update actions setting (respects env override)settings.DisableDockerUpdateActions = h.config.DisableDockerUpdateActions+ // Expose the Proxmox guest Docker inventory opt-in (respects env override)+ settings.EnableProxmoxGuestDockerInventory = h.config.EnableProxmoxGuestDockerInventory// Expose effective telemetry value (respects env override)effectiveTelemetry := h.config.TelemetryEnabledsettings.TelemetryEnabled = &effectiveTelemetry@@ -940,6 +952,19 @@ func (h *SystemSettingsHandler) HandleUpdateSystemSettings(w http.ResponseWriterif _, ok := rawRequest["disableDockerUpdateActions"]; ok {settings.DisableDockerUpdateActions = updates.DisableDockerUpdateActions}+ guestDockerInventoryToggleRequested := false+ if _, ok := rawRequest["enableProxmoxGuestDockerInventory"]; ok {+ // The environment opt-in is a deploy-time decision; a locked value+ // must not be changeable through the API at all.+ if h.config.EnvOverrides["PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY"] ||+ h.config.EnvOverrides["enableProxmoxGuestDockerInventory"] {+ writeErrorResponse(w, http.StatusBadRequest, "env_override",+ "Proxmox guest Docker inventory is locked by the PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY environment variable", nil)+ return+ }+ settings.EnableProxmoxGuestDockerInventory = updates.EnableProxmoxGuestDockerInventory+ guestDockerInventoryToggleRequested = true+ }if _, ok := rawRequest["reduceProUpsellNoise"]; ok {settings.ReduceProUpsellNoise = updates.ReduceProUpsellNoise}@@ -1034,6 +1059,16 @@ func (h *SystemSettingsHandler) HandleUpdateSystemSettings(w http.ResponseWriterh.config.TemperatureMonitoringEnabled = settings.TemperatureMonitoringEnabled}h.config.DisableDockerUpdateActions = settings.DisableDockerUpdateActions+ if guestDockerInventoryToggleRequested &&+ h.config.EnableProxmoxGuestDockerInventory != settings.EnableProxmoxGuestDockerInventory {+ h.config.EnableProxmoxGuestDockerInventory = settings.EnableProxmoxGuestDockerInventory+ if h.guestDockerInventoryToggleFunc != nil {+ h.guestDockerInventoryToggleFunc()+ }+ log.Info().+ Bool("enabled", settings.EnableProxmoxGuestDockerInventory).+ Msg("Proxmox guest Docker inventory opt-in changed via settings")+ }if _, ok := rawRequest["telemetryEnabled"]; ok && settings.TelemetryEnabled != nil {h.config.TelemetryEnabled = *settings.TelemetryEnabledif h.telemetryToggleFunc != nil {diff --git a/internal/api/system_settings_guest_docker_test.go b/internal/api/system_settings_guest_docker_test.gonew file mode 100644index 0000000000..f2e905c1fc--- /dev/null+++ b/internal/api/system_settings_guest_docker_test.go@@ -0,0 +1,190 @@+package api++import (+ "bytes"+ "encoding/json"+ "net/http"+ "net/http/httptest"+ "testing"++ "github.com/rcourtman/pulse-go-rewrite/internal/config"+)++// The Proxmox guest Docker inventory opt-in rides the admin-gated system+// settings endpoint: it must persist, apply to the runtime config, and fire+// the reconfigure hook exactly when its value changes — and the environment+// override must lock it out of the API entirely.++func TestGuestDockerInventoryUpdate_PersistsAppliesAndFiresHook(t *testing.T) {+ tempDir := t.TempDir()+ cfg := &config.Config{+ DataPath: tempDir,+ ConfigPath: tempDir,+ EnvOverrides: make(map[string]bool),+ }+ handler, persistence, token := setupTelemetryTest(t, cfg)++ hookCalls := 0+ handler.SetGuestDockerInventoryToggleFunc(func() {+ hookCalls+++ })++ post := func(payload map[string]interface{}) *httptest.ResponseRecorder {+ body, _ := json.Marshal(payload)+ req := httptest.NewRequest(http.MethodPost, "/api/system-settings", bytes.NewReader(body))+ req.Header.Set("X-API-Token", token)+ rec := httptest.NewRecorder()+ handler.HandleUpdateSystemSettings(rec, req)+ return rec+ }++ rec := post(map[string]interface{}{"enableProxmoxGuestDockerInventory": true})+ if rec.Code != http.StatusOK {+ t.Fatalf("expected 200, got %d: %s", rec.Code, rec.Body.String())+ }+ if !cfg.EnableProxmoxGuestDockerInventory {+ t.Fatal("runtime config should have the opt-in enabled after update")+ }+ if hookCalls != 1 {+ t.Fatalf("expected reconfigure hook to fire once, fired %d times", hookCalls)+ }+ saved, err := persistence.LoadSystemSettings()+ if err != nil {+ t.Fatal(err)+ }+ if saved == nil || !saved.EnableProxmoxGuestDockerInventory {+ t.Fatal("opt-in should be persisted in system settings")+ }++ // Re-sending the same value is a no-op for the hook.+ rec = post(map[string]interface{}{"enableProxmoxGuestDockerInventory": true})+ if rec.Code != http.StatusOK {+ t.Fatalf("expected 200, got %d: %s", rec.Code, rec.Body.String())+ }+ if hookCalls != 1 {+ t.Fatalf("hook must not fire when the value did not change, fired %d times", hookCalls)+ }++ // Turning it back off fires the hook again.+ rec = post(map[string]interface{}{"enableProxmoxGuestDockerInventory": false})+ if rec.Code != http.StatusOK {+ t.Fatalf("expected 200, got %d: %s", rec.Code, rec.Body.String())+ }+ if cfg.EnableProxmoxGuestDockerInventory {+ t.Fatal("runtime config should have the opt-in disabled after update")+ }+ if hookCalls != 2 {+ t.Fatalf("expected reconfigure hook to fire on disable, fired %d times", hookCalls)+ }+}++func TestGuestDockerInventoryUpdate_EnvOverrideRejected(t *testing.T) {+ tempDir := t.TempDir()+ cfg := &config.Config{+ DataPath: tempDir,+ ConfigPath: tempDir,+ EnableProxmoxGuestDockerInventory: true,+ EnvOverrides: map[string]bool{+ "PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY": true,+ "enableProxmoxGuestDockerInventory": true,+ },+ }+ handler, _, token := setupTelemetryTest(t, cfg)++ hookCalls := 0+ handler.SetGuestDockerInventoryToggleFunc(func() {+ hookCalls+++ })++ body, _ := json.Marshal(map[string]interface{}{"enableProxmoxGuestDockerInventory": false})+ req := httptest.NewRequest(http.MethodPost, "/api/system-settings", bytes.NewReader(body))+ req.Header.Set("X-API-Token", token)+ rec := httptest.NewRecorder()+ handler.HandleUpdateSystemSettings(rec, req)++ if rec.Code != http.StatusBadRequest {+ t.Fatalf("expected 400 for env-locked opt-in, got %d: %s", rec.Code, rec.Body.String())+ }+ if !cfg.EnableProxmoxGuestDockerInventory {+ t.Fatal("env-locked opt-in must not be changed through the API")+ }+ if hookCalls != 0 {+ t.Fatalf("hook must not fire on a rejected update, fired %d times", hookCalls)+ }+}++func TestGuestDockerInventoryUpdate_UnrelatedUpdateDoesNotClobber(t *testing.T) {+ tempDir := t.TempDir()+ cfg := &config.Config{+ DataPath: tempDir,+ ConfigPath: tempDir,+ // Runtime value differs from anything on disk (simulating an env+ // override or a pre-persistence enable): an unrelated settings save+ // must not silently flip it.+ EnableProxmoxGuestDockerInventory: true,+ EnvOverrides: make(map[string]bool),+ }+ handler, _, token := setupTelemetryTest(t, cfg)++ hookCalls := 0+ handler.SetGuestDockerInventoryToggleFunc(func() {+ hookCalls+++ })++ body, _ := json.Marshal(map[string]interface{}{"theme": "dark"})+ req := httptest.NewRequest(http.MethodPost, "/api/system-settings", bytes.NewReader(body))+ req.Header.Set("X-API-Token", token)+ rec := httptest.NewRecorder()+ handler.HandleUpdateSystemSettings(rec, req)++ if rec.Code != http.StatusOK {+ t.Fatalf("expected 200, got %d: %s", rec.Code, rec.Body.String())+ }+ if !cfg.EnableProxmoxGuestDockerInventory {+ t.Fatal("unrelated settings updates must not change the guest Docker opt-in")+ }+ if hookCalls != 0 {+ t.Fatalf("hook must not fire for unrelated settings updates, fired %d times", hookCalls)+ }+}++func TestGuestDockerInventoryGet_ExposesEffectiveValue(t *testing.T) {+ tempDir := t.TempDir()+ cfg := &config.Config{+ DataPath: tempDir,+ ConfigPath: tempDir,+ // Enabled by environment; disk has no opt-in recorded.+ EnableProxmoxGuestDockerInventory: true,+ EnvOverrides: map[string]bool{+ "PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY": true,+ "enableProxmoxGuestDockerInventory": true,+ },+ }+ handler, persistence, token := setupTelemetryTest(t, cfg)++ if err := persistence.SaveSystemSettings(*config.DefaultSystemSettings()); err != nil {+ t.Fatal(err)+ }++ req := httptest.NewRequest(http.MethodGet, "/api/system-settings", nil)+ req.Header.Set("X-API-Token", token)+ rec := httptest.NewRecorder()+ handler.HandleGetSystemSettings(rec, req)++ if rec.Code != http.StatusOK {+ t.Fatalf("expected 200, got %d: %s", rec.Code, rec.Body.String())+ }+ var response struct {+ EnableProxmoxGuestDockerInventory bool `json:"enableProxmoxGuestDockerInventory"`+ EnvOverrides map[string]bool `json:"envOverrides"`+ }+ if err := json.Unmarshal(rec.Body.Bytes(), &response); err != nil {+ t.Fatal(err)+ }+ if !response.EnableProxmoxGuestDockerInventory {+ t.Fatal("GET must expose the effective (env-enabled) opt-in value")+ }+ if !response.EnvOverrides["enableProxmoxGuestDockerInventory"] {+ t.Fatal("GET must expose the env override lock for the opt-in")+ }+}diff --git a/internal/config/config.go b/internal/config/config.goindex 82d0158e18..784e82b21d 100644--- a/internal/config/config.go+++ b/internal/config/config.go@@ -922,6 +922,8 @@ func load(initLogging bool) (*Config, error) {cfg.HideLocalLogin = systemSettings.HideLocalLogin// Load DisableDockerUpdateActions (hide Docker update buttons)cfg.DisableDockerUpdateActions = systemSettings.DisableDockerUpdateActions+ // Load the Proxmox guest Docker inventory opt-in (env var overrides below)+ cfg.EnableProxmoxGuestDockerInventory = systemSettings.EnableProxmoxGuestDockerInventory// Load TelemetryEnabled (enabled by default; nil means true for upgrading users)if systemSettings.TelemetryEnabled != nil {cfg.TelemetryEnabled = *systemSettings.TelemetryEnabled@@ -1110,6 +1112,7 @@ func load(initLogging bool) (*Config, error) {if enabled, err := strconv.ParseBool(guestDockerInventoryStr); err == nil {cfg.EnableProxmoxGuestDockerInventory = enabledcfg.EnvOverrides["PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY"] = true+ cfg.EnvOverrides["enableProxmoxGuestDockerInventory"] = truelog.Info().Bool("enabled", enabled).Msg("Overriding Proxmox guest Docker inventory setting from environment")} else {log.Warn().diff --git a/internal/config/guest_docker_load_test.go b/internal/config/guest_docker_load_test.gonew file mode 100644index 0000000000..279fe1022a--- /dev/null+++ b/internal/config/guest_docker_load_test.go@@ -0,0 +1,29 @@+package config++import (+ "encoding/json"+ "os"+ "path/filepath"+ "testing"+)++func TestLoadAppliesPersistedGuestDockerInventoryOptIn(t *testing.T) {+ dir := t.TempDir()+ settings := map[string]interface{}{+ "enableProxmoxGuestDockerInventory": true,+ }+ raw, _ := json.Marshal(settings)+ if err := os.WriteFile(filepath.Join(dir, "system.json"), raw, 0o600); err != nil {+ t.Fatal(err)+ }+ t.Setenv("PULSE_DATA_DIR", dir)+ t.Setenv("PULSE_MOCK_MODE", "true")++ cfg, err := Load()+ if err != nil {+ t.Fatal(err)+ }+ if !cfg.EnableProxmoxGuestDockerInventory {+ t.Fatal("persisted guest Docker inventory opt-in was not applied at load")+ }+}diff --git a/internal/config/persistence.go b/internal/config/persistence.goindex d12a590d2b..c1b87c3702 100644--- a/internal/config/persistence.go+++ b/internal/config/persistence.go@@ -1501,6 +1501,12 @@ type SystemSettings struct {// about Pulse being a "monitoring-first" tool vs an orchestration tool.DisableDockerUpdateActions bool `json:"disableDockerUpdateActions"` // Hide update buttons while still detecting updates+ // Proxmox guest Docker inventory - server-wide opt-in for discovering Docker+ // inside LXC guests through a node agent's bounded pct exec probes. Default+ // off; the PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY environment variable+ // overrides and locks this setting when set.+ EnableProxmoxGuestDockerInventory bool `json:"enableProxmoxGuestDockerInventory"`+// UX + privacy knobs (server-wide)ReduceProUpsellNoise bool `json:"reduceProUpsellNoise,omitempty"` // Legacy compatibility preference for proactive commercial promptsdiff --git a/internal/monitoring/canonical_guardrails_test.go b/internal/monitoring/canonical_guardrails_test.goindex bdd0c80040..64e57063a9 100644--- a/internal/monitoring/canonical_guardrails_test.go+++ b/internal/monitoring/canonical_guardrails_test.go@@ -1199,6 +1199,17 @@ func TestProxmoxGuestDockerLXCProbingRequiresExplicitOptIn(t *testing.T) {"m.SetDockerInventoryCollector(nil)","if inventoryEnabled {",},+ // The runtime Settings toggle is the same explicit opt-in, admin-gated+ // through the system settings endpoint; the environment variable stays+ // authoritative and locks the toggle out of the API when set.+ "../api/system_settings.go": {+ `rawRequest["enableProxmoxGuestDockerInventory"]`,+ `h.config.EnvOverrides["PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY"]`,+ "guestDockerInventoryToggleFunc",+ },+ "../config/persistence.go": {+ "EnableProxmoxGuestDockerInventory bool `json:\"enableProxmoxGuestDockerInventory\"`",+ },"../../docs/UNIFIED_AGENT.md": {"Pulse does not use a Proxmox node agent to look inside LXCs by default.","`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_DETECTION=true`",