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.

Stop warning for permitted unsigned remote config

[email protected]f1ae0af646f4
diff --git a/internal/remoteconfig/client.go b/internal/remoteconfig/client.go
index 853f9a7d3a..83c4f764bc 100644
--- a/internal/remoteconfig/client.go
+++ b/internal/remoteconfig/client.go
@@ -255,7 +255,7 @@ func (c *Client) Fetch(ctx context.Context) (map[string]interface{}, *bool, erro
Msg("Remote config signature required but missing")
return nil, nil, fmt.Errorf("config signature required but missing")
} else if len(configResp.Config.Settings) > 0 || configResp.Config.CommandsEnabled != nil {
- logger.Warn().
+ logger.Debug().
Str("action", "missing_signature_skip_verification").
Str("agent_id", agentID).
Str("response_agent_id", responseAgentID).
diff --git a/internal/remoteconfig/client_additional_test.go b/internal/remoteconfig/client_additional_test.go
index c7a5f10f72..819888c66e 100644
--- a/internal/remoteconfig/client_additional_test.go
+++ b/internal/remoteconfig/client_additional_test.go
@@ -616,6 +616,9 @@ func TestClientFetchLogsStructuredContextWhenSignatureMissing(t *testing.T) {
if entry["component"] != "remote_config_client" {
t.Fatalf("expected component remote_config_client, got %#v", entry["component"])
}
+ if entry["level"] != "debug" {
+ t.Fatalf("expected permitted unsigned config to log at debug, got %#v", entry["level"])
+ }
if entry["action"] != "missing_signature_skip_verification" {
t.Fatalf("expected action missing_signature_skip_verification, got %#v", entry["action"])
}