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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Lock VMware vCenter backend API contract
rcourtman1be4fb724fad
diff --git a/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md b/docs/release-control/v6/internal/SOURCE_OF_TRUTH.mdindex d0e375e60b..f95b5e5924 100644--- a/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md+++ b/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md@@ -534,6 +534,11 @@ acceptable phase-1 model if implementation starts.`docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ALERTS_AND_ASSISTANT_SPEC.md`as the canonical shared-alert, shared-timeline, Assistant-read, andAssistant-control-exclusion boundary for the VMware phase-1 floor.+12. Backend API/runtime contract:+ If implementation starts, it should also follow+ `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md`+ as the canonical public API-boundary, session-ownership, provider-health,+ and negative-space contract for the VMware phase-1 floor.## Cross-Repo Contractsdiff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.mdnew file mode 100644index 0000000000..a0a6724f9c--- /dev/null+++ b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md@@ -0,0 +1,218 @@+# VMware vCenter Phase-1 API Runtime Spec++Last updated: 2026-03-30+Status: PLANNED+Governance surfaces:+- `status.json.candidate_lanes.platform-admission-execution`+- `docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md`+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md`+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md`++## Intent++This document locks the canonical backend contract for VMware phase 1 before+runtime work starts.++It answers the backend questions that should not be guessed during+implementation:++1. what the public Pulse API surface is+2. how the two official VMware API families fit under one connection+3. who owns poll health and saved-connection test state+4. what error classifications the shared settings surface can rely on+5. what public API surface must explicitly not exist in phase 1++## Governing Rule++If `vmware-vsphere` implementation starts, Pulse phase 1 should expose one+saved VMware connection model and one public settings API boundary, even if the+backend needs more than one authenticated VMware client internally.++That means:++1. the operator configures one `vCenter` connection+2. the public Pulse API surface remains `/api/vmware/connections*`+3. the backend may use both the vSphere Automation API and the VI JSON API+ under that one connection+4. the operator must not manage those API families separately+5. phase-1 health is only green when the declared phase-1 floor is actually+ reachable through the chosen runtime path++## Public API Boundary++The canonical public backend route family for phase 1 is:++1. `GET /api/vmware/connections`+2. `POST /api/vmware/connections`+3. `PUT /api/vmware/connections/{id}`+4. `DELETE /api/vmware/connections/{id}`+5. `POST /api/vmware/connections/test`+6. `POST /api/vmware/connections/{id}/test`++That route family is:++1. admin-only+2. platform-connections-only+3. the only public setup and health API for VMware phase 1++Phase 1 must not add public operator routes such as:++1. `/api/vmware/hosts`+2. `/api/vmware/vms`+3. `/api/vmware/datastores`+4. `/api/vmware/events`+5. `/api/vmware/tasks`+6. `/api/vmware/alarms`+7. `/api/vmware/...` control routes for VM, host, datastore, or cluster+ actions++Shared product surfaces should consume VMware through canonical resources,+shared alerts, shared monitoring history, and shared AI tools instead of+growing a provider-local public API family.++## Session And Authentication Contract++The official APIs clearly show two different read paths:++1. vSphere Automation API session bootstrap through `POST /api/session`+2. VI JSON session bootstrap through `SessionManager.Login`++Phase-1 contract:++1. one saved VMware connection may own more than one authenticated upstream+ client under the backend runtime+2. Pulse must not make the support floor depend on unproven cross-family+ session reuse+3. until live validation proves otherwise, the safe contract is:+ - one connection record+ - one provider instance+ - distinct authenticated clients for Automation API and VI JSON API when+ the declared floor needs both++This is a design choice informed by the official docs, not a claim that shared+session reuse is impossible. Shared session reuse may be adopted later if live+proof shows it is reliable across the supported floor.++## Saved-Connection Test Contract++Draft and saved-connection tests are support-floor gates, not simple TCP+checks.++`POST /api/vmware/connections/test` and+`POST /api/vmware/connections/{id}/test` should therefore validate:++1. endpoint reachability+2. TLS behavior under the selected trust mode+3. Automation API session bootstrap+4. VI JSON login+5. enough read access to prove the declared phase-1 floor is realistic++Phase-1 rule:++1. a connection test should not report healthy if only one required VMware API+ family succeeds+2. partial upstream success should classify as a floor failure, not as a green+ setup result+3. saved-connection tests must reuse stored secrets server-side and may accept+ an edit overlay payload without requiring masked-secret re-entry++## Runtime Health And Poll Summary Contract++The list response on `GET /api/vmware/connections` should remain the canonical+operator-facing runtime summary for those configured connections.++That summary should include:++1. redacted config+2. poll health:+ - `intervalSeconds`+ - last success+ - last failure+ - consecutive failures+ - last error classification+3. observed contribution summary aligned to the declared support floor:+ - top-level host or monitored-system identity+ - `agent` count+ - `vm` count+ - `storage` count+ - last collected timestamp++Monitoring owns that summary at runtime. Saved-connection test paths must+update the same canonical health owner so row-level re-tests in settings do not+drift from the next list read.++## Provider Ownership Contract++Phase-1 VMware runtime should follow one-provider-per-saved-connection+ownership.++That means:++1. each saved VMware connection owns one provider instance+2. that provider instance may own both the Automation API client and the VI+ JSON client+3. config changes that affect connectivity or auth should replace the live+ provider instance instead of leaving stale clients in memory+4. poll cadence, next poll, last success, and last error belong to that one+ provider owner++The backend may optimize internally later, but the contract boundary stays one+connection and one operator-facing health owner.++## Failure Classification Floor++Where the backend can distinguish the failure mode honestly, the shared VMware+settings surface should get stable classifications at least for:++1. `endpoint_unreachable`+2. `tls_validation_failed`+3. `auth_invalid`+4. `permission_denied`+5. `unsupported_version_floor`+6. `phase1_floor_unmet`+7. `unknown`++If the upstream API does not provide enough detail, the backend should fail+closed into `unknown` or `phase1_floor_unmet` rather than guessing at a more+specific class.++## Negative Space++This backend contract also owns what phase 1 must not do:++1. no public VMware inventory-read API family parallel to canonical resource+ APIs+2. no public VMware alarm/event/task browser API family+3. no public VMware control API family+4. no backend shortcut that bypasses shared AI/runtime tools for VMware read+ or control++That means Assistant read remains on shared `pulse_read` / `pulse_query`, and+Assistant control remains out of scope.++## Current Blocker++As of 2026-03-30, there is still no recorded live VMware capability in+`/Volumes/Development/pulse/LOCAL_CAPABILITIES.md`.++So this contract is ready for implementation planning, but these points still+need live proof before VMware can be called supported:++1. exact dual-client or shared-session behavior across the supported version+ floor+2. exact minimum read set that is strong enough for a green connection result+3. exact error mapping quality on real auth, TLS, and permission failures+4. exact provider-rebind behavior after connection edits++## Primary Source Basis++1. Automation API session bootstrap:+ [CIS Session create](https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/session/post/)+2. VI JSON login:+ [Session Manager Login](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/SessionManager/moId/Login/post/)+3. event retrieval:+ [Event Manager Query Events](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/EventManager/moId/QueryEvents/post/)+4. host-plus-child performance:+ [Performance Manager Query Perf Composite](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/PerformanceManager/moId/QueryPerfComposite/post/)+5. recent-task context:+ [Virtual Machine Get Recent Task](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/VirtualMachine/moId/recentTask/get/)diff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.mdindex 1353f87079..9551410cb9 100644--- a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md+++ b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md@@ -4,6 +4,7 @@ Last updated: 2026-03-30Status: PLANNEDGovernance surfaces:- `status.json.candidate_lanes.platform-admission-execution`+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md`- `docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md`- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md`@@ -142,12 +143,17 @@ of being hard-coded into a support claim up front:password or also a second VMware-native auth form2. whether certificate/thumbprint pinning should be required, optional, ordeferred behind the shared TLS contract-3. whether one session bootstrap can be reused cleanly across the vSphere- Automation API and the Virtual Infrastructure JSON API in Pulse’s poller- model, or whether the two API families need distinct authenticated clients-4. the exact minimum privilege set required for inventory, datastore, alarm,+3. the exact minimum privilege set required for inventory, datastore, alarm,event, snapshot, and performance reads+The session-shape contract is now narrower than that unknown. The companion+backend contract in+`docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md`+locks one safe rule for implementation: Pulse may keep distinct authenticated+Automation API and VI JSON clients under one saved VMware connection and must+not make phase-1 support depend on unproven shared-session reuse across those+API families.+## Phase-1 Proof PrerequisitesBefore slice 1 can be called proven, all of these must exist:@@ -188,6 +194,8 @@ available in this workspace.The companion live-proof checklist for the first real environment is`docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md`.+The companion backend contract for implementation is+`docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md`.## Primary Source Basisdiff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.mdindex 2a83e1dea7..3c5e7cf195 100644--- a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md+++ b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md@@ -4,6 +4,7 @@ Last updated: 2026-03-30Status: PLANNEDGovernance surfaces:- `status.json.candidate_lanes.platform-admission-execution`+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md`- `docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md`- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ALERTS_AND_ASSISTANT_SPEC.md`- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md`@@ -120,6 +121,8 @@ Pass when:1. the draft validates through the shared VMware setup path2. failures classify clearly instead of collapsing into generic unknown error3. the path does not require a unified agent or direct `ESXi` routing+4. a green result reflects the declared phase-1 floor rather than one partial+ VMware API-family success### `VC-2` Saved Connection Retest@@ -134,6 +137,8 @@ Pass when:1. the saved-connection test succeeds without re-entering masked secrets2. edited saved-connection tests can reuse stored secrets server-side3. the list reflects refreshed last-success or last-error state+4. the saved-connection contract still hides any dual-client runtime detail+ behind one connection health result### `VC-3` Inventory Projection Floordiff --git a/docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md b/docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.mdindex 99a5d36ddc..6707f79f03 100644--- a/docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md+++ b/docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md@@ -92,12 +92,16 @@ Owners:Slice contract:- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md`+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md`Deliver:- `vCenter` added only through the shared platform-connections workspace- one saved-connection contract for create, update, masked-secret preservation,test, health, and contribution summary+- one backend contract for VMware session ownership, provider ownership, dual+ API-family access, and stable failure classification under that same saved+ connection model- explicit disabled/default behavior, reconnect semantics, and credentialownership on the shared platform-connections pathdiff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex de4031562f..e6d5e1b988 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -3551,6 +3551,11 @@"path": "docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ALERTS_AND_ASSISTANT_SPEC.md","kind": "file"},+ {+ "repo": "pulse",+ "path": "docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md",+ "kind": "file"+ },{"repo": "pulse","path": "docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md",diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 0045a9484e..408aff0512 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -525,6 +525,12 @@ API-backed workspace, preserve the saved-connection test and health model, andkeep direct `ESXi` out of the phase-1 route and install model. Lifecycle-adjacent flows must not invent a VMware-only setup shell or reframe unified-agent host install as the bootstrap requirement for VMware support.+That same lifecycle-owned VMware workspace must also keep the backend-runtime+shape hidden behind one operator-facing connection model. The settings surface+may show one VMware connection's poll health, last error classification, and+observed contribution summary, but it must not force the operator to manage+separate Automation API versus VI JSON sessions or understand multi-client+runtime wiring just to use the shared platform-connections path.That same infrastructure workspace boundary now also owns the first-runhandoff copy for new operators. `InfrastructureWorkspace.tsx` must tell a newPulse user to start with `Install on a host` to add the first monitoreddiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 7866365059..fdd6cdf4a6 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -685,6 +685,21 @@ and see last-sync plus discovered contribution summaries on the same settingssurface. Pulse does not promise a separate TrueNAS-only onboarding wizard,agent-required bootstrap, or public provider-local app/log/config APIs at thisfloor.+That same infrastructure platform-connections contract is also the only+acceptable public backend boundary for phase-1 VMware. If `vmware-vsphere`+implementation starts, `/api/vmware/connections` must be the canonical+admin-only route family for listing, creating, updating, deleting, and testing+stored `vCenter` integrations under one saved-connection model. A green draft+or saved-connection test must mean the declared phase-1 floor is reachable+through the backend runtime, not merely that one of VMware's API families+answered. Pulse may keep separate vSphere Automation API and VI JSON clients+under that one saved connection, but the public API contract must hide that+multi-client runtime detail behind one canonical health and contribution+summary surface. Phase 1 must also keep the negative space explicit: no public+`/api/vmware/hosts`, `/api/vmware/vms`, `/api/vmware/datastores`,+`/api/vmware/events`, `/api/vmware/tasks`, or VMware control routes should be+introduced while inventory, alerts, history, and Assistant reads still route+through the shared canonical Pulse surfaces.That same backend API boundary now also owns the negative space aroundassistant control. Wiring native TrueNAS app actions into`internal/api/router.go`, `internal/api/ai_handler.go`, or adjacent backenddiff --git a/docs/release-control/v6/internal/subsystems/monitoring.md b/docs/release-control/v6/internal/subsystems/monitoring.mdindex 2869b8722c..60aec03319 100644--- a/docs/release-control/v6/internal/subsystems/monitoring.md+++ b/docs/release-control/v6/internal/subsystems/monitoring.md@@ -94,6 +94,12 @@ still collapse onto one canonical VMware source classification and oneprovider-scoped identity model for hosts, VMs, and datastores. Monitoring mustnot leak `vcenter` versus `esxi` transport distinctions into downstreamresource identity or source filtering.+That same VMware monitoring boundary now also includes provider ownership. One+saved VMware connection should map to one provider owner and one canonical poll+health record, even if that provider keeps separate authenticated Automation+API and VI JSON clients internally. Connection edits that change host, auth,+TLS, or poll cadence must replace that live provider state instead of leaving+stale VMware sessions resident until restart.That same VMware monitoring boundary now also includes the proof rule forhistory depth. `PerformanceManager.QueryPerfComposite` clearly supportshost-plus-child metric collection, but exact VM and datastore history fidelity