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 MSP-only features from self-hosted Pro plans

rcourtman0dd3cd804ef0
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index bfab61b480..9935f70bad 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -1527,9 +1527,12 @@ That same `frontend-modern/src/utils/licensePresentation.ts` owner must treat
compatibility-only capability keys such as `kubernetes_ai` as non-marketed
technical facts: API/docs surfaces may still name the compatibility route, but
customer-facing self-hosted current-plan summaries and unlocked-capability
-lists must not surface those keys as marquee Pro value. The same rule applies
-to legacy claims such as `incident memory`: current v6 upgrade notices and
-commercial copy must use the canonical 90-day history framing until a distinct
+lists must not surface those keys as marquee Pro value. MSP-only contract keys
+such as `multi_tenant` follow the same rule inside the self-hosted Pro plan
+surface: they may remain entitlement inputs for hosted/MSP/account surfaces,
+but they are not self-hosted Pro value copy. The same rule applies to legacy
+claims such as `incident memory`: current v6 upgrade notices and commercial
+copy must use the canonical 90-day history framing until a distinct
incident-memory product exists.
That same plan-section boundary must also defer notice resolution to component
runtime. `frontend-modern/src/components/Settings/ProLicensePlanSection.tsx`
@@ -1813,8 +1816,8 @@ The same distinction applies to customer-facing self-hosted billing
presentation. `frontend-modern/src/components/Settings/useProLicensePanelState.ts`
and `frontend-modern/src/utils/licensePresentation.ts` may label operable
capabilities, but they must not render placeholder or plan-marker entries like
-`white_label`, `multi_user`, or `unlimited` in the Pro plan feature list just
-because those keys exist in tier metadata.
+`white_label`, `multi_user`, `multi_tenant`, or `unlimited` in the Pro plan
+feature list just because those keys exist in tier metadata.
Cloud/MSP live price IDs are no longer an open fill-in task either. The audit
record `docs/release-control/v6/records/cloud-msp-price-audit-2026-03-13.md`
verified that the 13 canonical Cloud/MSP v6 `price_*` IDs are present in the
diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
index aa25dc681b..625035681e 100644
--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
@@ -746,7 +746,7 @@ describe('ProLicensePanel', () => {
expect(screen.getByText('Basic SSO (OIDC)')).toBeInTheDocument();
});
- // Verify every capability renders with its expected label
+ // Verify self-hosted displayable capabilities render with their expected labels.
expect(screen.getByText('Pulse Patrol')).toBeInTheDocument();
expect(screen.getByText('Alert Root-Cause Analysis')).toBeInTheDocument();
expect(screen.getByText('Safe Remediation Workflows')).toBeInTheDocument();
@@ -760,7 +760,7 @@ describe('ProLicensePanel', () => {
expect(screen.getByText('Mobile App Access')).toBeInTheDocument();
expect(screen.getByText('Push Notifications')).toBeInTheDocument();
expect(screen.getByText('Extended Metric History')).toBeInTheDocument();
- expect(screen.getByText('Multi-Tenant Mode')).toBeInTheDocument();
+ expect(screen.queryByText('Multi-Tenant Mode')).not.toBeInTheDocument();
expect(screen.queryByText('Kubernetes AI Analysis (Compatibility)')).not.toBeInTheDocument();
expect(screen.queryByText('Multi-User Mode')).not.toBeInTheDocument();
expect(screen.queryByText('White-Label Branding')).not.toBeInTheDocument();
diff --git a/frontend-modern/src/components/Settings/useProLicensePanelState.ts b/frontend-modern/src/components/Settings/useProLicensePanelState.ts
index 782b81237b..a75c0b280e 100644
--- a/frontend-modern/src/components/Settings/useProLicensePanelState.ts
+++ b/frontend-modern/src/components/Settings/useProLicensePanelState.ts
@@ -2,7 +2,6 @@ import { createEffect, createMemo, createSignal, onMount } from 'solid-js';
import { useLocation, useNavigate } from '@solidjs/router';
import { notificationStore } from '@/stores/notifications';
import { loadCommercialPosture } from '@/stores/licenseCommercial';
-import { isMultiTenantEnabled } from '@/stores/license';
import { loadRuntimeCapabilities } from '@/stores/license';
import {
licenseEntitlements,
@@ -328,7 +327,6 @@ export function useProLicensePanelState() {
if (!current?.capabilities?.length) return [];
return current.capabilities
.filter((feature) => isDisplayableLicenseFeature(feature))
- .filter((feature) => feature !== 'multi_tenant' || isMultiTenantEnabled())
.map((feature) => getLicenseFeatureLabel(feature));
});
diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
index f1aa340e66..8df7be0b10 100644
--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
@@ -108,7 +108,7 @@ describe('licensePresentation', () => {
it('hides non-operable capability labels from customer-facing plan surfaces', () => {
expect(isDisplayableLicenseFeature('ai_patrol')).toBe(true);
- expect(isDisplayableLicenseFeature('multi_tenant')).toBe(true);
+ expect(isDisplayableLicenseFeature('multi_tenant')).toBe(false);
expect(isDisplayableLicenseFeature('kubernetes_ai')).toBe(false);
expect(isDisplayableLicenseFeature('multi_user')).toBe(false);
expect(isDisplayableLicenseFeature('white_label')).toBe(false);
diff --git a/frontend-modern/src/utils/selfHostedFeatureCatalog.generated.ts b/frontend-modern/src/utils/selfHostedFeatureCatalog.generated.ts
index 5911511de1..d8a299e394 100644
--- a/frontend-modern/src/utils/selfHostedFeatureCatalog.generated.ts
+++ b/frontend-modern/src/utils/selfHostedFeatureCatalog.generated.ts
@@ -321,7 +321,7 @@ export const SELF_HOSTED_FEATURE_CATALOG: readonly GeneratedSelfHostedFeatureCat
"displayName": "Multi-Tenant Mode",
"comparisonName": "Multi-Tenant Mode",
"showInComparisonTable": false,
- "displayableInSelfHostedPlan": true,
+ "displayableInSelfHostedPlan": false,
"roles": {
"community": "hidden",
"relay": "hidden",
diff --git a/pkg/licensing/features_test.go b/pkg/licensing/features_test.go
index b9aec84932..279f679721 100644
--- a/pkg/licensing/features_test.go
+++ b/pkg/licensing/features_test.go
@@ -291,8 +291,11 @@ func TestSelfHostedFeatureMetadataKeepsCanonicalPlanLabelsAndVisibility(t *testi
if !ok {
t.Fatalf("expected metadata for %q", FeatureMultiTenant)
}
- if !multiTenant.DisplayableInPlanUI {
- t.Fatalf("expected %q to remain customer-displayable for MSP/Enterprise surfaces", FeatureMultiTenant)
+ if multiTenant.DisplayableInPlanUI {
+ t.Fatalf("did not expect MSP-only %q to be displayable in self-hosted plan UI", FeatureMultiTenant)
+ }
+ if GetSelfHostedFeatureRole(FeatureMultiTenant, TierPro) != SelfHostedFeatureRoleHidden {
+ t.Fatalf("expected %q to stay hidden from the self-hosted Pro plan role", FeatureMultiTenant)
}
kubernetes, ok := GetFeatureMetadata(FeatureKubernetesAI)
diff --git a/pkg/licensing/self_hosted_feature_catalog.go b/pkg/licensing/self_hosted_feature_catalog.go
index 3c0e747df0..90e351e365 100644
--- a/pkg/licensing/self_hosted_feature_catalog.go
+++ b/pkg/licensing/self_hosted_feature_catalog.go
@@ -281,7 +281,7 @@ var featureMetadataCatalog = map[string]FeatureMetadata{
Key: FeatureMultiTenant,
DisplayName: "Multi-Tenant Mode",
ComparisonName: "Multi-Tenant Mode",
- DisplayableInPlanUI: true,
+ DisplayableInPlanUI: false,
SelfHostedRoles: SelfHostedFeatureRoles{
Community: SelfHostedFeatureRoleHidden,
Relay: SelfHostedFeatureRoleHidden,