mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-16 19:50:10 +00:00
Relax container SSH check for temperature monitoring (ref #727)
This commit is contained in:
parent
15e96458e2
commit
8b7ff2ad48
1 changed files with 3 additions and 2 deletions
|
|
@ -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) == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue