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.

Surface standalone agent identity in infrastructure settings

rcourtman8b6a42918696
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 3a4dabbe5c..7bb497c6f9 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -235,6 +235,11 @@ an add-only capacity posture.
should only raise row-level attention when an attached or standalone agent
has an update available, while the exact installed version belongs in the
add/edit detail surfaces rather than as a permanent top-level table column.
+ Standalone host rows must still be recognizable at a glance, but that
+ identity belongs in the existing row cells rather than new diagnostics
+ columns: the landing table reuses the `System` and `Endpoint` cells for a
+ short host fact such as OS/platform plus a reported endpoint, while the
+ richer agent identity facts stay in the edit/detail surface.
Public demo and other read-only settings posture must stay reporting-first
on that same lifecycle-owned workspace boundary: infrastructure workspace
routes may retain install and platform setup surfaces for manageable
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 93cb09db86..aac9f56508 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -439,7 +439,12 @@ the canonical monitored-system blocked payload.
carries the
installed agent version, the current server-side target agent version when
it is meaningful, and whether an update is available, so settings surfaces
- do not invent frontend-local version comparison rules.
+ do not invent frontend-local version comparison rules. That same shared
+ contract also carries compact `agentIdentity` facts on agent-backed
+ connections, including the reported hostname, report IP, platform/OS,
+ kernel, architecture, and command capability, so settings surfaces can
+ render recognizable standalone-host identity without a second inventory
+ fetch or frontend-local host reconciliation rules.
## Forbidden Paths
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 0b159283ab..4ffad27e64 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -272,7 +272,11 @@ work extends shared components instead of creating new local variants.
always-on version column for Pulse Agent; exact version text belongs in the
edit/detail surfaces, while the landing table only surfaces a compact
warning badge when an attached or standalone agent actually has an update
- available.
+ available. That same table boundary must reuse the existing `System` and
+ `Endpoint` cells for compact standalone-agent identity such as
+ `Unraid 7.1.0` plus a reported host address; it must not add a new
+ diagnostics column just to surface host facts the unified agent already
+ reports.
That same shared shell boundary now owns one canonical infrastructure
destination in the Settings sidebar. `InfrastructureWorkspace.tsx` owns the
source-manager landing inside that destination, while route-backed add flows
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 76b2b367c5..86f44e039e 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -248,6 +248,10 @@ querying, and the operator-facing storage health presentation layer.
platform row is collecting additional host telemetry through Pulse Agent,
but they must not reinterpret attached agents as separate protected
systems, duplicate recovery inventory rows, or a storage-local ownership
+ model. The same shared `/api/connections` contract also owns compact
+ `agentIdentity` facts for agent-backed rows; storage and recovery may read
+ that metadata when they need to label a represented host, but they must not
+ rebuild OS/endpoint identity from recovery inventory or alias heuristics.
taxonomy. When that grouped platform row is a Proxmox cluster, storage and
recovery must also treat the backend-authored cluster moniker as the
canonical row identity instead of re-expanding cluster-member agents into
diff --git a/frontend-modern/src/api/__tests__/connections.test.ts b/frontend-modern/src/api/__tests__/connections.test.ts
index 12650300ff..ea1721eb6d 100644
--- a/frontend-modern/src/api/__tests__/connections.test.ts
+++ b/frontend-modern/src/api/__tests__/connections.test.ts
@@ -104,6 +104,52 @@ describe('ConnectionsAPI', () => {
});
});
+ it('list() preserves agent identity metadata on agent-backed connections', async () => {
+ const connections: Connection[] = [
+ {
+ id: 'agent:tower',
+ type: 'agent',
+ name: 'Tower',
+ address: 'Tower',
+ state: 'active',
+ stateReason: '',
+ enabled: true,
+ surfaces: ['host'],
+ scope: { host: true },
+ lastSeen: '2026-04-23T13:00:00Z',
+ lastError: null,
+ source: 'agent',
+ agentIdentity: {
+ hostname: 'tower',
+ platform: 'unraid',
+ osName: 'Unraid',
+ osVersion: '7.1.0',
+ kernelVersion: '6.12.0',
+ architecture: 'x86_64',
+ reportIp: '192.168.0.10',
+ commandsEnabled: true,
+ },
+ capabilities: { supportsPause: false, supportsScope: false, supportsTest: false },
+ },
+ ];
+ mockedApiFetchJSON.mockResolvedValueOnce({ connections });
+
+ const result = await ConnectionsAPI.list();
+
+ expect(result.connections[0]).toMatchObject({
+ agentIdentity: {
+ hostname: 'tower',
+ platform: 'unraid',
+ osName: 'Unraid',
+ osVersion: '7.1.0',
+ kernelVersion: '6.12.0',
+ architecture: 'x86_64',
+ reportIp: '192.168.0.10',
+ commandsEnabled: true,
+ },
+ });
+ });
+
it('list() preserves canonical host alias metadata on connections and grouped members', async () => {
mockedApiFetchJSON.mockResolvedValueOnce({
connections: [
diff --git a/frontend-modern/src/api/connections.ts b/frontend-modern/src/api/connections.ts
index a19d4876d5..120342e801 100644
--- a/frontend-modern/src/api/connections.ts
+++ b/frontend-modern/src/api/connections.ts
@@ -32,6 +32,17 @@ export interface ConnectionError {
at: string;
}
+export interface ConnectionAgentIdentity {
+ hostname?: string;
+ platform?: string;
+ osName?: string;
+ osVersion?: string;
+ kernelVersion?: string;
+ architecture?: string;
+ reportIp?: string;
+ commandsEnabled?: boolean;
+}
+
export interface Connection {
id: string;
type: ConnectionType;
@@ -46,6 +57,7 @@ export interface Connection {
lastSeen: string | null;
lastError: ConnectionError | null;
source: ConnectionSource;
+ agentIdentity?: ConnectionAgentIdentity;
agentVersion?: string;
expectedAgentVersion?: string;
agentUpdateAvailable?: boolean;
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
index 00f19ddc9b..b25b1f1944 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
@@ -8,7 +8,7 @@ import {
type Accessor,
type Component,
} from 'solid-js';
-import { Plus, RotateCw, Server, SlidersHorizontal } from 'lucide-solid';
+import { Plus, RotateCw, SlidersHorizontal } from 'lucide-solid';
import SettingsPanel from '@/components/shared/SettingsPanel';
import {
Table,
@@ -254,7 +254,6 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
title="Infrastructure systems"
description="Configured systems and discovered candidates grouped by platform or host type. Install Pulse Agent on each machine where you want full node-local telemetry."
noPadding
- icon={<Server class="h-5 w-5" strokeWidth={2} />}
action={headerActions()}
>
<Show when={!useCardLayout()}>
@@ -335,14 +334,30 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
{(row) => {
return (
<>
- <TableRow class="border-b border-border-subtle">
+ <TableRow
+ class={`border-b border-border-subtle ${
+ row.isCluster ? 'bg-surface-alt/40' : ''
+ }`}
+ >
<TableCell class="py-1 pl-3 pr-3 align-top">
<div
- class={`text-[13px] text-base-content/80 ${wrappedFieldClass}`}
+ class={`text-[13px] ${
+ row.isCluster
+ ? 'font-medium text-base-content'
+ : 'text-base-content/80'
+ } ${wrappedFieldClass}`}
title={row.name}
>
{row.name}
</div>
+ <Show when={row.isCluster && row.subtitle}>
+ <div class="mt-0.5 text-[11px] text-muted">{row.subtitle}</div>
+ </Show>
+ <Show when={!row.isCluster && row.identitySubtitle}>
+ <div class="mt-0.5 text-[11px] text-muted">
+ {row.identitySubtitle}
+ </div>
+ </Show>
</TableCell>
<TableCell class="px-3 py-1 align-top">
@@ -522,7 +537,9 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
<Show when={actionColumnVisible()}>
<TableCell class="px-3 py-1 align-top text-right">
- <span class="text-xs text-muted">Managed by cluster</span>
+ <span class="text-xs text-muted" aria-hidden="true">
+ —
+ </span>
</TableCell>
</Show>
</TableRow>
@@ -678,11 +695,21 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
return (
<article class="rounded-md border border-border-subtle bg-surface p-3 shadow-sm">
<header class="flex items-start justify-between gap-2">
- <div
- class="min-w-0 flex-1 break-words text-[13px] font-medium text-base-content"
- title={row.name}
- >
- {row.name}
+ <div class="min-w-0 flex-1">
+ <div
+ class="break-words text-[13px] font-medium text-base-content"
+ title={row.name}
+ >
+ {row.name}
+ </div>
+ <Show when={row.isCluster && row.subtitle}>
+ <div class="mt-0.5 text-[11px] text-muted">{row.subtitle}</div>
+ </Show>
+ <Show when={!row.isCluster && row.identitySubtitle}>
+ <div class="mt-0.5 text-[11px] text-muted">
+ {row.identitySubtitle}
+ </div>
+ </Show>
</div>
<span
class={`${presentation.badgeClassName} flex-shrink-0`}
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index 3c06d9ddf6..e27282bca4 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -20,6 +20,8 @@ import { InfrastructureInstallerSection } from './InfrastructureInstallerSection
import { InfrastructureSourceManager } from './InfrastructureSourceManager';
import { InfrastructureSourcePicker } from './InfrastructureSourcePicker';
import {
+ connectionAgentEndpointDisplay,
+ connectionAgentIdentitySummary,
connectionAgentVersionPresentation,
connectionLastActivityText,
type InfrastructureSystemRow,
@@ -376,6 +378,14 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
const removeConfirming = () => rowActions.confirmingRemove(connection.id);
const error = () => rowActions.actionError(connection.id);
const versionPresentation = () => connectionAgentVersionPresentation(connection);
+ const identitySummary = () => connectionAgentIdentitySummary(connection);
+ const endpointDisplay = () => connectionAgentEndpointDisplay(connection);
+ const infoCard = (label: string, value: string) => (
+ <div class="rounded-lg border border-border bg-surface-alt px-3 py-3">
+ <div class="text-[11px] font-medium uppercase tracking-wide text-muted">{label}</div>
+ <div class="mt-1 text-sm text-base-content">{value}</div>
+ </div>
+ );
return (
<div class="space-y-6 p-4">
@@ -386,8 +396,11 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
Pulse Agent
</div>
<div class="text-lg font-semibold text-base-content">{connection.name}</div>
- <Show when={connection.address && connection.address !== connection.name}>
- <div class="break-words text-sm text-muted">{connection.address}</div>
+ <Show when={identitySummary()}>
+ {(summary) => <div class="text-sm text-muted">{summary()}</div>}
+ </Show>
+ <Show when={endpointDisplay()}>
+ {(endpoint) => <div class="break-words text-sm text-muted">{endpoint()}</div>}
</Show>
</div>
<span class="inline-flex items-center rounded-full border border-border bg-surface-alt px-2.5 py-1 text-xs font-medium text-base-content">
@@ -395,21 +408,9 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
</span>
</div>
- <div class="mt-4 grid gap-3 sm:grid-cols-2">
- <div class="rounded-lg border border-border bg-surface-alt px-3 py-3">
- <div class="text-[11px] font-medium uppercase tracking-wide text-muted">
- Connection state
- </div>
- <div class="mt-1 text-sm text-base-content">{connection.state}</div>
- </div>
- <div class="rounded-lg border border-border bg-surface-alt px-3 py-3">
- <div class="text-[11px] font-medium uppercase tracking-wide text-muted">
- Last seen
- </div>
- <div class="mt-1 text-sm text-base-content">
- {connection.lastSeen ? connection.lastSeen : 'No activity yet'}
- </div>
- </div>
+ <div class="mt-4 grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
+ {infoCard('Connection state', connection.state)}
+ {infoCard('Last seen', connection.lastSeen ? connection.lastSeen : 'No activity yet')}
<Show when={versionPresentation()}>
{(presentation) => (
<div class="rounded-lg border border-border bg-surface-alt px-3 py-3">
@@ -425,6 +426,27 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
</div>
)}
</Show>
+ <Show when={identitySummary()}>
+ {(summary) => infoCard('Operating system', summary())}
+ </Show>
+ <Show when={connection.agentIdentity?.hostname?.trim()}>
+ {(hostname) => infoCard('Reported hostname', hostname())}
+ </Show>
+ <Show when={connection.agentIdentity?.reportIp?.trim()}>
+ {(reportIp) => infoCard('Reported IP', reportIp())}
+ </Show>
+ <Show when={connection.agentIdentity?.kernelVersion?.trim()}>
+ {(kernelVersion) => infoCard('Kernel', kernelVersion())}
+ </Show>
+ <Show when={connection.agentIdentity?.architecture?.trim()}>
+ {(architecture) => infoCard('Architecture', architecture())}
+ </Show>
+ <Show when={connection.agentIdentity}>
+ {infoCard(
+ 'Remote commands',
+ connection.agentIdentity?.commandsEnabled ? 'Enabled' : 'Not enabled',
+ )}
+ </Show>
</div>
<Show when={connection.lastError?.message}>
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
index 9f453f1fea..711b09c69e 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
@@ -465,6 +465,82 @@ describe('InfrastructureWorkspace', () => {
expect(screen.getByTestId('proxmox-section')).toBeInTheDocument();
});
+ it('shows standalone agent identity in the landing row and the agent detail drawer', async () => {
+ const towerAgent = connectionFixture({
+ id: 'agent:tower',
+ type: 'agent',
+ name: 'Tower',
+ address: 'Tower',
+ surfaces: ['host'],
+ scope: { host: true } as any,
+ source: 'agent',
+ agentVersion: '6.0.2',
+ agentIdentity: {
+ hostname: 'tower',
+ platform: 'unraid',
+ osName: 'Unraid',
+ osVersion: '7.1.0',
+ kernelVersion: '6.12.0',
+ architecture: 'x86_64',
+ reportIp: '192.168.0.10',
+ commandsEnabled: true,
+ },
+ capabilities: { supportsPause: false, supportsScope: false, supportsTest: false },
+ });
+
+ connectionState.connections = [towerAgent];
+ connectionState.rows = [
+ {
+ id: towerAgent.id,
+ ownerType: 'agent',
+ name: 'Tower',
+ subtitle: 'via Pulse Agent',
+ identitySubtitle: 'Unraid 7.1.0',
+ source: 'agent',
+ host: '192.168.0.10',
+ coverageLabels: ['Host telemetry'],
+ statusLabel: 'Active',
+ statusClassName: 'bg-green-100 text-green-800',
+ agentUpdateCount: 0,
+ lastActivityText: '0s ago',
+ enabled: true,
+ canEdit: false,
+ canPause: false,
+ canRemove: true,
+ isAgent: true,
+ isCluster: false,
+ attachedConnections: [],
+ members: [],
+ connection: towerAgent,
+ },
+ ];
+
+ renderWorkspace();
+
+ await waitFor(() => expect(screen.getByText('Standalone hosts')).toBeInTheDocument());
+ expect(screen.getByText('Tower')).toBeInTheDocument();
+ expect(screen.getByText('Unraid 7.1.0')).toBeInTheDocument();
+ expect(screen.getByText('192.168.0.10')).toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: /^Edit$/i }));
+
+ await waitFor(() => expect(screen.getByRole('dialog')).toBeInTheDocument());
+ expect(screen.getByText('Pulse Agent version')).toBeInTheDocument();
+ expect(screen.getByText('6.0.2')).toBeInTheDocument();
+ expect(screen.getByText('Operating system')).toBeInTheDocument();
+ expect(screen.getAllByText('Unraid 7.1.0').length).toBeGreaterThan(0);
+ expect(screen.getByText('Reported hostname')).toBeInTheDocument();
+ expect(screen.getByText('tower')).toBeInTheDocument();
+ expect(screen.getByText('Reported IP')).toBeInTheDocument();
+ expect(screen.getAllByText('192.168.0.10').length).toBeGreaterThan(0);
+ expect(screen.getByText('Kernel')).toBeInTheDocument();
+ expect(screen.getByText('6.12.0')).toBeInTheDocument();
+ expect(screen.getByText('Architecture')).toBeInTheDocument();
+ expect(screen.getByText('x86_64')).toBeInTheDocument();
+ expect(screen.getByText('Remote commands')).toBeInTheDocument();
+ expect(screen.getAllByText('Enabled').length).toBeGreaterThan(0);
+ });
+
it('shows attached Pulse Agent augmentation details on a grouped platform source', async () => {
const primaryConnection = connectionFixture();
const attachedAgent = connectionFixture({
diff --git a/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts b/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts
index 690debcff1..0c6df2c5cf 100644
--- a/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts
@@ -8,6 +8,53 @@ describe('useConnectionsLedger', () => {
vi.restoreAllMocks();
});
+ it('renders standalone agent rows with compact host identity and endpoint context', async () => {
+ const connections: Connection[] = [
+ {
+ id: 'agent:tower',
+ type: 'agent',
+ name: 'Tower',
+ address: 'Tower',
+ state: 'active',
+ stateReason: '',
+ enabled: true,
+ surfaces: ['host'],
+ scope: { host: true },
+ lastSeen: '2026-04-23T12:00:00Z',
+ lastError: null,
+ source: 'agent',
+ agentIdentity: {
+ hostname: 'tower',
+ platform: 'unraid',
+ osName: 'Unraid',
+ osVersion: '7.1.0',
+ kernelVersion: '6.12.0',
+ architecture: 'x86_64',
+ reportIp: '192.168.0.10',
+ commandsEnabled: true,
+ },
+ capabilities: { supportsPause: false, supportsScope: false, supportsTest: false },
+ },
+ ];
+ vi.spyOn(ConnectionsAPI, 'list').mockResolvedValue({ connections, systems: [] });
+
+ const { result } = renderHook(() => useConnectionsLedger());
+
+ await waitFor(() => expect(result.rows()).toHaveLength(1));
+ expect(result.rows()[0]).toMatchObject({
+ id: 'agent:tower',
+ ownerType: 'agent',
+ name: 'Tower',
+ subtitle: 'via Pulse Agent',
+ identitySubtitle: 'Unraid 7.1.0',
+ source: 'agent',
+ host: '192.168.0.10',
+ isAgent: true,
+ isCluster: false,
+ coverageLabels: ['Host telemetry'],
+ });
+ });
+
it('renders a Proxmox cluster row from the canonical system metadata', async () => {
const connections: Connection[] = [
{
diff --git a/frontend-modern/src/components/Settings/connectionsTableModel.ts b/frontend-modern/src/components/Settings/connectionsTableModel.ts
index c94ca0ab4a..b55a471c05 100644
--- a/frontend-modern/src/components/Settings/connectionsTableModel.ts
+++ b/frontend-modern/src/components/Settings/connectionsTableModel.ts
@@ -19,6 +19,75 @@ export const lastActivityTextFromLastSeen = (lastSeen?: string | null): string =
export const connectionLastActivityText = (connection: Connection): string =>
lastActivityTextFromLastSeen(connection.lastSeen);
+const prettifyPlatform = (platform?: string | null): string | null => {
+ const normalized = platform?.trim().toLowerCase();
+ if (!normalized) return null;
+ switch (normalized) {
+ case 'linux':
+ return 'Linux';
+ case 'windows':
+ return 'Windows';
+ case 'darwin':
+ case 'macos':
+ return 'macOS';
+ case 'freebsd':
+ return 'FreeBSD';
+ case 'unraid':
+ return 'Unraid';
+ default:
+ return platform?.trim() ?? null;
+ }
+};
+
+const isIPv4Literal = (value: string): boolean => /^\d{1,3}(?:\.\d{1,3}){3}$/.test(value);
+
+const firstDistinctAgentIPv4Alias = (connection: Connection): string | null => {
+ const excluded = new Set(
+ [
+ connection.name,
+ connection.address,
+ connection.agentIdentity?.hostname,
+ connection.agentIdentity?.reportIp,
+ ]
+ .map((value) => value?.trim().toLowerCase())
+ .filter((value): value is string => Boolean(value)),
+ );
+
+ for (const candidate of connection.hostAliases ?? []) {
+ const trimmed = candidate.trim();
+ if (!trimmed || !isIPv4Literal(trimmed)) continue;
+ if (excluded.has(trimmed.toLowerCase())) continue;
+ return trimmed;
+ }
+ return null;
+};
+
+export const connectionAgentIdentitySummary = (connection: Connection): string | null => {
+ const osName = connection.agentIdentity?.osName?.trim();
+ const osVersion = connection.agentIdentity?.osVersion?.trim();
+ if (osName && osVersion) return `${osName} ${osVersion}`;
+ if (osName) return osName;
+ return prettifyPlatform(connection.agentIdentity?.platform);
+};
+
+export const connectionAgentEndpointDisplay = (connection: Connection): string | null => {
+ const normalizedName = connection.name.trim().toLowerCase();
+ const reportIp = connection.agentIdentity?.reportIp?.trim();
+ if (reportIp) return reportIp;
+
+ const aliasIPv4 = firstDistinctAgentIPv4Alias(connection);
+ if (aliasIPv4) return aliasIPv4;
+
+ const hostname = connection.agentIdentity?.hostname?.trim();
+ if (hostname && hostname.toLowerCase() !== normalizedName) {
+ return hostname;
+ }
+
+ const address = connection.address?.trim();
+ if (!address) return null;
+ return address.toLowerCase() !== normalizedName ? address : null;
+};
+
export interface ConnectionAgentVersionPresentation {
badgeClassName: string;
badgeLabel: string;
@@ -146,6 +215,7 @@ export interface InfrastructureSystemRow {
ownerType: ConnectionType;
name: string;
subtitle?: string;
+ identitySubtitle?: string;
source: InfrastructureSourceKind;
host?: string;
coverageLabels: string[];
diff --git a/frontend-modern/src/components/Settings/useConnectionsLedger.ts b/frontend-modern/src/components/Settings/useConnectionsLedger.ts
index 982c4ede44..d6c977c113 100644
--- a/frontend-modern/src/components/Settings/useConnectionsLedger.ts
+++ b/frontend-modern/src/components/Settings/useConnectionsLedger.ts
@@ -8,6 +8,8 @@ import {
type ConnectionType,
} from '@/api/connections';
import {
+ connectionAgentEndpointDisplay,
+ connectionAgentIdentitySummary,
connectionLastActivityText,
lastActivityTextFromLastSeen,
surfaceLabel,
@@ -213,15 +215,18 @@ const buildRow = (
const presentation = STATE_PRESENTATION[rolledState] ?? STATE_PRESENTATION.pending;
const clusterName = system?.clusterName?.trim();
const isCluster = ownerType === 'pve' && Boolean(clusterName) && members.length > 0;
+ const isStandaloneAgent = !isCluster && primaryConnection.type === 'agent';
const name =
ownerType === 'pve' && clusterName
? clusterName
: primaryConnection.name || primaryConnection.address || primaryConnection.id;
const host = isCluster
? undefined
- : primaryConnection.address && primaryConnection.address !== name
- ? primaryConnection.address
- : undefined;
+ : isStandaloneAgent
+ ? (connectionAgentEndpointDisplay(primaryConnection) ?? undefined)
+ : primaryConnection.address && primaryConnection.address !== name
+ ? primaryConnection.address
+ : undefined;
const attachedConnections = componentConnections.filter(
(connection) => connection.id !== primaryConnection.id,
);
@@ -236,12 +241,16 @@ const buildRow = (
const subtitle = isCluster
? `Cluster · ${members.length} ${members.length === 1 ? 'node' : 'nodes'}`
: subtitleFor(componentConnections, primaryConnection);
+ const identitySubtitle = isStandaloneAgent
+ ? (connectionAgentIdentitySummary(primaryConnection) ?? undefined)
+ : undefined;
return {
id: primaryConnection.id,
ownerType,
name,
subtitle,
+ identitySubtitle,
source,
host,
coverageLabels,
diff --git a/internal/api/connections_aggregator.go b/internal/api/connections_aggregator.go
index 27abfeb462..105d503f8d 100644
--- a/internal/api/connections_aggregator.go
+++ b/internal/api/connections_aggregator.go
@@ -273,6 +273,7 @@ func buildAgentConnection(host models.Host, expectedAgentVersion string, now tim
if currentAgentVersion != "" && expectedAgentVersion != "" {
updateAvailable = pulseutils.CompareVersions(currentAgentVersion, expectedAgentVersion) < 0
}
+ agentIdentity := connectionAgentIdentityForHost(host)
switch {
case lastSeen == nil:
state = ConnectionStatePending
@@ -297,6 +298,7 @@ func buildAgentConnection(host models.Host, expectedAgentVersion string, now tim
LastSeen: lastSeen,
LastError: nil,
Source: ConnectionSourceAgent,
+ AgentIdentity: agentIdentity,
AgentVersion: currentAgentVersion,
ExpectedAgentVersion: expectedAgentVersion,
AgentUpdateAvailable: updateAvailable,
@@ -304,6 +306,30 @@ func buildAgentConnection(host models.Host, expectedAgentVersion string, now tim
}
}
+func connectionAgentIdentityForHost(host models.Host) *ConnectionAgentIdentity {
+ identity := &ConnectionAgentIdentity{
+ Hostname: strings.TrimSpace(host.Hostname),
+ Platform: strings.TrimSpace(host.Platform),
+ OSName: strings.TrimSpace(host.OSName),
+ OSVersion: strings.TrimSpace(host.OSVersion),
+ KernelVersion: strings.TrimSpace(host.KernelVersion),
+ Architecture: strings.TrimSpace(host.Architecture),
+ ReportIP: strings.TrimSpace(host.ReportIP),
+ CommandsEnabled: host.CommandsEnabled,
+ }
+ if identity.Hostname == "" &&
+ identity.Platform == "" &&
+ identity.OSName == "" &&
+ identity.OSVersion == "" &&
+ identity.KernelVersion == "" &&
+ identity.Architecture == "" &&
+ identity.ReportIP == "" &&
+ !identity.CommandsEnabled {
+ return nil
+ }
+ return identity
+}
+
func connectionHostAliasesForAgent(host models.Host, name, address string) []string {
values := []string{name, address, host.Hostname, host.ReportIP}
for _, iface := range host.NetworkInterfaces {
diff --git a/internal/api/connections_aggregator_test.go b/internal/api/connections_aggregator_test.go
index 68e9fd1158..2ac50ca4ba 100644
--- a/internal/api/connections_aggregator_test.go
+++ b/internal/api/connections_aggregator_test.go
@@ -170,11 +170,17 @@ func TestBuildConnections_AgentHostAliasesIncludeReportedIdentityHints(t *testin
in := aggregatorInputs{
hosts: []models.Host{
{
- ID: "pi",
- Hostname: "pi",
- ReportIP: "192.168.0.2",
- LastSeen: now,
- AgentVersion: "6.0.0",
+ ID: "pi",
+ Hostname: "pi",
+ Platform: "unraid",
+ OSName: "Unraid",
+ OSVersion: "7.1.0",
+ KernelVersion: "6.12.0",
+ Architecture: "x86_64",
+ ReportIP: "192.168.0.2",
+ LastSeen: now,
+ AgentVersion: "6.0.0",
+ CommandsEnabled: true,
NetworkInterfaces: []models.HostNetworkInterface{
{Name: "eth0", Addresses: []string{"192.168.0.2/24", "fe80::1/64"}},
},
@@ -191,6 +197,24 @@ func TestBuildConnections_AgentHostAliasesIncludeReportedIdentityHints(t *testin
if !reflect.DeepEqual(got[0].HostAliases, []string{"pi", "192.168.0.2", "fe80::1"}) {
t.Fatalf("agent host aliases = %+v, want %+v", got[0].HostAliases, []string{"pi", "192.168.0.2", "fe80::1"})
}
+ if got[0].AgentIdentity == nil {
+ t.Fatal("expected agent identity metadata")
+ }
+ if !reflect.DeepEqual(
+ got[0].AgentIdentity,
+ &ConnectionAgentIdentity{
+ Hostname: "pi",
+ Platform: "unraid",
+ OSName: "Unraid",
+ OSVersion: "7.1.0",
+ KernelVersion: "6.12.0",
+ Architecture: "x86_64",
+ ReportIP: "192.168.0.2",
+ CommandsEnabled: true,
+ },
+ ) {
+ t.Fatalf("agent identity = %+v", got[0].AgentIdentity)
+ }
}
func TestBuildConnections_AgentVersionUpdateAvailability(t *testing.T) {
diff --git a/internal/api/connections_types.go b/internal/api/connections_types.go
index 0f4d200f31..0493aaffd8 100644
--- a/internal/api/connections_types.go
+++ b/internal/api/connections_types.go
@@ -59,27 +59,43 @@ type ConnectionError struct {
Category string `json:"category,omitempty"`
}
+// ConnectionAgentIdentity carries host identity facts Pulse already knows for
+// an agent-backed source. The infrastructure settings surface uses this to
+// render compact standalone-host identity without forcing every consumer to
+// query the broader host inventory.
+type ConnectionAgentIdentity struct {
+ Hostname string `json:"hostname,omitempty"`
+ Platform string `json:"platform,omitempty"`
+ OSName string `json:"osName,omitempty"`
+ OSVersion string `json:"osVersion,omitempty"`
+ KernelVersion string `json:"kernelVersion,omitempty"`
+ Architecture string `json:"architecture,omitempty"`
+ ReportIP string `json:"reportIp,omitempty"`
+ CommandsEnabled bool `json:"commandsEnabled,omitempty"`
+}
+
// Connection is the unified row the frontend consumes. It replaces the
// per-type shapes that today require separate fetches and separate table
// renderers.
type Connection struct {
- ID string `json:"id"`
- Type ConnectionType `json:"type"`
- Name string `json:"name"`
- Address string `json:"address"`
- HostAliases []string `json:"hostAliases,omitempty"`
- State ConnectionState `json:"state"`
- StateReason string `json:"stateReason,omitempty"`
- Enabled bool `json:"enabled"`
- Surfaces []string `json:"surfaces"`
- Scope map[string]bool `json:"scope"`
- LastSeen *time.Time `json:"lastSeen,omitempty"`
- LastError *ConnectionError `json:"lastError,omitempty"`
- Source ConnectionSource `json:"source"`
- AgentVersion string `json:"agentVersion,omitempty"`
- ExpectedAgentVersion string `json:"expectedAgentVersion,omitempty"`
- AgentUpdateAvailable bool `json:"agentUpdateAvailable,omitempty"`
- Capabilities ConnectionCapabilities `json:"capabilities"`
+ ID string `json:"id"`
+ Type ConnectionType `json:"type"`
+ Name string `json:"name"`
+ Address string `json:"address"`
+ HostAliases []string `json:"hostAliases,omitempty"`
+ State ConnectionState `json:"state"`
+ StateReason string `json:"stateReason,omitempty"`
+ Enabled bool `json:"enabled"`
+ Surfaces []string `json:"surfaces"`
+ Scope map[string]bool `json:"scope"`
+ LastSeen *time.Time `json:"lastSeen,omitempty"`
+ LastError *ConnectionError `json:"lastError,omitempty"`
+ Source ConnectionSource `json:"source"`
+ AgentIdentity *ConnectionAgentIdentity `json:"agentIdentity,omitempty"`
+ AgentVersion string `json:"agentVersion,omitempty"`
+ ExpectedAgentVersion string `json:"expectedAgentVersion,omitempty"`
+ AgentUpdateAvailable bool `json:"agentUpdateAvailable,omitempty"`
+ Capabilities ConnectionCapabilities `json:"capabilities"`
}
type ConnectionSystemComponentRole string
diff --git a/internal/api/contract_test.go b/internal/api/contract_test.go
index 83f0a90afa..1e78f5cb5c 100644
--- a/internal/api/contract_test.go
+++ b/internal/api/contract_test.go
@@ -11549,17 +11549,27 @@ func TestContract_ConnectionSystemMembersPayloadShapeStaysCanonical(t *testing.T
func TestContract_AgentConnectionPayloadIncludesVersionFields(t *testing.T) {
conn := Connection{
- ID: "agent:host-1",
- Type: ConnectionTypeAgent,
- Name: "host-1",
- Address: "host-1",
- HostAliases: []string{"host-1", "192.168.0.2"},
- State: ConnectionStateActive,
- Enabled: true,
- Surfaces: []string{"host"},
- Scope: map[string]bool{"host": true},
- LastSeen: timePtr(time.Date(2026, 4, 22, 12, 0, 0, 0, time.UTC)),
- Source: ConnectionSourceAgent,
+ ID: "agent:host-1",
+ Type: ConnectionTypeAgent,
+ Name: "host-1",
+ Address: "host-1",
+ HostAliases: []string{"host-1", "192.168.0.2"},
+ State: ConnectionStateActive,
+ Enabled: true,
+ Surfaces: []string{"host"},
+ Scope: map[string]bool{"host": true},
+ LastSeen: timePtr(time.Date(2026, 4, 22, 12, 0, 0, 0, time.UTC)),
+ Source: ConnectionSourceAgent,
+ AgentIdentity: &ConnectionAgentIdentity{
+ Hostname: "host-1",
+ Platform: "unraid",
+ OSName: "Unraid",
+ OSVersion: "7.1.0",
+ KernelVersion: "6.12.0",
+ Architecture: "x86_64",
+ ReportIP: "192.168.0.2",
+ CommandsEnabled: true,
+ },
AgentVersion: "6.0.0",
ExpectedAgentVersion: "6.0.2",
AgentUpdateAvailable: true,
@@ -11575,7 +11585,7 @@ func TestContract_AgentConnectionPayloadIncludesVersionFields(t *testing.T) {
t.Fatalf("marshal agent Connection: %v", err)
}
- want := `{"id":"agent:host-1","type":"agent","name":"host-1","address":"host-1","hostAliases":["host-1","192.168.0.2"],"state":"active","enabled":true,"surfaces":["host"],"scope":{"host":true},"lastSeen":"2026-04-22T12:00:00Z","source":"agent","agentVersion":"6.0.0","expectedAgentVersion":"6.0.2","agentUpdateAvailable":true,"capabilities":{"supportsPause":false,"supportsScope":false,"supportsTest":false}}`
+ want := `{"id":"agent:host-1","type":"agent","name":"host-1","address":"host-1","hostAliases":["host-1","192.168.0.2"],"state":"active","enabled":true,"surfaces":["host"],"scope":{"host":true},"lastSeen":"2026-04-22T12:00:00Z","source":"agent","agentIdentity":{"hostname":"host-1","platform":"unraid","osName":"Unraid","osVersion":"7.1.0","kernelVersion":"6.12.0","architecture":"x86_64","reportIp":"192.168.0.2","commandsEnabled":true},"agentVersion":"6.0.0","expectedAgentVersion":"6.0.2","agentUpdateAvailable":true,"capabilities":{"supportsPause":false,"supportsScope":false,"supportsTest":false}}`
assertJSONSnapshot(t, body, want)
}