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.

Clarify host profile monitoring does not grant command authority

pulse-triage[bot]ba2d94ad3555
diff --git a/internal/models/profile_validation.go b/internal/models/profile_validation.go
index 48aa3bde99..71f6cbd273 100644
--- a/internal/models/profile_validation.go
+++ b/internal/models/profile_validation.go
@@ -44,7 +44,7 @@ var ValidConfigKeys = []ConfigKeyDefinition{
{
Key: "enable_host",
Type: ConfigTypeBool,
- Description: "Enable host monitoring (metrics + command execution)",
+ Description: "Enable host metrics collection; command execution is controlled separately by local authority",
Default: true,
},
{
diff --git a/internal/models/profile_validation_test.go b/internal/models/profile_validation_test.go
index 344db3e924..bfbf686d65 100644
--- a/internal/models/profile_validation_test.go
+++ b/internal/models/profile_validation_test.go
@@ -530,3 +530,16 @@ func TestAgentProfile_MergedConfigReturnsDefensiveCopy(t *testing.T) {
t.Fatalf("parent config mutated through merged map: got %v", parent.Config["enable_docker"])
}
}
+
+// The schema describes monitoring, not the independently constrained command channel.
+func TestHostMonitoringSchemaDoesNotGrantCommandAuthority(t *testing.T) {
+ for _, key := range ValidConfigKeys {
+ if key.Key == "enable_host" {
+ if key.Type != ConfigTypeBool || key.Default != true || key.Description != "Enable host metrics collection; command execution is controlled separately by local authority" {
+ t.Fatalf("host monitoring schema must preserve its boolean/default and independent command boundary: %#v", key)
+ }
+ return
+ }
+ }
+ t.Fatal("enable_host missing from schema")
+}