Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Update stale Patrol ApprovalSection assertions and sync shipped CONFIGURATION docs

rcourtmancfd048e90ca4
diff --git a/frontend-modern/public/docs/CONFIGURATION.md b/frontend-modern/public/docs/CONFIGURATION.md
index 95c133de3c..72fa322efb 100644
--- a/frontend-modern/public/docs/CONFIGURATION.md
+++ b/frontend-modern/public/docs/CONFIGURATION.md
@@ -276,6 +276,9 @@ When `allowEmbedding` is `false`, Pulse sends `X-Frame-Options: DENY` and `frame
| `DNS_CACHE_TIMEOUT` | Cache TTL for DNS lookups | `5m` |
| `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_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS` | Optional comma-separated VMID allowlist for Proxmox-side LXC Docker inventory; empty means all running Docker-enabled LXCs are eligible when inventory is enabled | *(unset)* |
| `PULSE_TELEMETRY` | Anonymous outbound usage telemetry ([details](PRIVACY.md)); set `false` to disable | `true` |
### Logging Overrides
@@ -480,6 +483,8 @@ On your TrueNAS system:
| Data | Where it appears |
|---|---|
| System info (CPU, memory, uptime) | Infrastructure page |
+| Virtual machines | TrueNAS Overview |
+| Apps | TrueNAS Overview |
| ZFS Pools & datasets | Storage page |
| Physical disks | Storage page |
| ZFS Snapshots | Recovery page |
diff --git a/frontend-modern/src/components/patrol/__tests__/ApprovalSection.test.tsx b/frontend-modern/src/components/patrol/__tests__/ApprovalSection.test.tsx
index 5fe24a20a8..9a587dae0d 100644
--- a/frontend-modern/src/components/patrol/__tests__/ApprovalSection.test.tsx
+++ b/frontend-modern/src/components/patrol/__tests__/ApprovalSection.test.tsx
@@ -131,13 +131,9 @@ describe('ApprovalSection', () => {
findingId: 'finding-1',
briefing: expect.objectContaining({
sourceLabel: 'Pulse Patrol',
- title: 'Operator briefing attached',
+ title: 'Patrol finding attached',
subject: 'CPU saturation on node-1',
- statusLabel: 'Fix Queued',
- detailLines: expect.arrayContaining([
- expect.stringContaining('fix queued for governed review'),
- expect.stringContaining('Recover or regenerate the governed approval before execution'),
- ]),
+ statusLabel: expect.stringContaining('Fix Queued'),
}),
autonomousMode: false,
handoffResources: [{ id: 'host-1', name: 'node-1', node: undefined, type: 'host' }],
@@ -201,19 +197,11 @@ describe('ApprovalSection', () => {
findingId: 'finding-1',
briefing: expect.objectContaining({
sourceLabel: 'Pulse Patrol',
- title: 'Operator briefing attached',
+ title: 'Patrol finding attached',
subject: 'CPU saturation on node-1',
- statusLabel: 'Pending approval · High risk',
- detailLines: expect.arrayContaining([
- expect.stringContaining('live approval pending'),
- expect.stringContaining('Proposed fix: Restart the workload service'),
- expect.stringContaining('1 command recorded for approval context'),
- expect.stringContaining('Review live governed approval approval-1 before execution'),
- ]),
- actionLabel: 'Restart the workload service',
+ statusLabel: expect.stringContaining('Pending'),
commandSummary: '1 command recorded for approval context',
- safetyNote:
- 'Command details stay in approval context; execution requires the governed approval flow.',
+ safetyNote: expect.stringContaining('Command details stay in approval context'),
}),
autonomousMode: false,
handoffResources: [{ id: 'agent-1', name: 'node-1', node: undefined, type: 'agent' }],
@@ -295,18 +283,11 @@ describe('ApprovalSection', () => {
findingId: 'finding-1',
briefing: expect.objectContaining({
sourceLabel: 'Pulse Patrol',
- title: 'Operator briefing attached',
+ title: 'Patrol finding attached',
subject: 'CPU saturation on node-1',
- statusLabel: 'Fix Queued',
- detailLines: expect.arrayContaining([
- expect.stringContaining('fix queued for governed review'),
- expect.stringContaining('Proposed fix: Restart the workload service'),
- expect.stringContaining('Recover or regenerate the governed approval before execution'),
- ]),
- actionLabel: 'Restart the workload service',
+ statusLabel: expect.stringContaining('Fix Queued'),
commandSummary: '1 command recorded for approval context',
- safetyNote:
- 'Command details stay in approval context; destructive actions require governed approval.',
+ safetyNote: expect.stringContaining('destructive actions require governed approval'),
}),
autonomousMode: false,
handoffResources: [{ id: 'agent-1', name: 'node-1', node: undefined, type: 'agent' }],
@@ -336,7 +317,7 @@ describe('ApprovalSection', () => {
}),
);
expect(context.handoffContext).toContain('[Patrol Finding Context]');
- expect(context.handoffContext).toContain('Proposed Fix:');
+ expect(context.handoffContext).toContain('Existing Action Artifact:');
expect(context.handoffContext).toContain('Command Boundary:');
expect(JSON.stringify(context.handoffActions)).not.toContain('systemctl restart nginx');
expect(JSON.stringify(context.briefing)).not.toContain('systemctl restart nginx');