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.

Document inactive platform connection preview defaults

rcourtmanbbf86cac84d1
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 6ae8594ffe..70ac9e8a86 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -1083,6 +1083,13 @@ may not create or update a connection while the admission preview is missing,
loading, unavailable, errored, or over-limit, and save-time backend races must
reuse the same canonical preview/unavailable presentation state instead of
falling back to provider-local billing messages.
+That same lifecycle-adjacent request contract now also assumes canonical
+enablement defaults. New platform-connection preview/test/add payloads must
+inherit the provider default `enabled=true` when the field is omitted, while
+saved-connection preview/test/update payloads must preserve stored enablement
+unless the caller explicitly changes it, so setup surfaces do not accidentally
+preview an unchanged active connection as inactive just because JSON omitted a
+bool field.
That same validation contract must stay coherent across the public
`/api/auto-register` route and the direct canonical handler path used by the
same runtime surface, so Unified Agent/setup entry points do not inherit divergent
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 57ce3186b5..d9929c7441 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -1084,6 +1084,17 @@ Provider-backed preview routes such as `/api/truenas/connections/preview`,
and `/api/vmware/connections/{id}/preview` must serialize that same canonical
preview shape directly; they may not down-scope the response to local counts or
hide current/projected grouped systems from the governed contract.
+That same platform-connections preview contract now also owns candidate-state
+defaulting. New connection preview and test payloads must inherit the
+canonical provider default `enabled=true` when the field is omitted, while
+saved-connection preview, test, and update payloads must preserve the stored
+`enabled` state unless the request explicitly changes it. Shared handlers may
+not let zero-value JSON decode silently turn an unchanged connection into an
+inactive monitored-system candidate.
+Inactive TrueNAS and VMware candidates must stay on that same canonical API
+contract as zero-delta or removal-only previews. Those routes may not fail
+validation just because no projected monitored-system rows remain once the
+candidate is treated as non-counting.
That client contract must also fail closed when older or partial payloads omit
the nested explanation object: the frontend may normalize missing explanation
fields to empty reasons/surfaces plus a safe default summary, but it must not
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index ada8124d4e..d1ee26b8fe 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -1467,6 +1467,11 @@ that result, they must rely on the shared monitored-system ledger preview
contract for current/projected grouped systems and enforced limit verdicts
instead of reconstructing preview copy from page-local recovery inventory or
provider-local connection details.
+That same adjacent preview contract also treats disabled provider connections
+as non-counting candidates. Storage- or recovery-adjacent flows may use the
+shared zero-delta or removal-only preview state for explanation, but they must
+not reinterpret a disabled TrueNAS or VMware connection as active counted
+capacity until the canonical provider configuration is explicitly re-enabled.
That same shared boundary now also assumes settled monitored-system usage
readiness. Storage- or recovery-adjacent transport flows may not interpret the
first store-backed monitor view as commercial truth when provider-owned