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.

Complete recovery controls governance evidence

rcourtman8c049c9983f1
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index e44f3d75cf..3de4cd6483 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -749,8 +749,13 @@ evidence is absent.
Repair entries remain handoffs to existing lifecycle operations:
`copy_upgrade_command` renders a local operator command and
-`allow_reenroll` invokes the existing removed-agent flow. They never enqueue a
-remote command or create an action plan. A stale agent with an unknown or
+`allow_reenroll` invokes the existing removed-agent flow. Agent Doctor exposes
+that supported action for removed host, Docker / Podman, and Kubernetes
+diagnostics, disables the control while the request is pending, reports the
+result, and refreshes diagnostics after success. The connection ID's typed
+prefix selects the matching lifecycle endpoint; an absent ID or unknown type
+must fail closed without issuing a request. They never enqueue a remote command
+or create an action plan. A stale agent with an unknown or
explicitly unsupported runtime family, or with FreeBSD/pfSense installer state
that the server cannot verify, must receive an unsupported handoff rather than
a guessed command. A non-empty legacy Linux distribution identifier is not
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index e099998a0c..0bc6c560e9 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -9240,6 +9240,16 @@ credential remains denied for that identity after re-enrollment, even if it is
still valid for another active agent. The admin-only `allow-reenroll` route is
the explicit policy override that permits the prior credential again.
+The browser connection API maps removal by typed connection identity:
+`agent:{id}` uses the host-agent delete route, `docker:{id}` uses the Docker
+runtime delete route, and `kubernetes:{id}` uses the Kubernetes cluster delete
+route. Agent Doctor applies the same typed routing to the three existing
+admin-only `allow-reenroll` endpoints. Unknown types and missing identifiers
+fail locally rather than falling through to a different lifecycle authority.
+Successful allowance is followed by a diagnostic refresh so the rendered
+read model cannot continue to advertise a removal block that has just been
+cleared.
+
`internal/api/host_agent_removal_lifecycle_integration_test.go` exercises the
real router middleware, token persistence/reload, monitor reconstruction,
delete and config handlers, generated install token, alias re-enrollment, and
diff --git a/frontend-modern/src/components/Settings/__tests__/infrastructureAgentDoctorModel.test.ts b/frontend-modern/src/components/Settings/__tests__/infrastructureAgentDoctorModel.test.ts
index 8849c51f12..7a91fccdaa 100644
--- a/frontend-modern/src/components/Settings/__tests__/infrastructureAgentDoctorModel.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/infrastructureAgentDoctorModel.test.ts
@@ -550,6 +550,11 @@ describe('Agent Doctor model', () => {
expect(collectInfrastructureAgentDoctorTargets(base).map((target) => target.status)).toContain(
'removed',
);
+ expect(
+ collectInfrastructureAgentDoctorTargets(base).find(
+ (target) => target.connectionId === 'agent:removed-host',
+ )?.diagnostic?.repairActions,
+ ).toEqual([expect.objectContaining({ code: 'allow_reenroll', supported: true })]);
expect(
collectInfrastructureAgentDoctorTargets({
...base,