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.

Relax container SSH check for temperature monitoring (ref #727)

[email protected]a68f2de3e6ba
diff --git a/internal/monitoring/temperature.go b/internal/monitoring/temperature.go
index 4e53e6cfd7..e5726f3ef3 100644
--- a/internal/monitoring/temperature.go
+++ b/internal/monitoring/temperature.go
@@ -177,10 +177,11 @@ func (tc *TemperatureCollector) CollectTemperatureWithProxy(ctx context.Context,
}
if isContainer && !devModeAllowSSH {
+ // Warn but allow if key is present (legacy behavior restoration)
+ // We don't return here, allowing the code to fall through to the SSH key check
log.Warn().
Str("node", nodeName).
- Msg("Temperature collection disabled: containerized Pulse requires pulse-sensor-proxy. Mount /run/pulse-sensor-proxy or set PULSE_DEV_ALLOW_CONTAINER_SSH=true for development only")
- return &models.Temperature{Available: false}, nil
+ Msg("Temperature collection using direct SSH from container. This is insecure. Recommend using pulse-sensor-proxy.")
}
if strings.TrimSpace(tc.sshKeyPath) == "" {