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.

Hide duplicate PBS profile identities

[email protected]a49e016246ec
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index a3903ee8a7..eacb5a6af2 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -15,6 +15,11 @@
## Purpose
+Agent-profile assignment presents one actionable identity per connected host.
+When a PBS or PMG provider resource projects an agent ID that is not an active
+host-telemetry surface control, the provider projection is excluded so the
+same physical server cannot appear twice or receive conflicting assignments.
+
First-run security setup persists the canonical authentication environment file
before activating runtime credentials for every deployment shape. A systemd
override may additionally bind service startup, but agent and server lifecycle
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 7f457c701f..6c8082a408 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,22 +1,17 @@
{
"version": 1,
- "base_sha": "83dc17bf71368c64f63824142a1a72368c7f24ab",
- "verified_at": "2026-08-11T14:17:19Z",
+ "base_sha": "66d8e90c0c93b12ae17bde406254a7c734613b03",
+ "verified_at": "2026-08-11T14:34:04Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/api/security.ts",
- "frontend-modern/src/components/Settings/APITokenManager.tsx",
- "frontend-modern/src/components/Settings/APITokenManagerDialogs.tsx",
- "frontend-modern/src/components/Settings/useAPITokenManagerState.ts"
+ "frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts"
],
"content_sha256": {
- "frontend-modern/src/api/security.ts": "28f831a37a8b5030af96aba86654e152b4b6ecc8e795491c354c64e21acc235a",
- "frontend-modern/src/components/Settings/APITokenManager.tsx": "c6e1490bc5f03ea22cb318eaed3c8e8aaf85f74327e9c6c3d0bcc9fd497f0a7f",
- "frontend-modern/src/components/Settings/APITokenManagerDialogs.tsx": "51830fa6bb09b561d0e614614abbb782dcf04c3b5c97533876e27ed9f9031939",
- "frontend-modern/src/components/Settings/useAPITokenManagerState.ts": "685b7bf347899c221945ecd42038ebd644bba114c47b1c1d115f32abe286fde3"
+ "frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts": "85b0efd3b3f002414daeee7c29cff51c9688539452eea74388f4d72a453d6ee2"
},
"routes": [
- "/settings/security/api"
+ "/proxmox/backups",
+ "/settings/infrastructure"
],
"viewports": [
{
@@ -29,18 +24,16 @@
}
],
"states": [
- "API Access with one scoped token in the compact inventory and Rename available alongside scope editing and revocation.",
- "Rename API token dialog with the existing name selected, explanatory credential-continuity copy visible, and input autofocus confirmed.",
- "Whitespace-only rename input with Save disabled, followed by a nonblank replacement name with Save enabled.",
- "Desktop dialog at 1440 by 1000 with a 448-pixel centered panel and no horizontal page overflow.",
- "Narrow dialog at 390 by 844 with a 358-pixel panel, 308-pixel input, and no page or dialog horizontal overflow.",
- "Successful rename with the updated inventory label, unchanged Settings read scope, success notification, closed dialog, and focus restored to Rename."
+ "Proxmox Backups with the mock PBS server backup-vault visible in the Backup server inventory.",
+ "Agent Profiles expanded inside the Pulse Agent installation dialog with 21 actionable assignment controls and no backup-vault provider projection.",
+ "Desktop Agent Profiles at 1440 by 1000 with no document or body horizontal overflow.",
+ "Narrow Agent Profiles at 390 by 844 with the Agent Assignments heading and all 21 assignment controls present, no backup-vault provider projection, and no document or body horizontal overflow."
],
"interactions": [
- "Created one scoped token in the isolated dev runtime, dismissed the one-time credential reveal without reading or recording the token value, and opened Rename from its inventory card.",
- "Cleared the name to whitespace and confirmed Save failed closed, then entered a nonblank replacement.",
- "Inspected and exercised the same dialog at desktop and narrow viewports, including autofocus and overflow boundaries.",
- "Saved the rename through the live API and confirmed the visible name changed while the token's Settings read scope remained present.",
- "Confirmed the success notification, dialog dismissal, and focus restoration to the replacement Rename button after the inventory row re-rendered."
+ "Applied the repository's sanctioned infra entitlement profile only to the ignored isolated runtime billing-state path, then opened the Pro-linked unique-port browser runtime.",
+ "Opened Proxmox Backups and confirmed backup-vault was rendered as a real PBS fixture.",
+ "Opened Settings, Infrastructure, Install Pulse Agent, and Manage agent profiles through visible controls.",
+ "Confirmed the PBS provider fixture was not exposed as an actionable profile assignment while 21 legitimate assignment comboboxes remained available.",
+ "Repeated the assignment-table and overflow checks at desktop and narrow viewports."
]
}
diff --git a/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
index c3839b3051..2acd4558e5 100644
--- a/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
@@ -468,6 +468,69 @@ describe('AgentProfilesPanel V6 agent ID handling', () => {
expect(screen.getAllByRole('combobox')).toHaveLength(1);
});
+ it('excludes a duplicate PBS provider identity when host telemetry owns the profile', async () => {
+ mockResources = [
+ makeAgentResource({
+ id: 'pbs-host-resource',
+ name: 'pbs01',
+ displayName: 'pbs01',
+ platformId: 'pbs01',
+ platformType: 'proxmox-pbs',
+ identity: { hostname: 'pbs01' },
+ agent: { agentId: 'pbs-host-agent' },
+ }),
+ makeAgentResource({
+ id: 'pbs-provider-resource',
+ type: 'pbs',
+ name: 'pbs01',
+ displayName: 'pbs01',
+ platformId: 'pbs01',
+ platformType: 'proxmox-pbs',
+ sourceType: 'api',
+ identity: { hostname: 'pbs01' },
+ agent: { agentId: 'pbs-provider-agent' },
+ }),
+ ];
+ mockWsStore.state.connectedInfrastructure = [
+ makeHostInfrastructureItem({
+ id: 'pbs:pbs01',
+ name: 'pbs01',
+ displayName: 'pbs01',
+ hostname: 'pbs01',
+ scopeAgentId: 'pbs-host-agent',
+ surfaces: [
+ {
+ id: 'agent:pbs-host-agent',
+ kind: 'agent',
+ label: 'Host telemetry',
+ controlId: 'pbs-host-agent',
+ },
+ {
+ id: 'pbs:pbs01',
+ kind: 'pbs',
+ label: 'PBS data',
+ },
+ ],
+ }),
+ ];
+ listAssignmentsMock.mockResolvedValue([
+ {
+ agent_id: 'pbs-host-agent',
+ profile_id: 'profile-a',
+ updated_at: new Date().toISOString(),
+ },
+ ]);
+
+ render(() => <AgentProfilesPanel />);
+
+ const agentCells = await screen.findAllByText('pbs01');
+ expect(agentCells).toHaveLength(1);
+ expect(screen.getAllByRole('combobox')).toHaveLength(1);
+ await waitFor(() => {
+ expect(screen.getByRole('combobox')).toHaveValue('profile-a');
+ });
+ });
+
it('excludes offline assignable resources from agent assignments', async () => {
mockResources = [makeAgentResource({ displayName: 'Offline Agent', status: 'offline' })];
mockWsStore.state.connectedInfrastructure = [
diff --git a/frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts b/frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts
index d9a5640c4a..4c512ab49e 100644
--- a/frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts
+++ b/frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts
@@ -105,7 +105,7 @@ export const useAgentProfilesPanelState = () => {
.filter(isAgentProfileAssignableResource)
.filter((resource) => isConnectedHealthStatus(resource.status))
.filter((resource) => {
- if (resource.type === 'agent') {
+ if (resource.type === 'agent' || resource.type === 'pbs' || resource.type === 'pmg') {
const agentId = getActionableAgentIdFromResource(resource);
return !agentId || activeSurfaceControlIds().agent.has(agentId);
}