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.

Align fleet command policy contract docs

rcourtman0d2f192f781b
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 9bc7aa319d..7fc684c5d5 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -543,6 +543,14 @@ profile and assignment columns, but embedded table framing must route through
come from the explicit nested `fleet` objects on `/api/connections`; Settings
surfaces may rank or compact those signals, but they must not reconstruct
them from table copy, status badge labels, or provider-local error strings.
+ The lifecycle-owned command-policy projection must preserve desired server
+ policy and applied agent report truth as separate facts. Desired disabled
+ with applied enabled, and desired enabled with applied disabled, are both
+ attention states for lifecycle surfaces, never in-sync shorthand. If the
+ agent has not reported current command capability or applied policy,
+ lifecycle surfaces must leave the applied side pending or unknown with an
+ explicit reason and must not treat `remoteControl` or `commandsEnabled` as
+ proof that the server desired state is live on the agent.
Standalone host rows must still be recognizable at a glance, but that
identity belongs in the existing row cells rather than new diagnostics
columns: the landing table reuses the `System` and `Endpoint` cells for a
@@ -1933,6 +1941,13 @@ reporting remains the next contract gap: until the runtime report carries a
comparable applied config fingerprint, `/api/connections` must surface desired
config metadata as pending or unknown and must not claim rollout convergence
from host report fields such as `commandsEnabled` or `diskExclude`.
+Command policy follows the same lifecycle truth boundary: the server desired
+command setting is not applied runtime truth until a current agent report
+confirms it. `/api/connections` must expose desired command policy, applied
+agent truth, effective enforcement, and bounded reason separately so lifecycle
+surfaces can show desired-disabled/applied-enabled and
+desired-enabled/applied-disabled as drift or attention, and no-report cases as
+pending or unknown rather than in-sync.
That same canonical /api/auto-register path must also complete the live
post-registration contract after persistence: it must trigger discovery refresh
and emit the canonical `node_auto_registered` WebSocket payload instead of
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index c414a32c9d..99eab08bf1 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -2801,6 +2801,18 @@ credential validity/rotation facts, and command-policy enforcement state used
by Settings and CLI consumers. Frontend settings surfaces may format those
facts, but must not infer a second fleet state from row labels, error-message
text, or provider-local table heuristics.
+The `fleet.commandPolicy` object is the canonical desired/applied convergence
+contract for remote command enablement. It must carry the desired server
+policy, the applied agent-reported truth when available, the effective
+enforcement state, and a bounded reason explaining convergence, drift, missing
+report data, denial, or unsupported capability. Desired disabled with applied
+enabled, and desired enabled with applied disabled, are both drift or
+enforcement-attention states, not in-sync states. When no current agent report
+exists, the applied side remains pending or unknown with an explicit no-report
+reason, and the row must not be considered converged. Top-level
+`remoteControl` may stay as compact presentation compatibility, but it must
+not overstate desired server policy as applied agent runtime truth or collapse
+desired/applied disagreement into one enabled/disabled fact.
That same shared infrastructure-settings boundary also owns install-profile
semantics surfaced by
`frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`:
diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.md
index f5c52f8350..58c3fca9af 100644
--- a/docs/release-control/v6/internal/subsystems/security-privacy.md
+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md
@@ -98,6 +98,13 @@ controls as normal product settings.
must fail closed with the standard license-required response unless the
active entitlement includes the paid `relay` feature.
15. `internal/api/system_settings.go` shared with `api-contracts`: the system settings telemetry and auth controls are both a security/privacy control surface and a canonical API payload contract boundary.
+ Remote command authorization is also a trust boundary: security-facing
+ copy and controls must distinguish desired command policy from applied
+ agent runtime truth. `/api/connections` `fleet.commandPolicy` is the
+ source for desired, applied, enforcement, and reason; top-level
+ `remoteControl` or `commandsEnabled` must not be used to imply that a
+ desired server state is already enforced on the agent when the applied
+ report is missing or divergent.
16. `internal/cloudcp/auth/magiclink.go` shared with `cloud-paid`: control-plane magic-link HMAC handling is both a Pulse Cloud account-access boundary and a security/privacy token-secrecy boundary.
17. `internal/cloudcp/auth/magiclink_store.go` shared with `cloud-paid`: control-plane magic-link persistence is both a Pulse Cloud account-access boundary and a security/privacy storage-hardening boundary.
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index b707bcbb7b..71865accc1 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -252,6 +252,13 @@ AI-only summary payloads, or page-local heuristics.
`state.resources` must share `ContractResourceType`, canonical display
names, and canonical cluster labels instead of publishing separate REST and
broadcast aliases for the same machine.
+ Fleet command posture that reaches resource-facing rows must remain a
+ projection of `/api/connections` `fleet.commandPolicy`: desired server
+ policy, applied agent truth, enforcement, and reason stay separate. Unified
+ resource consumers may show compact remote-control status, but they must not
+ treat top-level `remoteControl` as applied agent runtime truth, and they
+ must preserve desired/applied drift or no-report attention when enriching
+ resource rows.
`internal/unifiedresources/top_level_systems.go`
Explicit linked-host correlation is canonical here: when Kubernetes node
ingest has a resolved backing host agent, the registry must merge that node