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.

Merge remote-tracking branch 'origin/main' into claude/msp-hosted-install-token

rcourtman05dfff8431f8
diff --cc docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 8c728cf591,7f4167c8a8..776c588425
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@@ -3410,23 -3410,18 +3410,35 @@@ Agent` secondary handoff against the li
## Current State
+### Hosted runtimes always mint agent install tokens
+
+`POST /api/agent-install-command` mints and embeds an agent install token
+whenever the runtime enforces authentication. A hosted runtime
+(`PULSE_HOSTED_MODE=true`, which every provider MSP client workspace runs)
+always does, so `ConfigHandlers.authConfiguredForAgentLifecycle` now treats
+hosted mode as configured authentication, the same term the router's
+`configTransferAuthenticationConfigured` already carried. Before, a fresh
+client workspace had no local credential, API token, proxy secret or SSO
+provider for the per-config check to find: the host flow answered `200` with
+an empty token and the Proxmox flow built a command with none, so an agent
+installed from the provider's client workspace could not report. Self-hosted
+runtimes with no authentication configured keep the token-less command.
+Regression coverage: `TestHostedRuntimeMintsAgentInstallTokensWithoutLocalAuth`
+and `TestSelfHostedRuntimeWithoutAuthStillOmitsInstallToken` in
+`internal/api/configapi/hosted_agent_install_token_test.go`.
+
+ ### Org managers reach the agent install path in their own organization
+
+ An owner or admin of the selected organization now receives
+ `settingsCapabilities.infrastructureRead` from `/api/security/status`, matching
+ the `ensureAdminSession` rule that already let them through the Infrastructure
+ routes. A provider opening a client workspace from the Pulse Account portal
+ therefore lands on Settings → Infrastructure with the host install flow open,
+ instead of a navigation that hid the page and fell through to General. The
+ install tokens it generates stay bound to that organization; nothing about token
+ scope, agent registration or reporting identity changes. See the api-contracts
+ contract, rule 35, for the capability rule.
+
### Auto-register preserves the operator's stored TLS choice
Re-registering an existing Proxmox node through the canonical auto-register
diff --cc docs/release-control/v6/internal/subsystems/storage-recovery.md
index 857bca4bb3,ed994ae27f..4aa2124c9c
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@@ -2618,15 -2618,17 +2618,26 @@@ vdev layout is reported` i
## Current State
+### Hosted install tokens persist like any other workspace token
+
+Hosted client workspaces now mint agent install tokens where they previously
+returned none. Each token is issued through `issueAndPersistAgentInstallToken`
+into the workspace's own config persistence, the same store and write path as
+every other API token, so backup, restore and recovery of a client workspace
+carry these tokens without any new storage surface. A restored workspace keeps
+its agents' tokens; revoking one remains Settings → Infrastructure → Tokens.
+
+ ### Org managers see org-bound settings, not recovery administration
+
+ `/api/security/status` now grants an owner or admin of the selected
+ organization the org-bound `infrastructureRead`, `availabilityRead` and
+ `reportingRead` capabilities, because those routes already admit org managers
+ and read only that organization's state. `systemSettingsRead`, which gates
+ System → Recovery with backup polling and configuration export/import, stays
+ withheld from every org-scoped session, so an org manager is not offered
+ instance recovery or configuration transfer. See the api-contracts contract,
+ rule 35.
+
### TLS verification preference survives node re-registration
A PVE or PBS node whose operator disabled certificate verification keeps that