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.

Govern platform onboarding paths

rcourtmane9b471870631
diff --git a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
index 19aa5e3349..8474eeca76 100644
--- a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
+++ b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
@@ -13,6 +13,7 @@
{
"id": "agent",
"governance_state": "supported",
+ "onboarding_paths": ["install-workspace"],
"ui_label": "Agent",
"ui_tone": "bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-400",
"aliases": [],
@@ -22,6 +23,7 @@
{
"id": "docker",
"governance_state": "supported",
+ "onboarding_paths": ["install-workspace"],
"ui_label": "Containers",
"ui_tone": "bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-400",
"aliases": [],
@@ -31,6 +33,7 @@
{
"id": "kubernetes",
"governance_state": "supported",
+ "onboarding_paths": ["install-workspace"],
"ui_label": "K8s",
"ui_tone": "bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-400",
"aliases": ["k8s"],
@@ -40,6 +43,7 @@
{
"id": "proxmox-pve",
"governance_state": "supported",
+ "onboarding_paths": ["platform-connections"],
"ui_label": "PVE",
"ui_tone": "bg-orange-100 text-orange-700 dark:bg-orange-900 dark:text-orange-400",
"aliases": ["pve", "proxmox"],
@@ -49,6 +53,7 @@
{
"id": "proxmox-pbs",
"governance_state": "supported",
+ "onboarding_paths": ["platform-connections"],
"ui_label": "PBS",
"ui_tone": "bg-indigo-100 text-indigo-700 dark:bg-indigo-900 dark:text-indigo-400",
"aliases": ["pbs"],
@@ -58,6 +63,7 @@
{
"id": "proxmox-pmg",
"governance_state": "supported",
+ "onboarding_paths": ["platform-connections"],
"ui_label": "PMG",
"ui_tone": "bg-rose-100 text-rose-700 dark:bg-rose-900 dark:text-rose-400",
"aliases": ["pmg"],
@@ -67,6 +73,7 @@
{
"id": "truenas",
"governance_state": "supported",
+ "onboarding_paths": ["platform-connections"],
"ui_label": "TrueNAS",
"ui_tone": "bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-400",
"aliases": [],
@@ -76,6 +83,7 @@
{
"id": "vmware-vsphere",
"governance_state": "admitted",
+ "onboarding_paths": ["platform-connections"],
"ui_label": "vSphere",
"ui_tone": "bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300",
"aliases": ["vmware"],
@@ -85,6 +93,7 @@
{
"id": "unraid",
"governance_state": "presentation-only",
+ "onboarding_paths": [],
"ui_label": "Unraid",
"ui_tone": "bg-orange-100 text-orange-700 dark:bg-orange-900 dark:text-orange-300",
"aliases": [],
@@ -94,6 +103,7 @@
{
"id": "synology-dsm",
"governance_state": "presentation-only",
+ "onboarding_paths": [],
"ui_label": "Synology",
"ui_tone": "bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-300",
"aliases": [],
@@ -103,6 +113,7 @@
{
"id": "microsoft-hyperv",
"governance_state": "presentation-only",
+ "onboarding_paths": [],
"ui_label": "Hyper-V",
"ui_tone": "bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-300",
"aliases": ["hyper-v"],
@@ -112,6 +123,7 @@
{
"id": "aws",
"governance_state": "presentation-only",
+ "onboarding_paths": [],
"ui_label": "AWS",
"ui_tone": "bg-amber-100 text-amber-700 dark:bg-amber-900 dark:text-amber-300",
"aliases": [],
@@ -121,6 +133,7 @@
{
"id": "azure",
"governance_state": "presentation-only",
+ "onboarding_paths": [],
"ui_label": "Azure",
"ui_tone": "bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-300",
"aliases": [],
@@ -130,6 +143,7 @@
{
"id": "gcp",
"governance_state": "presentation-only",
+ "onboarding_paths": [],
"ui_label": "GCP",
"ui_tone": "bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300",
"aliases": [],
diff --git a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
index 7ea3c5a361..6d53bfa973 100644
--- a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
+++ b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
@@ -224,12 +224,13 @@ Rules:
### Machine-readable projection
`PLATFORM_SUPPORT_MANIFEST.json` is the machine-readable projection of the
-supported, admitted, and presentation-only platform vocabulary declared here.
-Tests and shared frontend vocabulary may consume that manifest, and the tracked
-frontend projection in
+supported, admitted, and presentation-only platform vocabulary declared here,
+plus the canonical onboarding-path classification for supported and admitted
+platforms. Tests and shared frontend vocabulary may consume that manifest, and
+the tracked frontend projection in
`frontend-modern/src/utils/platformSupportManifest.generated.ts` must be
generated from it, but neither projection may introduce platform ids or
-governance states that are not declared in this document.
+governance states or onboarding paths that are not declared in this document.
### Runtime variants
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index fba942bd4d..e04c7b567b 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -270,7 +270,11 @@ an add-only capacity posture.
hiding `Infrastructure Install` when the next system should run the unified
agent, and install-managed first-session states must not suppress the
explicit API-backed alternative when the runtime has already connected
- platform-owned systems.
+ platform-owned systems. The API-backed versus install-workspace split must
+ come from the governed onboarding paths in
+ `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json` through
+ the shared frontend manifest helper, not from a Setup Wizard-local platform
+ allowlist.
6. Keep `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`
oriented around the first monitored host. Install-token generation,
governed command copy, and install instructions belong to the canonical
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index f99c875baa..f135e18af2 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -175,7 +175,7 @@ work extends shared components instead of creating new local variants.
4. Add guardrail tests when a new shared pattern is introduced
5. Keep shared platform-connections shell state on the reusable settings boundary: `frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts`, `frontend-modern/src/components/Settings/InfrastructurePlatformConnectionsSummaryCard.tsx`, and `frontend-modern/src/components/Settings/PlatformConnectionsWorkspace.tsx` must continue to derive provider counts, availability, and shared subtab copy from one infrastructure-settings source instead of creating provider-local summary fetches or VMware-only shell vocabulary.
6. Keep shared storage feature presenters on canonical platform truth. When reusable storage presenters under `frontend-modern/src/features/storageBackups/` classify canonical resources for the shared storage route, API-backed virtualization datastores such as VMware must stay inventory-only datastores instead of inheriting PBS-specific backup-repository or protected-target copy from older fallback branches.
-7. Keep shared source/platform vocabulary on the governed manifest boundary. `frontend-modern/src/utils/platformSupportManifest.generated.ts` must be the tracked frontend projection of `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json`, `frontend-modern/src/utils/platformSupportManifest.ts`, `frontend-modern/src/utils/sourcePlatforms.ts`, and `frontend-modern/src/utils/sourcePlatformOptions.ts` must consume that generated projection instead of embedding divergent future-label lists, and `frontend-modern/scripts/canonical-platform-audit.mjs` must fail when the generated projection drifts from the governed manifest.
+7. Keep shared source/platform vocabulary on the governed manifest boundary. `frontend-modern/src/utils/platformSupportManifest.generated.ts` must be the tracked frontend projection of `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json`, `frontend-modern/src/utils/platformSupportManifest.ts`, `frontend-modern/src/utils/sourcePlatforms.ts`, and `frontend-modern/src/utils/sourcePlatformOptions.ts` must consume that generated projection instead of embedding divergent future-label lists, setup/onboarding path allowlists, or presentation-only guesses, and `frontend-modern/scripts/canonical-platform-audit.mjs` must fail when the generated projection drifts from the governed manifest.
8. Keep top-of-page summary interaction on shared primitives. Infrastructure, workloads, and storage summary cards must route sticky-shell behavior through `frontend-modern/src/components/shared/StickySummarySection.tsx` and route row-hover or focused-series rendering through shared chart primitives such as `frontend-modern/src/components/shared/InteractiveSparkline.tsx` and `frontend-modern/src/components/shared/DensityMap.tsx`, rather than page-local sticky wrappers or metric-card-specific hover logic. The shared summary-card contract must also own stable summary-card geometry for chart-backed cards so row hover, focus, synchronized readouts, or idle header metadata cannot ratchet the sticky summary taller across rerenders.
9. Keep summary chart interaction identity on one shared helper. Summary surfaces that expose row-hover, group-hover, chart-hover, or route-focus-driven chart emphasis must derive page/group/entity scope through `frontend-modern/src/components/shared/summaryCardInteraction.ts` and pass that same resolved scope into card-state, sparkline, and density-map primitives, rather than letting cards read `hovered || focused` while charts listen to a different page-local ID source. Hovering one summary chart must promote that series into the shared active entity so sibling cards highlight the same object instead of keeping chart-local hover islands, and hovering or pinning a workload group header, infrastructure cluster header, or storage pool-group header must scope the matching summary cards through that same shared contract instead of forking a page-local summary filter path. Sibling cards should surface that synchronized hover as one compact header readout through the shared summary-card contract, while the chart under the pointer keeps the only floating tooltip. `frontend-modern/src/components/Recovery/RecoverySummary.tsx` is explicitly outside this interaction dialect: recovery posture cards may share summary framing, but they must not silently grow row/group/chart hover behavior without a separate governed product decision.
10. Keep page summaries page-scoped when table rows enter contextual focus. Route-backed row selection may add a focused label and shared series emphasis, but infrastructure, workloads, and storage summary cards must continue to render the page-level series set instead of collapsing the summary down to the selected row or replacing the global trend view with row-local empty states.
diff --git a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts
index 79d086c75b..c0d939a89d 100644
--- a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts
+++ b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts
@@ -60,7 +60,10 @@ describe('SetupCompletionPanel guardrails', () => {
expect(setupCompletionModelSource).toContain('isAgentFacetInfrastructureResource');
expect(setupCompletionModelSource).toContain('getPreferredInfrastructureDisplayName');
expect(setupCompletionModelSource).toContain('getPreferredResourceHostname');
- expect(setupCompletionModelSource).toContain('PLATFORM_CONNECTION_PLATFORM_TYPES');
+ expect(setupCompletionModelSource).toContain('getSourcePlatformManifestEntry');
+ expect(setupCompletionModelSource).toContain("sourcePlatformSupportsOnboardingPath");
+ expect(setupCompletionModelSource).toContain("displayTokens[displayTokens.length - 1]");
+ expect(setupCompletionModelSource).not.toContain('PLATFORM_CONNECTION_PLATFORM_TYPES');
expect(setupCompletionModelSource).not.toContain("resource.type === 'truenas'");
expect(setupCompletionModelSource).not.toContain('getPreferredResourceDisplayName(resource)');
});
diff --git a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.test.tsx b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.test.tsx
index 1db6b0fb46..bfe5f4525b 100644
--- a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.test.tsx
+++ b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.test.tsx
@@ -326,6 +326,46 @@ describe('SetupCompletionPanel', () => {
expect(onComplete).toHaveBeenCalledWith('/settings/infrastructure/platforms');
});
+ it('derives admitted VMware onboarding from the governed platform manifest', async () => {
+ const onComplete = vi.fn();
+ apiFetchJSONMock.mockResolvedValue({
+ resources: [
+ {
+ id: 'vmware-1',
+ type: 'agent',
+ name: 'vcsa-prod',
+ displayName: 'vCenter Prod',
+ platformId: 'vmware-prod',
+ platformType: 'vmware-vsphere',
+ sourceType: 'api',
+ status: 'online',
+ lastSeen: 123,
+ platformData: {
+ vmware: { hostname: 'vcenter.example.local' },
+ },
+ },
+ ],
+ });
+
+ render(() => <SetupCompletionPanel state={baseState} onComplete={onComplete} />);
+
+ await waitFor(() => {
+ expect(screen.getByText('Connected (1 system)')).toBeInTheDocument();
+ });
+
+ expect(screen.getByText('vCenter Prod')).toBeInTheDocument();
+ expect(screen.getByText('VMware vSphere')).toBeInTheDocument();
+ expect(
+ screen.getByText(
+ 'Your admin account is ready and Pulse is already receiving telemetry. Open the dashboard to verify the first overview, then return to Platform connections when you want to add more API-backed systems.',
+ ),
+ ).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Open Platform connections' })).toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: 'Open Platform connections' }));
+ expect(onComplete).toHaveBeenCalledWith('/settings/infrastructure/platforms');
+ });
+
it('keeps both continuation paths visible when install-managed and API-backed systems are already present', async () => {
apiFetchJSONMock.mockResolvedValue({
resources: [
diff --git a/frontend-modern/src/components/SetupWizard/setupCompletionModel.ts b/frontend-modern/src/components/SetupWizard/setupCompletionModel.ts
index cd32a827ed..532f1719bb 100644
--- a/frontend-modern/src/components/SetupWizard/setupCompletionModel.ts
+++ b/frontend-modern/src/components/SetupWizard/setupCompletionModel.ts
@@ -1,10 +1,14 @@
-import type { PlatformType, Resource } from '@/types/resource';
+import type { Resource } from '@/types/resource';
import {
getActionableAgentIdFromResource,
getPlatformDataRecord,
isAgentFacetInfrastructureResource,
isTrueNASSystemResource,
} from '@/utils/agentResources';
+import {
+ getSourcePlatformManifestEntry,
+ sourcePlatformSupportsOnboardingPath,
+} from '@/utils/platformSupportManifest';
import {
getPreferredInfrastructureDisplayName,
getPreferredResourceHostname,
@@ -37,14 +41,6 @@ export interface SetupCompletionViewModel {
showPlatformConnectionsAction: boolean;
}
-const PLATFORM_CONNECTION_PLATFORM_TYPES = new Set<PlatformType>([
- 'proxmox-pve',
- 'proxmox-pbs',
- 'proxmox-pmg',
- 'truenas',
- 'vmware-vsphere',
-]);
-
const asRecord = (value: unknown): Record<string, unknown> | undefined =>
value && typeof value === 'object' ? (value as Record<string, unknown>) : undefined;
@@ -54,32 +50,32 @@ const asString = (value: unknown): string | undefined =>
const isSetupCompletionInfrastructureResource = (resource: Resource): boolean =>
resource.type === 'agent' || resource.type === 'pbs' || resource.type === 'pmg';
+const getSetupCompletionPlatformKey = (resource: Resource): string | null => {
+ if (resource.type === 'pbs') return 'proxmox-pbs';
+ if (resource.type === 'pmg') return 'proxmox-pmg';
+ if (isTrueNASSystemResource(resource)) return 'truenas';
+ return resource.platformType || null;
+};
+
+const getSetupCompletionPlatformLabel = (resource: Resource): string | null => {
+ const manifestPlatform = getSourcePlatformManifestEntry(getSetupCompletionPlatformKey(resource));
+ if (!manifestPlatform) return null;
+
+ const displayTokens = manifestPlatform.displayTokens as readonly string[];
+ return displayTokens[displayTokens.length - 1] || manifestPlatform.uiLabel;
+};
+
const isPlatformConnectedSetupResource = (resource: Resource): boolean =>
- resource.type === 'pbs' ||
- resource.type === 'pmg' ||
- PLATFORM_CONNECTION_PLATFORM_TYPES.has(resource.platformType) ||
- isTrueNASSystemResource(resource);
+ sourcePlatformSupportsOnboardingPath(
+ getSetupCompletionPlatformKey(resource),
+ 'platform-connections',
+ );
const isInstallConnectedSetupResource = (resource: Resource): boolean =>
isAgentFacetInfrastructureResource(resource) && !isPlatformConnectedSetupResource(resource);
const getConnectedSetupSystemTypeLabel = (resource: Resource): string => {
- if (resource.type === 'pbs' || resource.platformType === 'proxmox-pbs') {
- return 'Proxmox Backup Server';
- }
- if (resource.type === 'pmg' || resource.platformType === 'proxmox-pmg') {
- return 'Proxmox Mail Gateway';
- }
- if (resource.platformType === 'proxmox-pve') {
- return 'Proxmox VE';
- }
- if (resource.platformType === 'truenas' || isTrueNASSystemResource(resource)) {
- return 'TrueNAS';
- }
- if (resource.platformType === 'vmware-vsphere') {
- return 'VMware vSphere';
- }
- return 'Agent';
+ return getSetupCompletionPlatformLabel(resource) || 'Agent';
};
const getConnectedSetupSystemHost = (resource: Resource): string => {
diff --git a/frontend-modern/src/utils/platformSupportManifest.generated.ts b/frontend-modern/src/utils/platformSupportManifest.generated.ts
index de67157fbf..32f93592c9 100644
--- a/frontend-modern/src/utils/platformSupportManifest.generated.ts
+++ b/frontend-modern/src/utils/platformSupportManifest.generated.ts
@@ -1,11 +1,11 @@
// This file is generated by scripts/release_control/generate_platform_support_frontend_module.py.
// Do not edit by hand.
// Source: docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
-// Source SHA256: 8d255f43fe92759b9ea6918656d91a88c48d32e0f49729525197b6301cd7fbad
+// Source SHA256: 79568ec8c69f13d8d49afe2b7a82b28c921b1885a90ebfb08cc98284d48b80e9
export const PLATFORM_SUPPORT_MANIFEST_SOURCE = {
path: 'docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json',
- sha256: '8d255f43fe92759b9ea6918656d91a88c48d32e0f49729525197b6301cd7fbad',
+ sha256: '79568ec8c69f13d8d49afe2b7a82b28c921b1885a90ebfb08cc98284d48b80e9',
} as const;
export const PLATFORM_SUPPORT_MANIFEST = {
schemaVersion: 1,
@@ -22,6 +22,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'agent',
governanceState: 'supported',
+ onboardingPaths: ['install-workspace'],
uiLabel: 'Agent',
uiTone: 'bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-400',
aliases: [],
@@ -31,6 +32,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'docker',
governanceState: 'supported',
+ onboardingPaths: ['install-workspace'],
uiLabel: 'Containers',
uiTone: 'bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-400',
aliases: [],
@@ -40,6 +42,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'kubernetes',
governanceState: 'supported',
+ onboardingPaths: ['install-workspace'],
uiLabel: 'K8s',
uiTone: 'bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-400',
aliases: ['k8s'],
@@ -49,6 +52,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'proxmox-pve',
governanceState: 'supported',
+ onboardingPaths: ['platform-connections'],
uiLabel: 'PVE',
uiTone: 'bg-orange-100 text-orange-700 dark:bg-orange-900 dark:text-orange-400',
aliases: ['pve', 'proxmox'],
@@ -58,6 +62,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'proxmox-pbs',
governanceState: 'supported',
+ onboardingPaths: ['platform-connections'],
uiLabel: 'PBS',
uiTone: 'bg-indigo-100 text-indigo-700 dark:bg-indigo-900 dark:text-indigo-400',
aliases: ['pbs'],
@@ -67,6 +72,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'proxmox-pmg',
governanceState: 'supported',
+ onboardingPaths: ['platform-connections'],
uiLabel: 'PMG',
uiTone: 'bg-rose-100 text-rose-700 dark:bg-rose-900 dark:text-rose-400',
aliases: ['pmg'],
@@ -76,6 +82,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'truenas',
governanceState: 'supported',
+ onboardingPaths: ['platform-connections'],
uiLabel: 'TrueNAS',
uiTone: 'bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-400',
aliases: [],
@@ -85,6 +92,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'vmware-vsphere',
governanceState: 'admitted',
+ onboardingPaths: ['platform-connections'],
uiLabel: 'vSphere',
uiTone: 'bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300',
aliases: ['vmware'],
@@ -94,6 +102,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'unraid',
governanceState: 'presentation-only',
+ onboardingPaths: [],
uiLabel: 'Unraid',
uiTone: 'bg-orange-100 text-orange-700 dark:bg-orange-900 dark:text-orange-300',
aliases: [],
@@ -103,6 +112,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'synology-dsm',
governanceState: 'presentation-only',
+ onboardingPaths: [],
uiLabel: 'Synology',
uiTone: 'bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-300',
aliases: [],
@@ -112,6 +122,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'microsoft-hyperv',
governanceState: 'presentation-only',
+ onboardingPaths: [],
uiLabel: 'Hyper-V',
uiTone: 'bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-300',
aliases: ['hyper-v'],
@@ -121,6 +132,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'aws',
governanceState: 'presentation-only',
+ onboardingPaths: [],
uiLabel: 'AWS',
uiTone: 'bg-amber-100 text-amber-700 dark:bg-amber-900 dark:text-amber-300',
aliases: [],
@@ -130,6 +142,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'azure',
governanceState: 'presentation-only',
+ onboardingPaths: [],
uiLabel: 'Azure',
uiTone: 'bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-300',
aliases: [],
@@ -139,6 +152,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'gcp',
governanceState: 'presentation-only',
+ onboardingPaths: [],
uiLabel: 'GCP',
uiTone: 'bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300',
aliases: [],
@@ -257,6 +271,26 @@ export const SOURCE_PLATFORM_DISPLAY_TOKENS = [
'Azure',
'GCP',
] as const;
+export const SOURCE_PLATFORM_ONBOARDING_PATH_KEYS = [
+ 'install-workspace',
+ 'platform-connections',
+] as const;
+export const SOURCE_PLATFORM_ONBOARDING_PATHS = {
+ agent: ['install-workspace'],
+ docker: ['install-workspace'],
+ kubernetes: ['install-workspace'],
+ 'proxmox-pve': ['platform-connections'],
+ 'proxmox-pbs': ['platform-connections'],
+ 'proxmox-pmg': ['platform-connections'],
+ truenas: ['platform-connections'],
+ 'vmware-vsphere': ['platform-connections'],
+ unraid: [],
+ 'synology-dsm': [],
+ 'microsoft-hyperv': [],
+ aws: [],
+ azure: [],
+ gcp: [],
+} as const;
export const SOURCE_PLATFORM_PRESENTATION = {
agent: {
label: 'Agent',
@@ -337,6 +371,8 @@ export const SOURCE_PLATFORM_STORAGE_FAMILY = {
} as const;
export type PlatformGovernanceState =
(typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['governanceState'];
+export type GeneratedSourcePlatformOnboardingPath =
+ (typeof SOURCE_PLATFORM_ONBOARDING_PATH_KEYS)[number];
export type SourcePlatformStorageFamily =
(typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['storageFamily'];
export type GeneratedPlatformType = (typeof PLATFORM_TYPE_KEYS)[number];
diff --git a/frontend-modern/src/utils/platformSupportManifest.ts b/frontend-modern/src/utils/platformSupportManifest.ts
index 837519965e..8329579a42 100644
--- a/frontend-modern/src/utils/platformSupportManifest.ts
+++ b/frontend-modern/src/utils/platformSupportManifest.ts
@@ -6,6 +6,8 @@ import {
PLATFORM_SUPPORT_MANIFEST_SOURCE,
PRESENTATION_ONLY_PLATFORM_IDS,
PLATFORM_SUPPORT_MANIFEST,
+ SOURCE_PLATFORM_ONBOARDING_PATH_KEYS,
+ SOURCE_PLATFORM_ONBOARDING_PATHS,
SOURCE_PLATFORM_PRESENTATION,
SOURCE_PLATFORM_ALIAS_MAP,
SOURCE_PLATFORM_AUDIT_TOKENS,
@@ -14,17 +16,24 @@ import {
SOURCE_PLATFORM_STORAGE_FAMILY,
SUPPORTED_PLATFORM_IDS,
type GeneratedKnownSourcePlatform,
+ type GeneratedSourcePlatformOnboardingPath,
type GeneratedSourcePlatformManifestEntry,
type PlatformGovernanceState,
type SourcePlatformStorageFamily,
} from '@/utils/platformSupportManifest.generated';
export type SourcePlatformManifestEntry = GeneratedSourcePlatformManifestEntry;
-export type { GeneratedKnownSourcePlatform, PlatformGovernanceState, SourcePlatformStorageFamily };
+export type {
+ GeneratedKnownSourcePlatform,
+ GeneratedSourcePlatformOnboardingPath as SourcePlatformOnboardingPath,
+ PlatformGovernanceState,
+ SourcePlatformStorageFamily,
+};
const entriesById = new Map<string, SourcePlatformManifestEntry>(
SOURCE_PLATFORM_MANIFEST_ENTRIES.map((platform) => [platform.id, platform] as const),
);
+const EMPTY_ONBOARDING_PATHS: readonly GeneratedSourcePlatformOnboardingPath[] = [];
export {
ADMITTED_PLATFORM_IDS,
@@ -34,6 +43,8 @@ export {
PLATFORM_TYPE_KEYS,
PRESENTATION_ONLY_PLATFORM_IDS,
PLATFORM_SUPPORT_MANIFEST,
+ SOURCE_PLATFORM_ONBOARDING_PATH_KEYS,
+ SOURCE_PLATFORM_ONBOARDING_PATHS,
SOURCE_PLATFORM_PRESENTATION,
SOURCE_PLATFORM_ALIAS_MAP,
SOURCE_PLATFORM_AUDIT_TOKENS,
@@ -60,3 +71,16 @@ export const getSourcePlatformStorageFamily = (
if (!manifestPlatform) return null;
return SOURCE_PLATFORM_STORAGE_FAMILY[manifestPlatform.id];
};
+
+export const getSourcePlatformOnboardingPaths = (
+ value: string | null | undefined,
+): readonly GeneratedSourcePlatformOnboardingPath[] => {
+ const manifestPlatform = getSourcePlatformManifestEntry(value);
+ if (!manifestPlatform) return EMPTY_ONBOARDING_PATHS;
+ return SOURCE_PLATFORM_ONBOARDING_PATHS[manifestPlatform.id];
+};
+
+export const sourcePlatformSupportsOnboardingPath = (
+ value: string | null | undefined,
+ onboardingPath: GeneratedSourcePlatformOnboardingPath,
+): boolean => getSourcePlatformOnboardingPaths(value).includes(onboardingPath);
diff --git a/internal/mock/platform_support_contract_test.go b/internal/mock/platform_support_contract_test.go
index 02ff444c03..5bac868629 100644
--- a/internal/mock/platform_support_contract_test.go
+++ b/internal/mock/platform_support_contract_test.go
@@ -14,8 +14,9 @@ import (
)
var (
- numberedPlatformListRE = regexp.MustCompile("^\\d+\\.\\s+`([^`]+)`")
- currentSupportMatrixRE = regexp.MustCompile("^\\|\\s+`([^`]+)`\\s+\\|")
+ numberedPlatformListRE = regexp.MustCompile("^\\d+\\.\\s+`([^`]+)`")
+ currentSupportMatrixRE = regexp.MustCompile("^\\|\\s+`([^`]+)`\\s+\\|")
+ currentSupportSetupRowRE = regexp.MustCompile("^\\|\\s+`([^`]+)`\\s+\\|\\s+([^|]+?)\\s+\\|")
)
type platformSupportManifest struct {
@@ -27,6 +28,7 @@ type platformSupportManifest struct {
type platformSupportManifestEntry struct {
ID string `json:"id"`
GovernanceState string `json:"governance_state"`
+ OnboardingPaths []string `json:"onboarding_paths"`
UILabel string `json:"ui_label"`
UITone string `json:"ui_tone"`
Aliases []string `json:"aliases"`
@@ -59,6 +61,12 @@ func TestPlatformSupportManifestMatchesSupportModel(t *testing.T) {
); diff != "" {
t.Fatalf("presentation-only platform manifest drifted from the canonical support model:\n%s", diff)
}
+ if diff := diffPlatformFieldMap(
+ parseCurrentSupportMatrixOnboardingPaths(t, model),
+ manifestPlatformOnboardingPathsByState(t, manifest, "supported"),
+ ); diff != "" {
+ t.Fatalf("supported onboarding-path manifest drifted from the canonical support model:\n%s", diff)
+ }
if diff := diffPlatformSets(classified, manifest.DefaultInfrastructureSourceOrder); diff != "" {
t.Fatalf("default infrastructure source ordering drifted from the canonical supported platform set:\n%s", diff)
}
@@ -108,6 +116,16 @@ func TestVMwareFixturesRemainAdmittedButNotSupported(t *testing.T) {
if !strings.Contains(model, "| `vmware-vsphere` |") {
t.Fatal("expected platform support model to keep the vmware-vsphere admission row")
}
+ vmwareOnboardingPaths, ok := manifestPlatformOnboardingPaths(manifest)["vmware-vsphere"]
+ if !ok {
+ t.Fatal("expected vmware-vsphere onboarding-path manifest entry")
+ }
+ if diff := diffPlatformSets([]string{"platform-connections"}, vmwareOnboardingPaths); diff != "" {
+ t.Fatalf("vmware-vsphere onboarding path drifted from the admission model:\n%s", diff)
+ }
+ if !strings.Contains(model, "| `vmware-vsphere` | platform connections to `vCenter` only |") {
+ t.Fatal("expected platform support model to keep the vmware-vsphere platform-connections admission floor")
+ }
graph := buildFixtureGraph(DefaultConfig, time.Date(2026, time.April, 10, 12, 0, 0, 0, time.UTC))
if len(graph.PlatformFixtures.VMware.Hosts) == 0 {
@@ -374,6 +392,36 @@ func parseCurrentSupportMatrixPlatforms(t *testing.T, model string) []string {
return requireNonEmptyPlatformList(t, platforms, "current support matrix")
}
+func parseCurrentSupportMatrixOnboardingPaths(t *testing.T, model string) map[string][]string {
+ t.Helper()
+
+ rows := make(map[string][]string)
+ inSetupTable := false
+
+ for _, raw := range strings.Split(model, "\n") {
+ line := strings.TrimSpace(raw)
+ switch {
+ case strings.HasPrefix(line, "| Platform") && strings.Contains(line, "| Setup"):
+ inSetupTable = true
+ continue
+ case !inSetupTable:
+ continue
+ case strings.HasPrefix(line, "## "):
+ return requireNonEmptyPlatformFieldMap(t, rows, "current support matrix onboarding paths")
+ case line == "" || strings.HasPrefix(line, "| ---"):
+ continue
+ }
+
+ matches := currentSupportSetupRowRE.FindStringSubmatch(line)
+ if len(matches) != 3 {
+ continue
+ }
+ rows[matches[1]] = parseSetupCellOnboardingPaths(t, matches[2])
+ }
+
+ return requireNonEmptyPlatformFieldMap(t, rows, "current support matrix onboarding paths")
+}
+
func manifestPlatformsByState(
t *testing.T,
manifest platformSupportManifest,
@@ -397,6 +445,36 @@ func manifestPlatformsByState(
return requireNonEmptyPlatformList(t, platforms, fmt.Sprintf("manifest platforms with state %s", governanceState))
}
+func manifestPlatformOnboardingPathsByState(
+ t *testing.T,
+ manifest platformSupportManifest,
+ governanceState string,
+) map[string][]string {
+ t.Helper()
+
+ rows := make(map[string][]string)
+ for _, platform := range manifest.Platforms {
+ if platform.GovernanceState != governanceState {
+ continue
+ }
+ rows[platform.ID] = validateManifestOnboardingPaths(t, platform)
+ }
+
+ return requireNonEmptyPlatformFieldMap(
+ t,
+ rows,
+ fmt.Sprintf("manifest onboarding paths with state %s", governanceState),
+ )
+}
+
+func manifestPlatformOnboardingPaths(manifest platformSupportManifest) map[string][]string {
+ rows := make(map[string][]string, len(manifest.Platforms))
+ for _, platform := range manifest.Platforms {
+ rows[platform.ID] = append([]string(nil), platform.OnboardingPaths...)
+ }
+ return rows
+}
+
func requireNonEmptyPlatformList(t *testing.T, platforms []string, label string) []string {
t.Helper()
@@ -407,6 +485,19 @@ func requireNonEmptyPlatformList(t *testing.T, platforms []string, label string)
return unique
}
+func requireNonEmptyPlatformFieldMap(
+ t *testing.T,
+ values map[string][]string,
+ label string,
+) map[string][]string {
+ t.Helper()
+
+ if len(values) == 0 {
+ t.Fatalf("expected %s to declare at least one platform", label)
+ }
+ return values
+}
+
func uniqueSortedPlatforms(platforms []string) []string {
seen := make(map[string]struct{}, len(platforms))
for _, platform := range platforms {
@@ -481,3 +572,87 @@ func diffPlatformSets(want []string, got []string) string {
}
return strings.Join(parts, "\n")
}
+
+func diffPlatformFieldMap(want map[string][]string, got map[string][]string) string {
+ platforms := make(map[string]struct{}, len(want)+len(got))
+ for platform := range want {
+ platforms[platform] = struct{}{}
+ }
+ for platform := range got {
+ platforms[platform] = struct{}{}
+ }
+
+ keys := make([]string, 0, len(platforms))
+ for platform := range platforms {
+ keys = append(keys, platform)
+ }
+ sort.Strings(keys)
+
+ messages := make([]string, 0)
+ for _, platform := range keys {
+ wantValue, wantOK := want[platform]
+ gotValue, gotOK := got[platform]
+ switch {
+ case !wantOK:
+ messages = append(messages, fmt.Sprintf("unexpected platform %s", platform))
+ case !gotOK:
+ messages = append(messages, fmt.Sprintf("missing platform %s", platform))
+ default:
+ if diff := diffPlatformSets(wantValue, gotValue); diff != "" {
+ messages = append(
+ messages,
+ fmt.Sprintf("%s onboarding paths drifted:\n%s", platform, indentDiff(diff)),
+ )
+ }
+ }
+ }
+
+ return strings.Join(messages, "\n")
+}
+
+func parseSetupCellOnboardingPaths(t *testing.T, value string) []string {
+ t.Helper()
+
+ normalized := strings.ToLower(strings.TrimSpace(value))
+ paths := make([]string, 0, 2)
+ if strings.Contains(normalized, "install workspace") {
+ paths = append(paths, "install-workspace")
+ }
+ if strings.Contains(normalized, "platform connections") {
+ paths = append(paths, "platform-connections")
+ }
+ return requireNonEmptyPlatformList(t, paths, fmt.Sprintf("setup cell %q", value))
+}
+
+func validateManifestOnboardingPaths(t *testing.T, platform platformSupportManifestEntry) []string {
+ t.Helper()
+
+ switch platform.GovernanceState {
+ case "supported", "admitted":
+ return requireNonEmptyPlatformList(
+ t,
+ platform.OnboardingPaths,
+ fmt.Sprintf("manifest onboarding paths for %s", platform.ID),
+ )
+ case "presentation-only":
+ if len(platform.OnboardingPaths) != 0 {
+ t.Fatalf(
+ "presentation-only platform %s must not declare onboarding paths, got %v",
+ platform.ID,
+ platform.OnboardingPaths,
+ )
+ }
+ return []string{}
+ default:
+ t.Fatalf("unexpected governance state %s for %s", platform.GovernanceState, platform.ID)
+ return nil
+ }
+}
+
+func indentDiff(diff string) string {
+ lines := strings.Split(diff, "\n")
+ for i, line := range lines {
+ lines[i] = " " + line
+ }
+ return strings.Join(lines, "\n")
+}
diff --git a/scripts/release_control/generate_platform_support_frontend_module.py b/scripts/release_control/generate_platform_support_frontend_module.py
index 5acffa8cd1..e24dd23f4e 100755
--- a/scripts/release_control/generate_platform_support_frontend_module.py
+++ b/scripts/release_control/generate_platform_support_frontend_module.py
@@ -21,6 +21,7 @@ DEFAULT_GENERIC_PRESENTATION = {
}
VALID_GOVERNANCE_STATES = {"supported", "admitted", "presentation-only"}
VALID_STORAGE_FAMILIES = {"onprem", "container", "virtualization", "cloud"}
+VALID_ONBOARDING_PATHS = {"install-workspace", "platform-connections"}
def require_dict(value: Any, label: str) -> dict[str, Any]:
@@ -100,6 +101,28 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
f"expected platforms[{index}].storage_family to be one of "
f"{sorted(VALID_STORAGE_FAMILIES)}"
)
+ onboarding_paths = unique_preserve_order(
+ require_string_list(
+ record.get("onboarding_paths"),
+ f"platforms[{index}].onboarding_paths",
+ )
+ )
+ invalid_onboarding_paths = sorted(
+ path for path in onboarding_paths if path not in VALID_ONBOARDING_PATHS
+ )
+ if invalid_onboarding_paths:
+ raise ValueError(
+ f"expected platforms[{index}].onboarding_paths to contain only "
+ f"{sorted(VALID_ONBOARDING_PATHS)}; got {invalid_onboarding_paths}"
+ )
+ if governance_state == "presentation-only" and onboarding_paths:
+ raise ValueError(
+ f"presentation-only platform {platform_id} must not declare onboarding paths"
+ )
+ if governance_state != "presentation-only" and not onboarding_paths:
+ raise ValueError(
+ f"{governance_state} platform {platform_id} must declare at least one onboarding path"
+ )
aliases = unique_preserve_order(
[
@@ -122,6 +145,7 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
{
"id": platform_id,
"governanceState": governance_state,
+ "onboardingPaths": onboarding_paths,
"uiLabel": require_string(record.get("ui_label"), f"platforms[{index}].ui_label"),
"uiTone": require_string(record.get("ui_tone"), f"platforms[{index}].ui_tone"),
"aliases": aliases,
@@ -171,6 +195,9 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
platform["id"]: {"label": platform["uiLabel"], "tone": platform["uiTone"]}
for platform in platforms
}
+ onboarding_paths_by_id = {
+ platform["id"]: platform["onboardingPaths"] for platform in platforms
+ }
storage_family_by_id = {
platform["id"]: platform["storageFamily"] for platform in platforms
}
@@ -184,6 +211,13 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
]
platform_type_keys = [*supported_ids, *admitted_ids]
known_source_platform_keys = [*platform_type_keys, *presentation_only_ids, "generic"]
+ onboarding_path_keys = unique_preserve_order(
+ [
+ path
+ for platform in platforms
+ for path in platform["onboardingPaths"]
+ ]
+ )
return {
"schemaVersion": schema_version,
@@ -197,6 +231,8 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
"aliasMap": alias_map,
"auditTokens": audit_tokens,
"displayTokens": display_tokens,
+ "onboardingPathKeys": onboarding_path_keys,
+ "onboardingPathsById": onboarding_paths_by_id,
"presentation": {**presentation, "generic": DEFAULT_GENERIC_PRESENTATION},
"storageFamilyById": storage_family_by_id,
}
@@ -241,10 +277,14 @@ def render_module(normalized: dict[str, Any], manifest_hash: str) -> str:
render_const("SOURCE_PLATFORM_ALIAS_MAP", normalized["aliasMap"]),
render_const("SOURCE_PLATFORM_AUDIT_TOKENS", normalized["auditTokens"]),
render_const("SOURCE_PLATFORM_DISPLAY_TOKENS", normalized["displayTokens"]),
+ render_const("SOURCE_PLATFORM_ONBOARDING_PATH_KEYS", normalized["onboardingPathKeys"]),
+ render_const("SOURCE_PLATFORM_ONBOARDING_PATHS", normalized["onboardingPathsById"]),
render_const("SOURCE_PLATFORM_PRESENTATION", normalized["presentation"]),
render_const("SOURCE_PLATFORM_STORAGE_FAMILY", normalized["storageFamilyById"]),
"export type PlatformGovernanceState =\n"
" (typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['governanceState'];\n",
+ "export type GeneratedSourcePlatformOnboardingPath =\n"
+ " (typeof SOURCE_PLATFORM_ONBOARDING_PATH_KEYS)[number];\n",
"export type SourcePlatformStorageFamily =\n"
" (typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['storageFamily'];\n",
"export type GeneratedPlatformType = (typeof PLATFORM_TYPE_KEYS)[number];\n",