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.

Make self-hosted SSO Community-tier

rcourtman82c54cc39b4b
diff --git a/README.md b/README.md
index 2fb88d11b5..1832b19205 100644
--- a/README.md
+++ b/README.md
@@ -185,8 +185,7 @@ Runtime-aligned capability summary:
| Safe Remediation Workflows | — | — | ✅ | ✅ |
| Centralized Agent Profiles | — | — | ✅ | ✅ |
| Update Alerts (Container/Package Updates) | ✅ | ✅ | ✅ | ✅ |
-| Basic SSO (OIDC) | ✅ | ✅ | ✅ | ✅ |
-| Advanced SSO (SAML/Multi-Provider) | — | — | ✅ | ✅ |
+| SSO (OIDC/SAML/Multi-Provider) | ✅ | ✅ | ✅ | ✅ |
| Role-Based Access Control (RBAC) | — | — | ✅ | ✅ |
| Enterprise Audit Logging | — | — | ✅ | ✅ |
| Advanced Infrastructure Reporting (PDF/CSV) | — | — | ✅ | ✅ |
diff --git a/docs/API.md b/docs/API.md
index 154714551e..75d9b2963d 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -668,7 +668,7 @@ Returns minimal server info for installer scripts.
OIDC and SAML configuration is managed via SSO providers.
-### SSO Provider Management (Pro)
+### SSO Provider Management (Community)
- `GET /api/security/sso/providers` (admin)
- `POST /api/security/sso/providers` (admin)
- `GET /api/security/sso/providers/{id}` (admin)
@@ -679,9 +679,9 @@ Provider mutation request contract:
- Max request body: 1MB.
- Strict JSON contract: unknown fields and trailing payload are rejected.
- Provider IDs must match server validation.
-- SAML providers require `advanced_sso` feature entitlement.
+- OIDC and SAML providers are included with the Community SSO entitlement.
-### SSO Test and Metadata Preview (Pro)
+### SSO Test and Metadata Preview (Community)
- `POST /api/security/sso/providers/test` (admin)
- `POST /api/security/sso/providers/metadata/preview` (admin)
diff --git a/docs/PULSE_PRO.md b/docs/PULSE_PRO.md
index e61a04828c..f9572f7315 100644
--- a/docs/PULSE_PRO.md
+++ b/docs/PULSE_PRO.md
@@ -92,8 +92,8 @@ investing in, surfacing, and marketing:
- Alert-triggered root-cause analysis.
- Safe remediation workflows through Patrol fix execution and autonomy controls.
- 90-day history.
-- Included team/admin extras: Advanced SSO (SAML), RBAC, audit logging,
- reporting, and agent profiles.
+- Included team/admin extras: RBAC, audit logging, reporting, and agent
+ profiles. SSO is included with Community and higher tiers.
### Compatibility-Only In v6
@@ -124,7 +124,7 @@ surface upgrade prompts unless the user deliberately enters a commercial path.
| Relay includes secure remote web access, Pulse Mobile pairing for handoff, push notifications, and 14-day history. | `pkg/licensing/features.go` grants `relay`, `mobile_app`, `push_notifications`, and `long_term_metrics` to Relay with `TierHistoryDays[relay] == 14`; relay onboarding/settings routes are gated behind Relay. | `pkg/licensing/features_test.go`, `pkg/licensing/entitlement_payload_test.go`, `internal/api/relay_sso_license_gating_test.go`, and `frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx`. |
| Pro includes alert-triggered root-cause analysis and safe remediation workflows. | `internal/api/ai_handlers.go` gates alert-triggered analysis behind `ai_alerts` and remediation/autonomy behind `ai_autofix`; `internal/ai/service.go` enforces the same capabilities in service-level paths. | `pkg/licensing/features_test.go`, `internal/api/router_routes_ai_execute_stream_test.go`, `internal/api/ai_intelligence_handlers_remediation_more_test.go`, and `frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx`. |
| Pro includes 90-day history. | `pkg/licensing/features.go` sets `TierHistoryDays[pro] == 90`; `pkg/licensing/entitlement_payload.go` emits `max_history_days`; `frontend-modern/src/stores/license.ts` and `frontend-modern/src/components/shared/useHistoryChartState.ts` lock ranges above the entitlement. | `pkg/licensing/features_test.go`, `pkg/licensing/entitlement_payload_test.go`, and `frontend-modern/src/stores/__tests__/license.test.ts`. |
-| Pro includes business/admin extras: Advanced SSO, RBAC, audit logging, reporting, and agent profiles. | Router and settings gates use `advanced_sso`, `rbac`, `audit_logging`, `advanced_reporting`, and `agent_profiles`; audit capture is SQLite-backed in `pkg/server/server.go` and `pkg/audit/sqlite_factory.go`, while query/export remains license-gated. | `internal/api/security_regression_test.go`, `internal/api/sso_handlers_crud_test.go`, `internal/api/rbac_lifecycle_test.go`, `pkg/reporting/catalog_test.go`, and `frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx`. |
+| Pro includes business/admin extras: RBAC, audit logging, reporting, and agent profiles. | Router and settings gates use `rbac`, `audit_logging`, `advanced_reporting`, and `agent_profiles`; audit capture is SQLite-backed in `pkg/server/server.go` and `pkg/audit/sqlite_factory.go`, while query/export remains license-gated. | `internal/api/security_regression_test.go`, `internal/api/rbac_lifecycle_test.go`, `pkg/reporting/catalog_test.go`, and `frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx`. |
## Feature Matrix
@@ -143,8 +143,8 @@ This matrix is derived from the canonical table in `docs/architecture/ENTITLEMEN
| `FeatureKubernetesAI` | `kubernetes_ai` | Kubernetes AI Analysis (Compatibility) | N | N | Y | Y | Legacy compatibility gate for `/api/ai/kubernetes/analyze`; not a primary marketed v6 Pro plan pillar. |
| `FeatureAgentProfiles` | `agent_profiles` | Centralized Agent Profiles | N | N | Y | Y | API route gating via `RequireLicenseFeature(..., agent_profiles, ...)`. |
| `FeatureUpdateAlerts` | `update_alerts` | Update Alerts (Container/Package Updates) | Y | Y | Y | Y | Included in Community tier per `TierFeatures[TierFree]`. |
-| `FeatureSSO` | `sso` | Basic SSO (OIDC) | Y | Y | Y | Y | Basic SSO is included in Community tier. |
-| `FeatureAdvancedSSO` | `advanced_sso` | Advanced SSO (SAML/Multi-Provider) | N | N | Y | Y | Used to gate advanced SSO capabilities such as SAML and multi-provider flows. |
+| `FeatureSSO` | `sso` | Core SSO (OIDC/SAML) | Y | Y | Y | Y | OIDC and SAML SSO are included in Community tier. |
+| `FeatureAdvancedSSO` | `advanced_sso` | Multi-Provider SSO | Y | Y | Y | Y | Compatibility capability key; retained for existing entitlement payloads and included in Community to avoid an SSO tax. |
| `FeatureRBAC` | `rbac` | Role-Based Access Control (RBAC) | N | N | Y | Y | API route gating via `RequireLicenseFeature(..., rbac, ...)`. |
| `FeatureAuditLogging` | `audit_logging` | Audit Logging | N | N | Y | Y | API route gating for audit query, verify, and export endpoints. |
| `FeatureAdvancedReporting` | `advanced_reporting` | PDF/CSV Reporting | N | N | Y | Y | API route gating via `RequireLicenseFeature(..., advanced_reporting, ...)`. |
@@ -170,7 +170,7 @@ Patrol and the Assistant support tiered autonomy:
- Core self-hosted monitoring included without a monitored-system volume gate.
- 7-day history.
- Pulse Patrol with your own provider or local model.
-- Basic SSO and update alerts.
+- Core SSO and update alerts.
### Relay
- Everything in Community, plus:
@@ -183,7 +183,7 @@ Patrol and the Assistant support tiered autonomy:
- Alert-triggered root-cause analysis.
- Safe remediation workflows and autonomy controls.
- Centralized agent profiles.
-- Advanced SSO, RBAC, audit logging, and advanced reporting.
+- RBAC, audit logging, and advanced reporting.
- 90-day history.
### Legacy Pro+
diff --git a/docs/architecture/v6-pricing-and-tiering.md b/docs/architecture/v6-pricing-and-tiering.md
index f985d4092c..263b0773b6 100644
--- a/docs/architecture/v6-pricing-and-tiering.md
+++ b/docs/architecture/v6-pricing-and-tiering.md
@@ -103,7 +103,7 @@ than sold by monitored-system volume.
| Monitoring scope | **Core self-hosted monitoring included** |
| Monitoring | Full (Proxmox, Docker, K8s, agents) |
| Alerts | Threshold-based |
-| SSO | Basic OIDC |
+| SSO | OIDC/SAML with multi-provider support |
| Update notifications | Yes |
| Metrics history | **7 days** |
| AI Patrol | Monitor + root-cause summaries + fix suggestions with the operator's configured provider or local model |
@@ -114,7 +114,7 @@ than sold by monitored-system volume.
| Customer-specific Relay URL | No |
| RBAC | No |
| Audit logging | No |
-| SAML SSO | No |
+| SAML SSO | Yes |
| Agent profiles | No |
| PDF/CSV reporting | No |
@@ -140,7 +140,7 @@ remediation actions through Pulse.
| Metrics history | **14 days** |
| Safe remediation workflows | No |
| Alert-triggered root-cause analysis | No |
-| RBAC/Audit/SAML | No |
+| RBAC/Audit/Reporting | No |
| Reporting | No |
**Positioning:** The convenience tier. It should feel cheap enough to buy on the spot when
@@ -158,7 +158,7 @@ without changing their self-hosted monitoring scope.
| Metrics history | **90 days** |
| RBAC | **Yes** |
| Audit logging | **Yes** |
-| SAML SSO | **Yes** |
+| SAML SSO | Included with Community |
| Agent profiles | **Yes** |
| PDF/CSV reporting | **Yes** |
| Self-hosted trial acquisition | No; local trial CTAs are retired for v6 GA |
@@ -169,7 +169,7 @@ into operations. The marketing pitch focuses on three things:
2. "Fix it safely" (safe remediation workflows)
3. "Keep longer operating memory" (90-day history)
-Relay convenience and the team extras (RBAC, audit logging, SAML, reporting, and agent
+Relay convenience and the team extras (RBAC, audit logging, reporting, and agent
profiles) are included, but they are supporting value rather than the headline.
### Pro+ — Legacy continuity tier only
diff --git a/docs/release-control/v6/internal/records/paid-feature-claim-proof-matrix-2026-04-29.md b/docs/release-control/v6/internal/records/paid-feature-claim-proof-matrix-2026-04-29.md
index 98854ce7a2..e0fd5e1174 100644
--- a/docs/release-control/v6/internal/records/paid-feature-claim-proof-matrix-2026-04-29.md
+++ b/docs/release-control/v6/internal/records/paid-feature-claim-proof-matrix-2026-04-29.md
@@ -16,11 +16,11 @@ python3 scripts/release_control/paid_feature_claims_proof.py --json
- Community keeps core monitoring free and does not introduce monitored-system volume caps.
- Relay claims only remote web access, Pulse Mobile pairing for handoff, push notifications, and 14-day metric history.
-- Pro preserves Relay capabilities and adds operator extras: root-cause analysis, safe remediation workflows, 90-day metric history, RBAC, audit logging, reporting, SAML SSO, and agent profiles.
-- Public app, docs, and site copy must not reintroduce old self-hosted monitoring-limit, higher-limit, default-trial, hosted-model-credit, or bundled-Patrol-credit claims.
+- Pro preserves Relay capabilities and adds operator extras: root-cause analysis, safe remediation workflows, 90-day metric history, RBAC, audit logging, reporting, and agent profiles.
+- Public app, docs, and site copy must not reintroduce old self-hosted monitoring-limit, higher-limit, default-trial, hosted-model-credit, bundled-Patrol-credit, or paid-SSO claims.
- Relay must not be marketed as including a customer-specific `*.pulserelay.pro` URL until that product surface exists; v6 GA Relay is the standard outbound relay service.
- History claims are enforced by the runtime metrics-history API, not only shown in copy.
-- Pro admin extras are backed by concrete core and enterprise runtime tests for RBAC, audit logging, reporting, SAML SSO, and agent profile behavior.
+- Pro admin extras are backed by concrete core and enterprise runtime tests for RBAC, audit logging, reporting, and agent profile behavior.
- Public pricing, checkout, download, and relay-server entitlement behavior remain consistent with those claims.
## Final Paid-User Value Audit
@@ -33,7 +33,7 @@ What paid users keep or gain in v6:
- Legacy paid installs can migrate into the v6 activation model without buying monitoring capacity again.
- Self-hosted monitoring and child-resource volume are not metered under the current v6 self-hosted packaging.
- Relay-capable paid users have the real Relay/Pulse Mobile handoff/push capability set.
-- Pro users have 90-day history, alert-triggered root-cause analysis, safe remediation workflows, and the admin extras bundle: Advanced SSO, RBAC, audit logging, PDF/CSV reporting, and centralized agent profiles.
+- Pro users have 90-day history, alert-triggered root-cause analysis, safe remediation workflows, and the admin extras bundle: RBAC, audit logging, PDF/CSV reporting, and centralized agent profiles.
What must not be sold as v6 Pro value:
@@ -51,7 +51,7 @@ What must not be sold as v6 Pro value:
| Relay provides remote web access, Pulse Mobile pairing for handoff, push, and 14-day history | `pkg/licensing` grants `relay`, `mobile_app`, `push_notifications`, and `long_term_metrics`; `internal/api` enforces tier-aware metrics history; `pulse-pro/relay-server` rejects missing Relay entitlement. | Relay copy in `docs/PULSE_PRO.md`, `frontend-modern/src/utils/selfHostedPlans.ts`, `pulse-pro/landing-page/index.html`, and `pulse-pro/license-server/public_pricing.go` is covered by the static copy audit. |
| Pro adds root-cause analysis and safe remediation workflows | Licensing grants `ai_alerts` and `ai_autofix`; `internal/api` and core AI tests cover gated analysis/remediation paths. | Plan copy and Pro value proof list the features as primary Pro capabilities; stale hosted-model/trial claims are forbidden by the copy audit. |
| Pro includes 90-day history | `TierHistoryDays[pro] == 90`, `max_history_days` is emitted in entitlements, and metrics-history API tests enforce history ranges. | `HistoryChart` and `ProLicensePanel` frontend tests verify entitlement-aware history presentation. |
-| Pro includes admin extras | API and enterprise package tests cover Advanced SSO, RBAC, audit logging, reporting, and agent profile behavior. | `tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts` proves the advertised Pro settings sections and SAML/agent-profile controls are reachable when Pro capabilities are active. |
+| Pro includes admin extras | API and enterprise package tests cover RBAC, audit logging, reporting, and agent profile behavior. | `tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts` proves the advertised Pro settings sections and agent-profile controls are reachable when Pro capabilities are active. |
| Existing v5 Pro customers keep paid continuity | Migration and auto-exchange tests prove legacy Pro/Lifetime plans migrate to active v6 entitlements. | The self-hosted plan summary foregrounds grandfathered price continuity and explains that monitoring volume is not metered under current v6 policy. |
## Release Recommendation
diff --git a/docs/release-control/v6/internal/records/self-hosted-pro-runtime-truth-2026-04-23.md b/docs/release-control/v6/internal/records/self-hosted-pro-runtime-truth-2026-04-23.md
index 3cc0219fcc..80f6054e37 100644
--- a/docs/release-control/v6/internal/records/self-hosted-pro-runtime-truth-2026-04-23.md
+++ b/docs/release-control/v6/internal/records/self-hosted-pro-runtime-truth-2026-04-23.md
@@ -17,8 +17,8 @@ The canonical v6 Pro story should be:
1. Alert-triggered root-cause analysis.
2. Safe remediation through Patrol auto-fix and higher-autonomy controls.
3. Longer operating history on self-hosted installs.
-4. Included team/admin extras: SAML SSO, RBAC, audit logging, reporting, and
- agent profiles.
+4. Included team/admin extras: RBAC, audit logging, reporting, and agent
+ profiles. SSO is part of the Community tier and no longer a Pro value claim.
The following should not be treated as primary marketed Pro pillars:
@@ -44,7 +44,7 @@ The following should not be treated as primary marketed Pro pillars:
| Incident memory | The real backing is longer metrics retention plus Patrol run history and alert history. No distinct memory engine, incident notebook, or learned remediation memory surfaced in v6. | `shipped but weakly packaged` | `frontend-modern/src/components/shared/HistoryChartOverlay.tsx`; `internal/api/router_routes_ai_relay.go`; `internal/api/alerts.go`; `internal/api/ai_handlers.go` |
| Remote access / mobile / push | Relay remains a dedicated, real settings surface with live configuration, status, and pairing flows, and it is explicitly license-gated. | `shipped and productized` | `frontend-modern/src/components/Settings/RelaySettingsPanel.tsx`; `frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts`; `internal/api/router_routes_ai_relay.go` |
| Agent profiles | Dedicated settings panel with CRUD, assignment, and AI suggestion affordances. The surface is explicitly paywalled behind `agent_profiles`. | `shipped and productized` | `frontend-modern/src/components/Settings/AgentProfilesPanel.tsx`; `frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts`; `internal/api/router_routes_registration.go` |
-| Advanced SSO | Dedicated SSO providers surface. OIDC remains free, while SAML/multi-provider flows are clearly gated behind `advanced_sso`. | `shipped and productized` | `frontend-modern/src/components/Settings/SSOProvidersPanel.tsx`; `frontend-modern/src/components/Settings/useSSOProvidersState.ts`; `internal/api/router_routes_auth_security.go` |
+| SSO providers | Dedicated SSO providers surface. OIDC, SAML, and multi-provider flows are included with Community; `advanced_sso` remains only as an included compatibility capability. | `shipped and productized outside the paid bundle` | `frontend-modern/src/components/Settings/SSOProvidersPanel.tsx`; `frontend-modern/src/components/Settings/useSSOProvidersState.ts`; `internal/api/router_routes_auth_security.go` |
| RBAC | Dedicated roles surface, user/role admin routes, integrity check, and admin reset paths. | `shipped and productized` | `frontend-modern/src/components/Settings/RolesPanel.tsx`; `frontend-modern/src/components/Settings/useRolesPanelState.ts`; `internal/api/router_routes_licensing.go` |
| Audit logging | Dedicated audit log surface with filtering and signature verification, backed by gated audit endpoints. | `shipped and productized` | `frontend-modern/src/components/Settings/AuditLogPanel.tsx`; `frontend-modern/src/components/Settings/useAuditLogPanelState.ts`; `internal/api/router_routes_licensing.go` |
| PDF/CSV reporting | Dedicated reporting panel, reporting catalog, report generation, multi-report generation, and VM inventory export. | `shipped and productized` | `frontend-modern/src/components/Settings/ReportingPanel.tsx`; `frontend-modern/src/components/Settings/useReportingPanelState.ts`; `internal/api/reporting_catalog_handlers.go`; `internal/api/metrics_reporting_handlers.go`; `internal/api/reporting_inventory_handlers.go` |
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 8a4b0ff8d1..d1ba1d56cb 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -276,7 +276,7 @@ profile and assignment columns, but embedded table framing must route through
valid for one authenticated session, but retained CSRF hashes are not
install tokens, setup-token state, enrollment authority, or agent credential
continuity.
- The same shared-helper rule now covers SSO outbound discovery and metadata fetches plus credential-file loads in `internal/api/sso_outbound.go`, `internal/api/saml_service.go`, and `internal/api/oidc_service.go`: lifecycle-adjacent setup or auth work may depend on that shared trust boundary, but it must not fork a second HTTP client, redirect policy, or file-read rule inside lifecycle-local flows.
+ The same shared-helper rule now covers SSO outbound discovery and metadata fetches plus credential-file loads in `internal/api/sso_outbound.go`, `internal/api/saml_service.go`, and `internal/api/oidc_service.go`: lifecycle-adjacent setup or auth work may depend on that shared trust boundary, but it must not fork a second HTTP client, redirect policy, file-read rule, or SSO entitlement interpretation inside lifecycle-local flows. SAML and multi-provider SSO availability remains API/security-owned Community-tier behavior, not an agent lifecycle setup gate.
The same shared-helper rule also covers organization membership and
cross-organization sharing transport in `internal/api/org_handlers.go` plus
adjacent route wiring. Lifecycle surfaces may coexist on the same settings
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 6a86132f2b..7cbcd0396c 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -946,6 +946,12 @@ local auth handoff. OIDC and SAML success/error handlers must build their
local `returnTo` targets through one canonical local-path helper that rejects
absolute or host-bearing targets before query params are appended, so shared
identity flows cannot drift back to per-handler open-redirect shaping.
+The SSO entitlement contract is part of that same API boundary. Provider
+administration, SAML metadata preview/test, and runtime SAML routes may require
+the core `sso` capability, but they must not gate SAML or multi-provider
+provider management on the compatibility `advanced_sso` key. `advanced_sso`
+remains only an included entitlement payload key for older clients, while OIDC,
+SAML, and multi-provider SSO are Community-tier runtime capabilities.
Commercial self-service actions in that shell must stay same-origin as well:
the frontend may only call the portal-owned `/api/portal/commercial/*` routes,
and `internal/cloudcp/portal/commercial_proxy.go` plus `internal/cloudcp/routes.go`
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index bfe11bd3a0..472de490a3 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -404,8 +404,8 @@ runtime gating as separate unlinked claims.
customer-facing plan cards, top-summary highlights, and comparison rows
must lead with the canonical plan story: `Community = monitor`, `Relay =
reach Pulse from anywhere plus pair Pulse Mobile for handoff`, and `Pro = root-cause analysis, safe
- remediation workflows, and longer history`. Team/admin capabilities such as SAML
- SSO, RBAC, audit logging, reporting, and agent profiles may appear as
+ remediation workflows, and longer history`. Team/admin capabilities such as
+ RBAC, audit logging, reporting, and agent profiles may appear as
secondary included extras, while platform-specific compatibility keys such
as `kubernetes_ai` must not be elevated into a marquee marketed Pro line
item on the self-hosted Plans surface. Legacy packaging nouns such as
@@ -596,7 +596,7 @@ runtime gating as separate unlinked claims.
`frontend-modern/src/utils/pricingHandoff.ts` now routes displayable paid
self-hosted feature keys (`relay`, `mobile_app`, `push_notifications`,
-`ai_alerts`, `ai_autofix`, `long_term_metrics`, `advanced_sso`, `rbac`,
+`ai_alerts`, `ai_autofix`, `long_term_metrics`, `rbac`,
`audit_logging`, `advanced_reporting`, `agent_profiles`) to the
self-hosted billing plan page instead of the Pulse Account purchase-start
handoff. The purchase-start handoff requires a `PublicURL` and fails on local
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index f4dc41395e..8fb9d4164b 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -182,6 +182,11 @@ work extends shared components instead of creating new local variants.
## Extension Points
+SSO provider settings changes must preserve the shared Community-tier action
+path: SAML and OIDC provider creation stay on the same settings-shell control
+surface, while paid-plan copy and compatibility feature probes stay out of the
+frontend primitive boundary.
+
1. Add shared primitives in `frontend-modern/src/components/shared/`
Framed product table surfaces must consume the shared `TableCard` frame and
`TableCardHeader` title/action band instead of composing page-local `Card`
@@ -2606,6 +2611,13 @@ into section-local strings.
the canonical SSO provider settings runtime boundary: `SSOProvidersPanel.tsx`
is the shell, `useSSOProvidersState.ts` owns the reactive/API lifecycle, and
`ssoProvidersModel.ts` owns provider-form normalization and payload building.
+That boundary must keep SAML creation on the same first-class action path as
+OIDC. `SSOProvidersPanel.tsx` may show read-only state from settings
+capabilities, but it must not render a self-hosted Pro upsell, `UpgradeLink`,
+or `advanced_sso` feature probe before opening the SAML provider modal.
+`useSSOProvidersState.ts` must treat provider type as form state only; SSO
+entitlement truth belongs to the backend/runtime capability contract, where
+OIDC, SAML, and multi-provider SSO are Community-tier capabilities.
`frontend-modern/src/components/Settings/UpdatesSettingsPanel.tsx` must keep
page-shell titles, descriptions, and lead panel framing aligned instead of
letting navigation/header labels drift away from the actual settings surface.
diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.md
index 3ec1ff3381..78fc0e2a16 100644
--- a/docs/release-control/v6/internal/subsystems/security-privacy.md
+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md
@@ -320,6 +320,11 @@ That same governed settings trust boundary now also includes
copy, security posture scoring, audit-log wording, audit-webhook wording, and
SSO provider-type presentation remain part of the governed security trust
surface instead of floating as unowned settings helpers.
+That SSO security surface is not a paid-feature trust boundary. OIDC, SAML,
+and multi-provider SSO share the same Community-tier authentication control
+plane; security/privacy code may enforce authenticated settings capability
+reads and writes, but it must not turn SAML metadata, SAML runtime routes, or
+multi-provider administration into an `advanced_sso` paywall.
Audit-log filter option wording is part of that same trust surface: event,
success, and verification filter labels must be sourced from
`frontend-modern/src/utils/auditLogPresentation.ts` and the shared filter-option
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 486b17a4e7..692f0686ee 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -66,6 +66,11 @@ state.
## Extension Points
+Storage/recovery auth-adjacent changes may consume SSO-authenticated sessions,
+but they must not reinterpret SAML or multi-provider SSO availability as a
+storage/recovery entitlement; that provider-route and license truth belongs to
+the shared API/security boundary.
+
1. Add or change recovery-point persistence, rollups, or series derivation through `internal/recovery/`
2. Add or change recovery page UX through `frontend-modern/src/components/Recovery/` and keep canonical route/query/filter state ownership in `frontend-modern/src/features/recovery/useRecoverySurfaceState.ts`
Recovery table surfaces must consume the frontend-primitives-owned
@@ -2519,6 +2524,11 @@ ingress must stay direct-loopback only, recovery-token validation must remain
bound to the generating client IP, and break-glass recovery must clear or mint
browser sessions rather than toggling a shared `.auth_recovery` file for every
localhost caller.
+That same adjacent auth boundary may consume SSO-authenticated browser
+sessions, but storage/recovery code must not reinterpret SAML or
+multi-provider SSO availability as a recovery entitlement. SSO license and
+provider-route truth stays on the shared API/security boundary, where OIDC,
+SAML, and multi-provider SSO are Community-tier authentication capabilities.
That same shared `internal/api/` boundary also owns hosted AI bootstrap
continuity. Storage- and recovery-adjacent hosted flows may surface Patrol-
backed investigation or AI-assisted recovery guidance before an operator has
diff --git a/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx b/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
index fc6eaec9a5..092fdb33f1 100644
--- a/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
+++ b/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
@@ -1,15 +1,13 @@
import { Component, For, Show } from 'solid-js';
import SettingsPanel from '@/components/shared/SettingsPanel';
-import { Dialog } from '@/components/shared/Dialog';
-import { UpgradeLink } from '@/components/shared/UpgradeLink';
import { Toggle } from '@/components/shared/Toggle';
import { formField, labelClass, controlClass, formHelpText } from '@/components/shared/Form';
+import { Dialog } from '@/components/shared/Dialog';
import Plus from 'lucide-solid/icons/plus';
import Pencil from 'lucide-solid/icons/pencil';
import Trash2 from 'lucide-solid/icons/trash-2';
import Shield from 'lucide-solid/icons/shield';
import Copy from 'lucide-solid/icons/copy';
-import ExternalLink from 'lucide-solid/icons/external-link';
import CheckCircle from 'lucide-solid/icons/check-circle';
import XCircle from 'lucide-solid/icons/x-circle';
import Eye from 'lucide-solid/icons/eye';
@@ -26,12 +24,7 @@ import {
getSSOProviderSummary,
getSSOProviderTypeBadgeClass,
getSSOProviderTypeLabel,
- getSSOSamlFeatureGateCopy,
} from '@/utils/ssoProviderPresentation';
-import {
- getUpgradeActionButtonClass,
- UPGRADE_ACTION_LABEL,
-} from '@/utils/upgradePresentation';
import { ALERT_EMAIL_REPLY_TO_PLACEHOLDER } from '@/utils/alertEmailPresentation';
import { useSSOProvidersState } from '@/components/Settings/useSSOProvidersState';
@@ -41,7 +34,6 @@ interface SSOProvidersPanelProps {
}
export const SSOProvidersPanel: Component<SSOProvidersPanelProps> = (props) => {
- const samlFeatureGateCopy = getSSOSamlFeatureGateCopy();
const {
providers,
loading,
@@ -56,8 +48,6 @@ export const SSOProvidersPanel: Component<SSOProvidersPanelProps> = (props) => {
deleteConfirm,
setDeleteConfirm,
publicUrl,
- showSamlUpsell,
- setShowSamlUpsell,
testing,
testResult,
setTestResult,
@@ -65,7 +55,6 @@ export const SSOProvidersPanel: Component<SSOProvidersPanelProps> = (props) => {
setShowMetadataPreview,
metadataPreview,
loadingPreview,
- hasAdvancedSSO,
canManage,
openAddModal,
openEditModal,
@@ -77,86 +66,10 @@ export const SSOProvidersPanel: Component<SSOProvidersPanelProps> = (props) => {
testConnection,
canTest,
fetchMetadataPreview,
- getUpgradeActionDestination,
- runtimeCapabilitiesLoaded,
- showUpgradePrompts,
} = useSSOProvidersState(props);
return (
<div class="space-y-6">
- <Show when={showUpgradePrompts() && showSamlUpsell()}>
- <Dialog
- isOpen={true}
- onClose={() => setShowSamlUpsell(false)}
- panelClass="max-w-lg"
- closeOnBackdrop={false}
- ariaLabel="Add SAML provider"
- >
- <div class="w-full">
- <div class="flex items-center justify-between px-6 py-4 border-b border-border">
- <div>
- <h3 class="text-lg font-semibold text-base-content">Add SAML Provider</h3>
- <p class="text-xs text-muted mt-0.5">{samlFeatureGateCopy.subtitle}</p>
- </div>
- <button
- type="button"
- onClick={() => setShowSamlUpsell(false)}
- class="p-1.5 rounded-md hover:text-base-content hover:bg-surface-hover"
- aria-label="Close"
- >
- <X class="w-5 h-5" />
- </button>
- </div>
- <div class="px-6 py-5 space-y-4">
- <p class="text-sm text-muted">{samlFeatureGateCopy.body}</p>
- <div class="flex items-center justify-end gap-2">
- <button
- type="button"
- onClick={() => setShowSamlUpsell(false)}
- class="px-4 py-2 text-sm font-medium text-base-content border border-border rounded-md"
- >
- Not now
- </button>
- <UpgradeLink
- destination={getUpgradeActionDestination('advanced_sso')}
- class={getUpgradeActionButtonClass({ mobileFullWidth: false })}
- >
- {UPGRADE_ACTION_LABEL}
- <ExternalLink class="w-4 h-4" />
- </UpgradeLink>
- </div>
- </div>
- </div>
- </Dialog>
- </Show>
-
- {/* License banner */}
- <Show
- when={
- showUpgradePrompts() && runtimeCapabilitiesLoaded() && !hasAdvancedSSO() && !loading()
- }
- >
- <div class="p-4 bg-surface-alt border border-border rounded-md">
- <div class="flex flex-col sm:flex-row items-center gap-4">
- <div class="flex-1">
- <h4 class="text-base font-semibold text-base-content">
- {samlFeatureGateCopy.title}
- </h4>
- <p class="text-sm text-muted mt-1">{samlFeatureGateCopy.body}</p>
- </div>
- <div class="flex flex-col sm:flex-row items-center gap-2">
- <UpgradeLink
- destination={getUpgradeActionDestination('advanced_sso')}
- class={getUpgradeActionButtonClass({ mobileFullWidth: false })}
- >
- {UPGRADE_ACTION_LABEL}
- <ExternalLink class="w-4 h-4" />
- </UpgradeLink>
- </div>
- </div>
- </div>
- </Show>
-
{/* Main panel */}
<SettingsPanel
title="Single Sign-On Providers"
@@ -172,28 +85,15 @@ export const SSOProvidersPanel: Component<SSOProvidersPanelProps> = (props) => {
<Plus class="w-4 h-4" />
{getSSOProviderAddButtonLabel('oidc')}
</button>
- <Show when={hasAdvancedSSO()}>
- <button
- type="button"
- onClick={() => openAddModal('saml')}
- disabled={!canManage()}
- class="min-h-10 sm:min-h-9 px-3 py-2.5 text-sm font-medium border border-border text-base-content rounded-md hover:bg-surface-hover transition-colors flex items-center gap-1.5"
- >
- <Plus class="w-4 h-4" />
- {getSSOProviderAddButtonLabel('saml')}
- </button>
- </Show>
- <Show when={showUpgradePrompts() && runtimeCapabilitiesLoaded() && !hasAdvancedSSO()}>
- <button
- type="button"
- onClick={() => setShowSamlUpsell(true)}
- disabled={!canManage()}
- class="min-h-10 sm:min-h-9 px-3 py-2.5 text-sm font-medium border border-border text-base-content rounded-md hover:bg-surface-hover transition-colors flex items-center gap-1.5"
- >
- <Plus class="w-4 h-4" />
- {getSSOProviderAddButtonLabel('saml')}
- </button>
- </Show>
+ <button
+ type="button"
+ onClick={() => openAddModal('saml')}
+ disabled={!canManage()}
+ class="min-h-10 sm:min-h-9 px-3 py-2.5 text-sm font-medium border border-border text-base-content rounded-md hover:bg-surface-hover transition-colors flex items-center gap-1.5"
+ >
+ <Plus class="w-4 h-4" />
+ {getSSOProviderAddButtonLabel('saml')}
+ </button>
</div>
}
bodyClass="space-y-6"
diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
index b499e1cf2c..54e8242f70 100644
--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
@@ -515,7 +515,6 @@ describe('ProLicensePanel', () => {
expect(screen.getByText('Alert Root-Cause Analysis')).toBeInTheDocument();
expect(screen.getByText('Safe Remediation Workflows')).toBeInTheDocument();
expect(screen.getByText('Included extras')).toBeInTheDocument();
- expect(screen.getByText('Advanced SSO (SAML/Multi-Provider)')).toBeInTheDocument();
expect(screen.getByText('Pulse Pro value proof')).toBeInTheDocument();
expect(
screen.getByText(
@@ -793,7 +792,7 @@ describe('ProLicensePanel', () => {
renderPanel();
await waitFor(() => {
- expect(screen.getByText('Basic SSO (OIDC)')).toBeInTheDocument();
+ expect(screen.getByText('Core SSO (OIDC/SAML)')).toBeInTheDocument();
});
// Verify self-hosted displayable capabilities render with their expected labels.
@@ -801,7 +800,6 @@ describe('ProLicensePanel', () => {
expect(screen.getByText('Alert Root-Cause Analysis')).toBeInTheDocument();
expect(screen.getByText('Safe Remediation Workflows')).toBeInTheDocument();
expect(screen.getByText('Update Alerts')).toBeInTheDocument();
- expect(screen.getByText('Advanced SSO (SAML/Multi-Provider)')).toBeInTheDocument();
expect(screen.getByText('Role-Based Access Control (RBAC)')).toBeInTheDocument();
expect(screen.getByText('Audit Logging')).toBeInTheDocument();
expect(screen.getByText('PDF/CSV Reporting')).toBeInTheDocument();
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 820d505a95..d4a538ec4d 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -251,6 +251,17 @@ describe('settings architecture guardrails', () => {
);
});
+ it('keeps SAML SSO available without a self-hosted Pro upsell boundary', () => {
+ expect(ssoProvidersPanelSource).toContain("openAddModal('saml')");
+ expect(ssoProvidersPanelSource).toContain('getSSOProviderAddButtonLabel');
+ expect(ssoProvidersPanelSource).not.toContain('showSamlUpsell');
+ expect(ssoProvidersPanelSource).not.toContain('UpgradeLink');
+ expect(ssoProvidersPanelSource).not.toContain('Add SAML (Pro)');
+ expect(ssoProvidersStateSource).not.toContain('advanced_sso');
+ expect(ssoProvidersStateSource).not.toContain('getUpgradeActionDestination');
+ expect(ssoProvidersStateSource).not.toContain('loadRuntimeCapabilities');
+ });
+
it('keeps Docker and Podman update-action copy on the system settings presentation owner', () => {
expect(dockerRuntimeSettingsCardSource).toContain('DOCKER_UPDATE_ACTIONS_SECTION_TITLE');
expect(dockerRuntimeSettingsCardSource).toContain('DOCKER_UPDATE_ACTIONS_ENV_VAR');
diff --git a/frontend-modern/src/components/Settings/useSSOProvidersState.ts b/frontend-modern/src/components/Settings/useSSOProvidersState.ts
index 52e4246abd..7f9085b7ec 100644
--- a/frontend-modern/src/components/Settings/useSSOProvidersState.ts
+++ b/frontend-modern/src/components/Settings/useSSOProvidersState.ts
@@ -2,10 +2,6 @@ import { createMemo, createSignal, onMount } from 'solid-js';
import { createStore } from 'solid-js/store';
import { notificationStore } from '@/stores/notifications';
import { logger } from '@/utils/logger';
-import { hasFeature, runtimeCapabilitiesLoaded } from '@/stores/license';
-import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
-import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
-import { loadRuntimeCapabilities } from '@/stores/license';
import {
getSSOCopySuccessMessage,
getSSOConnectionTestErrorMessage,
@@ -54,16 +50,13 @@ export const useSSOProvidersState = (props: SSOProvidersPanelProps) => {
const [advancedOpen, setAdvancedOpen] = createSignal(false);
const [deleteConfirm, setDeleteConfirm] = createSignal<string | null>(null);
const [publicUrl, setPublicUrl] = createSignal('');
- const [showSamlUpsell, setShowSamlUpsell] = createSignal(false);
const [testing, setTesting] = createSignal(false);
const [testResult, setTestResult] = createSignal<SSOProviderTestResult | null>(null);
const [showMetadataPreview, setShowMetadataPreview] = createSignal(false);
const [metadataPreview, setMetadataPreview] = createSignal<MetadataPreview | null>(null);
const [loadingPreview, setLoadingPreview] = createSignal(false);
- const hasAdvancedSSO = createMemo(() => hasFeature('advanced_sso'));
const canManage = () => props.canManage !== false;
- const showUpgradePrompts = () => !presentationPolicyHidesUpgradePrompts();
const loadProviders = async () => {
setLoading(true);
@@ -90,7 +83,6 @@ export const useSSOProvidersState = (props: SSOProvidersPanelProps) => {
};
onMount(() => {
- loadRuntimeCapabilities();
void loadProviders();
});
@@ -98,9 +90,6 @@ export const useSSOProvidersState = (props: SSOProvidersPanelProps) => {
if (!canManage()) {
return;
}
- if (type === 'saml' && !hasAdvancedSSO() && !showUpgradePrompts()) {
- return;
- }
setEditingProvider(null);
setForm(createEmptyProviderForm());
setForm('type', type);
@@ -305,9 +294,6 @@ export const useSSOProvidersState = (props: SSOProvidersPanelProps) => {
deleteConfirm,
setDeleteConfirm,
publicUrl,
- showSamlUpsell,
- setShowSamlUpsell,
- showUpgradePrompts,
testing,
testResult,
setTestResult,
@@ -315,7 +301,6 @@ export const useSSOProvidersState = (props: SSOProvidersPanelProps) => {
setShowMetadataPreview,
metadataPreview,
loadingPreview,
- hasAdvancedSSO,
canManage,
openAddModal,
openEditModal,
@@ -327,7 +312,5 @@ export const useSSOProvidersState = (props: SSOProvidersPanelProps) => {
testConnection,
canTest,
fetchMetadataPreview,
- getUpgradeActionDestination,
- runtimeCapabilitiesLoaded,
};
};
diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
index f5d4d0c9dc..4bb2002cc3 100644
--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
@@ -243,7 +243,7 @@ describe('licensePresentation', () => {
}),
).toEqual({
title: 'Current plan: Community',
- body: 'Community is active on this instance. It includes self-hosted monitoring, 7-day metric history, Pulse Patrol (BYOK), and update alerts.',
+ body: 'Community is active on this instance. It includes self-hosted monitoring, 7-day metric history, Pulse Patrol (BYOK), update alerts, and SSO.',
unlockedFeaturesLabel: 'Included on this instance',
unlockedFeatures: [
'Real-time monitoring',
@@ -307,7 +307,6 @@ describe('licensePresentation', () => {
],
includedExtrasLabel: 'Included extras',
includedExtras: [
- 'Advanced SSO (SAML/Multi-Provider)',
'Role-Based Access Control (RBAC)',
'Audit Logging',
'PDF/CSV Reporting',
@@ -368,7 +367,6 @@ describe('licensePresentation', () => {
],
includedExtrasLabel: 'Included extras',
includedExtras: [
- 'Advanced SSO (SAML/Multi-Provider)',
'Role-Based Access Control (RBAC)',
'Audit Logging',
'PDF/CSV Reporting',
@@ -437,12 +435,11 @@ describe('licensePresentation', () => {
},
{
title: 'What Pulse Pro adds',
- body: 'Add operations features on top of free monitoring: root-cause analysis, safe remediation workflows, 90-day history, SAML SSO, RBAC, audit logging, reporting, and agent profiles.',
+ body: 'Add operations features on top of free monitoring: root-cause analysis, safe remediation workflows, 90-day history, RBAC, audit logging, reporting, and agent profiles.',
highlights: [
'Alert Root-Cause Analysis',
'Safe Remediation Workflows',
'90-day metric history',
- 'Advanced SSO (SAML/Multi-Provider)',
'Role-Based Access Control (RBAC)',
'Audit Logging',
'PDF/CSV Reporting',
@@ -466,12 +463,11 @@ describe('licensePresentation', () => {
cards: [
{
title: 'What Pulse Pro adds',
- body: 'Add operations features on top of free monitoring: root-cause analysis, safe remediation workflows, 90-day history, SAML SSO, RBAC, audit logging, reporting, and agent profiles.',
+ body: 'Add operations features on top of free monitoring: root-cause analysis, safe remediation workflows, 90-day history, RBAC, audit logging, reporting, and agent profiles.',
highlights: [
'Alert Root-Cause Analysis',
'Safe Remediation Workflows',
'90-day metric history',
- 'Advanced SSO (SAML/Multi-Provider)',
'Role-Based Access Control (RBAC)',
'Audit Logging',
'PDF/CSV Reporting',
@@ -609,7 +605,6 @@ describe('licensePresentation', () => {
'Alert Root-Cause Analysis',
'Safe Remediation Workflows',
'90-day metric history',
- 'Advanced SSO (SAML/Multi-Provider)',
'Role-Based Access Control (RBAC)',
'Audit Logging',
'PDF/CSV Reporting',
diff --git a/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts b/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts
index 44f75bf3b7..63633cc790 100644
--- a/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts
+++ b/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts
@@ -73,7 +73,6 @@ describe('pricingHandoff', () => {
'ai_alerts',
'ai_autofix',
'long_term_metrics',
- 'advanced_sso',
'rbac',
'audit_logging',
'advanced_reporting',
@@ -167,9 +166,9 @@ describe('pricingHandoff', () => {
'?intent=max_monitored_systems',
),
).toBe(SELF_HOSTED_PRO_BILLING_PLAN_HREF);
- expect(
- resolveCanonicalSelfHostedBillingHref(`${SELF_HOSTED_PRO_BILLING_ROUTE}/history`),
- ).toBe(SELF_HOSTED_PRO_BILLING_PLAN_HREF);
+ expect(resolveCanonicalSelfHostedBillingHref(`${SELF_HOSTED_PRO_BILLING_ROUTE}/history`)).toBe(
+ SELF_HOSTED_PRO_BILLING_PLAN_HREF,
+ );
});
it('derives billing focus and arrival intent from canonical routes', () => {
diff --git a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
index 5b0d3e80a9..e48c7ecc4c 100644
--- a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
+++ b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
@@ -90,7 +90,7 @@ describe('selfHostedPlans', () => {
it('keeps Community copy free-first and Pro copy focused on operational extras', () => {
expect(SELF_HOSTED_PLAN_BY_TIER.community.subline).toBe('Core monitoring included');
expect(SELF_HOSTED_PLAN_BY_TIER.community.billingExtrasSummary).toBe(
- 'Patrol, alerts, and OIDC',
+ 'Patrol, alerts, and SSO',
);
expect(SELF_HOSTED_PLAN_BY_TIER.community.entitlementSummary).toContain(
'Community is active on this instance.',
@@ -141,7 +141,6 @@ describe('selfHostedPlans', () => {
'90-day metric history',
]);
expect(SELF_HOSTED_PLAN_BY_TIER.pro.includedExtras).toEqual([
- 'Advanced SSO (SAML/Multi-Provider)',
'Role-Based Access Control (RBAC)',
'Audit Logging',
'PDF/CSV Reporting',
@@ -199,7 +198,6 @@ describe('selfHostedPlans', () => {
'ai_alerts',
'ai_autofix',
'long_term_metrics',
- 'advanced_sso',
'rbac',
'audit_logging',
'advanced_reporting',
@@ -212,7 +210,7 @@ describe('selfHostedPlans', () => {
extras: plan.billingExtrasSummary,
})),
).toEqual([
- { tier: 'community', historyDays: 7, extras: 'Patrol, alerts, and OIDC' },
+ { tier: 'community', historyDays: 7, extras: 'Patrol, alerts, and SSO' },
{
tier: 'relay',
historyDays: 14,
diff --git a/frontend-modern/src/utils/__tests__/ssoProviderPresentation.test.ts b/frontend-modern/src/utils/__tests__/ssoProviderPresentation.test.ts
index 3018235240..d698b4f17a 100644
--- a/frontend-modern/src/utils/__tests__/ssoProviderPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/ssoProviderPresentation.test.ts
@@ -58,9 +58,9 @@ describe('ssoProviderPresentation', () => {
it('returns capability-focused SAML feature gate copy', () => {
expect(getSSOSamlFeatureGateCopy()).toMatchObject({
- title: 'Advanced SSO',
- subtitle: 'Advanced SSO',
- body: expect.stringContaining('paid self-hosted and hosted plans'),
+ title: 'Single Sign-On',
+ subtitle: 'Single Sign-On',
+ body: expect.stringContaining('included with Community'),
});
expect(getSSOSamlFeatureGateCopy().body).not.toContain('Pro');
});
@@ -74,9 +74,7 @@ describe('ssoProviderPresentation', () => {
it('formats provider operational messages canonically', () => {
expect(getSSOProvidersLoadErrorMessage()).toBe('Unable to load SSO providers.');
- expect(getSSOProviderDetailsLoadErrorMessage()).toBe(
- 'Unable to load SSO provider details.',
- );
+ expect(getSSOProviderDetailsLoadErrorMessage()).toBe('Unable to load SSO provider details.');
expect(getSSOProviderSaveSuccessMessage(true)).toBe('SSO provider has been updated.');
expect(getSSOProviderSaveSuccessMessage(false)).toBe('SSO provider has been created.');
expect(getSSOProviderSaveErrorMessage('boom')).toBe('Unable to save the SSO provider: boom');
@@ -92,9 +90,7 @@ describe('ssoProviderPresentation', () => {
);
expect(getSSOConnectionTestErrorMessage()).toBe('Unable to run the connection test.');
expect(getSSOMetadataUrlRequiredMessage()).toBe('Enter an IdP metadata URL.');
- expect(getSSOMetadataFetchErrorMessage('timeout')).toBe(
- 'Unable to fetch metadata: timeout',
- );
+ expect(getSSOMetadataFetchErrorMessage('timeout')).toBe('Unable to fetch metadata: timeout');
});
it('formats certificate tone and expired label canonically', () => {
diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.ts
index 0fa6a458ee..38f6de2fa8 100644
--- a/frontend-modern/src/utils/licensePresentation.ts
+++ b/frontend-modern/src/utils/licensePresentation.ts
@@ -650,8 +650,7 @@ const buildCapabilityProofItem = ({
label,
state,
statusLabel: getProofStatusLabel(state),
- detail:
- state === 'active' ? activeDetail : state === 'partial' ? partialDetail : missingDetail,
+ detail: state === 'active' ? activeDetail : state === 'partial' ? partialDetail : missingDetail,
};
};
@@ -724,15 +723,8 @@ export const getSelfHostedActivationProofPresentation = (
buildCapabilityProofItem({
capabilities,
label: 'Team and admin controls',
- requiredCapabilities: [
- 'advanced_sso',
- 'rbac',
- 'audit_logging',
- 'advanced_reporting',
- 'agent_profiles',
- ],
- activeDetail:
- 'Advanced SSO, RBAC, audit logging, reporting, and agent-profile capabilities are present.',
+ requiredCapabilities: ['rbac', 'audit_logging', 'advanced_reporting', 'agent_profiles'],
+ activeDetail: 'RBAC, audit logging, reporting, and agent-profile capabilities are present.',
partialDetail:
'Some team/admin capabilities are present. Refresh or recover activation if any admin tools stay unavailable.',
missingDetail:
diff --git a/frontend-modern/src/utils/pricingHandoff.ts b/frontend-modern/src/utils/pricingHandoff.ts
index 4ea470bf48..ac30b6c57e 100644
--- a/frontend-modern/src/utils/pricingHandoff.ts
+++ b/frontend-modern/src/utils/pricingHandoff.ts
@@ -62,7 +62,6 @@ const IN_PRODUCT_PRICING_DESTINATIONS: Record<string, string> = {
relay: SELF_HOSTED_PRO_BILLING_PLAN_HREF,
rbac: SELF_HOSTED_PRO_BILLING_PLAN_HREF,
audit_logging: SELF_HOSTED_PRO_BILLING_PLAN_HREF,
- advanced_sso: SELF_HOSTED_PRO_BILLING_PLAN_HREF,
advanced_reporting: SELF_HOSTED_PRO_BILLING_PLAN_HREF,
agent_profiles: SELF_HOSTED_PRO_BILLING_PLAN_HREF,
long_term_metrics: SELF_HOSTED_PRO_BILLING_PLAN_HREF,
diff --git a/frontend-modern/src/utils/selfHostedFeatureCatalog.generated.ts b/frontend-modern/src/utils/selfHostedFeatureCatalog.generated.ts
index 39e9a0061f..0f35257bcc 100644
--- a/frontend-modern/src/utils/selfHostedFeatureCatalog.generated.ts
+++ b/frontend-modern/src/utils/selfHostedFeatureCatalog.generated.ts
@@ -46,8 +46,8 @@ export const SELF_HOSTED_FEATURE_CATALOG: readonly GeneratedSelfHostedFeatureCat
},
{
"key": "sso",
- "displayName": "Basic SSO (OIDC)",
- "comparisonName": "Basic SSO (OIDC)",
+ "displayName": "Core SSO (OIDC/SAML)",
+ "comparisonName": "Core SSO (OIDC/SAML)",
"showInComparisonTable": true,
"displayableInSelfHostedPlan": true,
"roles": {
@@ -182,18 +182,18 @@ export const SELF_HOSTED_FEATURE_CATALOG: readonly GeneratedSelfHostedFeatureCat
},
{
"key": "advanced_sso",
- "displayName": "Advanced SSO (SAML/Multi-Provider)",
- "comparisonName": "Advanced SSO (SAML/Multi-Provider)",
- "showInComparisonTable": true,
- "displayableInSelfHostedPlan": true,
+ "displayName": "Multi-Provider SSO",
+ "comparisonName": "Multi-Provider SSO",
+ "showInComparisonTable": false,
+ "displayableInSelfHostedPlan": false,
"roles": {
- "community": "hidden",
- "relay": "hidden",
- "pro": "included_extra"
+ "community": "included",
+ "relay": "included",
+ "pro": "included"
},
"includedIn": {
- "community": false,
- "relay": false,
+ "community": true,
+ "relay": true,
"pro": true
}
},
diff --git a/frontend-modern/src/utils/selfHostedPlans.ts b/frontend-modern/src/utils/selfHostedPlans.ts
index 17f267f865..9bebe6dae8 100644
--- a/frontend-modern/src/utils/selfHostedPlans.ts
+++ b/frontend-modern/src/utils/selfHostedPlans.ts
@@ -80,7 +80,7 @@ export function getSelfHostedPlanEntitlementSummary(
): string {
switch (tier) {
case 'community':
- return `${planLabel} is active on this instance. It includes self-hosted monitoring, 7-day metric history, Pulse Patrol (BYOK), and update alerts.`;
+ return `${planLabel} is active on this instance. It includes self-hosted monitoring, 7-day metric history, Pulse Patrol (BYOK), update alerts, and SSO.`;
case 'relay':
return `${planLabel} is active on this instance. Remote web access, Pulse Mobile pairing, push notifications, and longer history are available right now.`;
case 'pro':
@@ -104,7 +104,7 @@ export const SELF_HOSTED_PLAN_DEFINITIONS: readonly SelfHostedPlanDefinition[] =
price: 'Free forever',
subline: 'Core monitoring included',
metricHistoryDays: 7,
- billingExtrasSummary: 'Patrol, alerts, and OIDC',
+ billingExtrasSummary: 'Patrol, alerts, and SSO',
entitlementSummary: getSelfHostedPlanEntitlementSummary('community'),
entitlementHighlights: [
'Real-time monitoring',
@@ -120,7 +120,7 @@ export const SELF_HOSTED_PLAN_DEFINITIONS: readonly SelfHostedPlanDefinition[] =
'7-day metric history',
'Pulse Patrol (BYOK)',
'Update alerts',
- 'Basic SSO (OIDC)',
+ 'SSO (OIDC/SAML)',
'Community support',
],
},
@@ -156,13 +156,13 @@ export const SELF_HOSTED_PLAN_DEFINITIONS: readonly SelfHostedPlanDefinition[] =
entitlementHighlights: getTierEntitlementHighlights('pro', 90),
includedExtras: getTierIncludedExtras('pro'),
comparisonSummary:
- 'Add operations features on top of free monitoring: root-cause analysis, safe remediation workflows, 90-day history, SAML SSO, RBAC, audit logging, reporting, and agent profiles.',
+ 'Add operations features on top of free monitoring: root-cause analysis, safe remediation workflows, 90-day history, RBAC, audit logging, reporting, and agent profiles.',
highlights: [
'Everything in Relay',
'Alert root-cause analysis',
'Safe remediation workflows',
'90-day metric history',
- 'RBAC, audit logging, SAML SSO',
+ 'RBAC and audit logging',
'Agent profiles · PDF/CSV reports',
],
},
diff --git a/frontend-modern/src/utils/ssoProviderPresentation.ts b/frontend-modern/src/utils/ssoProviderPresentation.ts
index 26f062dc41..e115ba7c28 100644
--- a/frontend-modern/src/utils/ssoProviderPresentation.ts
+++ b/frontend-modern/src/utils/ssoProviderPresentation.ts
@@ -23,9 +23,9 @@ export function getSSOProviderAddButtonLabel(type: SSOProviderType): string {
export function getSSOSamlFeatureGateCopy(): SSOProviderFeatureGateCopy {
return {
- title: 'Advanced SSO',
- subtitle: 'Advanced SSO',
- body: 'SAML 2.0 and multi-provider SSO are available on paid self-hosted and hosted plans. Basic OIDC remains available without a paid plan.',
+ title: 'Single Sign-On',
+ subtitle: 'Single Sign-On',
+ body: 'OIDC, SAML, and multi-provider SSO are included with Community and higher tiers.',
};
}
@@ -124,7 +124,8 @@ export function getSSOProviderTypeBadgeClass(): string {
export function getSSOTestResultPresentation(success: boolean) {
if (success) {
return {
- panelClass: 'p-4 rounded-md border bg-green-50 dark:bg-green-900 border-green-200 dark:border-green-800',
+ panelClass:
+ 'p-4 rounded-md border bg-green-50 dark:bg-green-900 border-green-200 dark:border-green-800',
iconClass: 'w-5 h-5 text-emerald-500 dark:text-emerald-400 flex-shrink-0 mt-0.5',
titleClass: 'text-sm font-medium text-green-800 dark:text-green-200',
errorClass: 'text-xs text-red-600 dark:text-red-400 mt-1',
@@ -132,7 +133,8 @@ export function getSSOTestResultPresentation(success: boolean) {
}
return {
- panelClass: 'p-4 rounded-md border bg-red-50 dark:bg-red-900 border-red-200 dark:border-red-800',
+ panelClass:
+ 'p-4 rounded-md border bg-red-50 dark:bg-red-900 border-red-200 dark:border-red-800',
iconClass: 'w-5 h-5 text-rose-500 dark:text-rose-400 flex-shrink-0 mt-0.5',
titleClass: 'text-sm font-medium text-red-800 dark:text-red-200',
errorClass: 'text-xs text-red-600 dark:text-red-400 mt-1',
diff --git a/internal/api/contract_test.go b/internal/api/contract_test.go
index 91543ba9b3..c7ddd22e66 100644
--- a/internal/api/contract_test.go
+++ b/internal/api/contract_test.go
@@ -5382,7 +5382,7 @@ func TestContract_EntitlementPayloadMonitoredSystemUsageJSONSnapshot(t *testing.
}
const want = `{
- "capabilities":["update_alerts","sso","ai_patrol","relay","mobile_app","push_notifications","long_term_metrics","ai_alerts","ai_autofix","kubernetes_ai","agent_profiles","advanced_sso","rbac","audit_logging","advanced_reporting"],
+ "capabilities":["update_alerts","sso","advanced_sso","ai_patrol","relay","mobile_app","push_notifications","long_term_metrics","ai_alerts","ai_autofix","kubernetes_ai","agent_profiles","rbac","audit_logging","advanced_reporting"],
"limits":[],
"subscription_state":"active",
"upgrade_reasons":[],
@@ -5426,7 +5426,7 @@ func TestContract_SelfHostedCommunityEntitlementsJSONSnapshot(t *testing.T) {
}
const want = `{
- "capabilities":["update_alerts","sso","ai_patrol"],
+ "capabilities":["update_alerts","sso","advanced_sso","ai_patrol"],
"limits":[],
"subscription_state":"active",
"upgrade_reasons":[
@@ -5438,7 +5438,6 @@ func TestContract_SelfHostedCommunityEntitlementsJSONSnapshot(t *testing.T) {
{"key":"ai_alerts","reason":"Upgrade to Pro so alerts arrive with root-cause analysis instead of a stack of symptoms.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=ai_alerts"},
{"key":"rbac","reason":"Upgrade to Pro when more than one operator needs safe access boundaries around infrastructure changes.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=rbac"},
{"key":"agent_profiles","reason":"Upgrade to Pro to standardize agent behavior across systems without reconfiguring every install by hand.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=agent_profiles"},
- {"key":"advanced_sso","reason":"Upgrade to Pro to connect your identity provider and keep operator access aligned with your existing auth controls.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=advanced_sso"},
{"key":"audit_logging","reason":"Upgrade to Pro to keep a trustworthy action trail for incident review, accountability, and compliance.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=audit_logging"},
{"key":"advanced_reporting","reason":"Upgrade to Pro to turn live infrastructure state into shareable reports without manual screenshot work.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=advanced_reporting"}
],
@@ -5488,7 +5487,7 @@ func TestContract_SelfHostedCommunityRuntimeCapabilitiesJSONSnapshot(t *testing.
}
const want = `{
- "capabilities":["update_alerts","sso","ai_patrol"],
+ "capabilities":["update_alerts","sso","advanced_sso","ai_patrol"],
"limits":[],
"hosted_mode":false,
"max_history_days":7,
@@ -5520,7 +5519,7 @@ func TestContract_EntitlementPayloadMonitoredSystemUsageUnavailableJSONSnapshot(
}
const want = `{
- "capabilities":["update_alerts","sso","ai_patrol","relay","mobile_app","push_notifications","long_term_metrics","ai_alerts","ai_autofix","kubernetes_ai","agent_profiles","advanced_sso","rbac","audit_logging","advanced_reporting"],
+ "capabilities":["update_alerts","sso","advanced_sso","ai_patrol","relay","mobile_app","push_notifications","long_term_metrics","ai_alerts","ai_autofix","kubernetes_ai","agent_profiles","rbac","audit_logging","advanced_reporting"],
"limits":[{"key":"max_monitored_systems","limit":15,"current":0,"current_available":false,"current_unavailable_reason":"supplemental_inventory_unsettled","state":"ok"}],
"subscription_state":"active",
"upgrade_reasons":[],
@@ -5565,7 +5564,7 @@ func TestContract_EntitlementPayloadLifetimeJSONSnapshot(t *testing.T) {
}
const want = `{
- "capabilities":["update_alerts","sso","ai_patrol","relay","mobile_app","push_notifications","long_term_metrics","ai_alerts","ai_autofix","kubernetes_ai","agent_profiles","advanced_sso","rbac","audit_logging","advanced_reporting"],
+ "capabilities":["update_alerts","sso","advanced_sso","ai_patrol","relay","mobile_app","push_notifications","long_term_metrics","ai_alerts","ai_autofix","kubernetes_ai","agent_profiles","rbac","audit_logging","advanced_reporting"],
"limits":[],
"subscription_state":"active",
"upgrade_reasons":[],
diff --git a/internal/api/identity_sso_handlers.go b/internal/api/identity_sso_handlers.go
index b789879cf1..92171b5fc6 100644
--- a/internal/api/identity_sso_handlers.go
+++ b/internal/api/identity_sso_handlers.go
@@ -28,7 +28,6 @@ const (
maxProviderNameLength = 128
maxURLLength = 2048
maxRequestBodySize = 1 << 20 // 1MB
- featureAdvancedSSOKey = "advanced_sso"
)
// providerIDRegex validates provider IDs (alphanumeric, hyphens, underscores)
@@ -287,15 +286,6 @@ func (r *Router) handleCreateSSOProvider(w http.ResponseWriter, req *http.Reques
return
}
- // SAML requires Advanced SSO license (OIDC is free)
- if provider.Type == config.SSOProviderTypeSAML {
- svc := r.licenseHandlers.Service(req.Context())
- if err := svc.RequireFeature(featureAdvancedSSOKey); err != nil {
- WriteLicenseRequired(w, featureAdvancedSSOKey, "SAML SSO requires a Pro license. Basic OIDC SSO is available on all tiers.")
- return
- }
- }
-
// Security: Validate OIDC configuration
if provider.Type == config.SSOProviderTypeOIDC {
if provider.OIDC == nil {
@@ -420,15 +410,6 @@ func (r *Router) handleUpdateSSOProvider(w http.ResponseWriter, req *http.Reques
return
}
- // SAML requires Advanced SSO license (OIDC is free)
- if updated.Type == config.SSOProviderTypeSAML {
- svc := r.licenseHandlers.Service(req.Context())
- if err := svc.RequireFeature(featureAdvancedSSOKey); err != nil {
- WriteLicenseRequired(w, featureAdvancedSSOKey, "SAML SSO requires a Pro license. Basic OIDC SSO is available on all tiers.")
- return
- }
- }
-
// Security: Validate URLs for OIDC
if updated.Type == config.SSOProviderTypeOIDC && updated.OIDC != nil {
if updated.OIDC.IssuerURL != "" && !validateURL(updated.OIDC.IssuerURL, []string{"https", "http"}) {
@@ -775,15 +756,6 @@ func (r *Router) handleTestSSOProvider(w http.ResponseWriter, req *http.Request)
switch testReq.Type {
case "saml":
- // Defense-in-depth: SAML requires advanced_sso feature
- if r.licenseHandlers != nil {
- if svc := r.licenseHandlers.Service(req.Context()); svc != nil {
- if err := svc.RequireFeature(featureAdvancedSSOKey); err != nil {
- WriteLicenseRequired(w, featureAdvancedSSOKey, "SAML SSO requires a Pro license. Basic OIDC SSO is available on all tiers.")
- return
- }
- }
- }
response = r.testSAMLConnection(ctx, testReq.SAML)
case "oidc":
response = r.testOIDCConnection(ctx, testReq.OIDC)
@@ -1121,16 +1093,6 @@ func (r *Router) handleMetadataPreview(w http.ResponseWriter, req *http.Request)
return
}
- // Defense-in-depth: SAML metadata preview requires advanced_sso feature
- if r.licenseHandlers != nil {
- if svc := r.licenseHandlers.Service(req.Context()); svc != nil {
- if err := svc.RequireFeature(featureAdvancedSSOKey); err != nil {
- WriteLicenseRequired(w, featureAdvancedSSOKey, "SAML SSO requires a Pro license. Basic OIDC SSO is available on all tiers.")
- return
- }
- }
- }
-
if previewReq.MetadataURL == "" && previewReq.MetadataXML == "" {
writeErrorResponse(w, http.StatusBadRequest, "validation_error", "Provide either metadataUrl or metadataXml", nil)
return
diff --git a/internal/api/router_routes_auth_security.go b/internal/api/router_routes_auth_security.go
index ecad990a3b..ebb562b945 100644
--- a/internal/api/router_routes_auth_security.go
+++ b/internal/api/router_routes_auth_security.go
@@ -99,9 +99,9 @@ func (r *Router) registerAuthSecurityInstallRoutes() {
ssoAdminEndpoints.HandleProviderItem(w, req)
})))
- // SAML login flow routes (unauthenticated - these are login/callback endpoints)
- // SAML is an advanced_sso feature requiring a Pro license.
- r.mux.HandleFunc("/api/saml/", RequireLicenseFeature(r.licenseHandlers, featureAdvancedSSOKey, func(w http.ResponseWriter, req *http.Request) {
+ // SAML login flow routes (unauthenticated - these are login/callback endpoints).
+ // SAML is part of the core SSO contract and is included with Community.
+ r.mux.HandleFunc("/api/saml/", RequireLicenseFeature(r.licenseHandlers, featureSSOKey, func(w http.ResponseWriter, req *http.Request) {
parts := strings.Split(strings.TrimPrefix(req.URL.Path, "/"), "/")
if len(parts) < 4 {
http.NotFound(w, req)
diff --git a/internal/api/saml_runtime_license_gating_test.go b/internal/api/saml_runtime_license_gating_test.go
index 1501a65a7b..41e4ad6e0e 100644
--- a/internal/api/saml_runtime_license_gating_test.go
+++ b/internal/api/saml_runtime_license_gating_test.go
@@ -9,14 +9,11 @@ import (
"github.com/rcourtman/pulse-go-rewrite/internal/config"
)
-// TestSAMLRuntimeEndpointsRequireLicenseFeature verifies that the SAML
+// TestSAMLRuntimeEndpointsUseCommunitySSOFeature verifies that the SAML
// login-flow endpoints (/api/saml/{id}/login, /acs, /metadata, /logout, /slo)
-// return 402 Payment Required when no Pro license is active. SAML is an
-// advanced_sso feature and must not be usable on the free tier.
-//
-// Covers assessment gap #1: "SAML runtime endpoints have NO advanced_sso
-// license enforcement."
-func TestSAMLRuntimeEndpointsRequireLicenseFeature(t *testing.T) {
+// do not return the old paid-feature 402 when no paid license is active. SAML
+// is part of the Community SSO capability.
+func TestSAMLRuntimeEndpointsUseCommunitySSOFeature(t *testing.T) {
tempDir := t.TempDir()
cfg := &config.Config{DataPath: tempDir, ConfigPath: tempDir}
router := NewRouter(cfg, nil, nil, nil, nil, "1.0.0")
@@ -43,16 +40,15 @@ func TestSAMLRuntimeEndpointsRequireLicenseFeature(t *testing.T) {
rec := httptest.NewRecorder()
handler.ServeHTTP(rec, req)
- if rec.Code != http.StatusPaymentRequired {
- t.Errorf("%s %s: expected 402 for missing advanced_sso license, got %d", tc.method, tc.path, rec.Code)
+ if rec.Code == http.StatusPaymentRequired {
+ t.Errorf("%s %s: should not get 402 for Community SSO, got body: %s", tc.method, tc.path, rec.Body.String())
}
}
}
-// TestSAMLRuntimeLicenseGatingResponseFormat verifies that the 402 response
-// from SAML runtime endpoints includes a JSON body with upgrade information
-// referencing the advanced_sso feature.
-func TestSAMLRuntimeLicenseGatingResponseFormat(t *testing.T) {
+// TestSAMLRuntimeNoUpgradeResponse verifies SAML runtime endpoints do not emit
+// upgrade metadata when the provider is missing.
+func TestSAMLRuntimeNoUpgradeResponse(t *testing.T) {
tempDir := t.TempDir()
cfg := &config.Config{DataPath: tempDir, ConfigPath: tempDir}
router := NewRouter(cfg, nil, nil, nil, nil, "1.0.0")
@@ -62,20 +58,12 @@ func TestSAMLRuntimeLicenseGatingResponseFormat(t *testing.T) {
rec := httptest.NewRecorder()
handler.ServeHTTP(rec, req)
- if rec.Code != http.StatusPaymentRequired {
- t.Fatalf("expected 402, got %d", rec.Code)
- }
-
- ct := rec.Header().Get("Content-Type")
- if !strings.Contains(ct, "application/json") {
- t.Errorf("expected Content-Type to contain application/json, got %q", ct)
+ if rec.Code == http.StatusPaymentRequired {
+ t.Fatalf("expected non-402 for Community SSO, got %d: %s", rec.Code, rec.Body.String())
}
body := rec.Body.String()
- if !strings.Contains(body, "advanced_sso") {
- t.Errorf("expected 402 body to reference advanced_sso feature, got: %s", body)
- }
- if !strings.Contains(body, "upgrade_url") {
- t.Errorf("expected 402 body to contain upgrade_url, got: %s", body)
+ if strings.Contains(body, "upgrade_url") || strings.Contains(body, "advanced_sso") {
+ t.Errorf("SAML runtime returned old upgrade response body: %s", body)
}
}
diff --git a/internal/api/sso_admin_license_gating_test.go b/internal/api/sso_admin_license_gating_test.go
index 50768dd480..6b91b9b370 100644
--- a/internal/api/sso_admin_license_gating_test.go
+++ b/internal/api/sso_admin_license_gating_test.go
@@ -20,30 +20,28 @@ func ssoTestIP() string {
return fmt.Sprintf("10.99.%d.%d:12345", (n>>8)&0xFF, n&0xFF)
}
-// TestSAMLAdminEndpointsRequireAdvancedSSOLicense verifies that the SSO admin
-// endpoints return 402 Payment Required when a user attempts SAML operations
-// without a Pro license. OIDC SSO is free-tier, but SAML is an advanced_sso
-// feature requiring Pro.
+// TestSAMLAdminEndpointsAllowedWithoutPaidLicense verifies that the SSO admin
+// endpoints do not return 402 Payment Required when a user attempts SAML
+// operations without a paid license. OIDC, SAML, and multi-provider SSO are
+// Community-tier SSO capabilities.
//
// The SSO admin routes are gated at the route level by featureSSOKey ("sso"),
-// which is free-tier and passes without a license. The inner handlers
-// additionally check featureAdvancedSSOKey ("advanced_sso") when the request
-// involves SAML. This test verifies those defense-in-depth checks:
+// which is included on the default self-hosted Community tier.
//
-// - handleCreateSSOProvider (POST /api/security/sso/providers) — line 247
-// - handleUpdateSSOProvider (PUT /api/security/sso/providers/{id}) — line 373
-// - handleTestSSOProvider (POST /api/security/sso/providers/test) — line 694
-// - handleMetadataPreview (POST /api/security/sso/providers/metadata/preview) — line 1002
-func TestSAMLAdminEndpointsRequireAdvancedSSOLicense(t *testing.T) {
+// - handleCreateSSOProvider (POST /api/security/sso/providers)
+// - handleUpdateSSOProvider (PUT /api/security/sso/providers/{id})
+// - handleTestSSOProvider (POST /api/security/sso/providers/test)
+// - handleMetadataPreview (POST /api/security/sso/providers/metadata/preview)
+func TestSAMLAdminEndpointsAllowedWithoutPaidLicense(t *testing.T) {
rawToken := "sso-admin-license-test-token.12345678"
record := newTokenRecord(t, rawToken, []string{config.ScopeSettingsRead, config.ScopeSettingsWrite}, nil)
cfg := newTestConfigWithTokens(t, record)
router := NewRouter(cfg, nil, nil, nil, nil, "1.0.0")
handler := router.Handler()
- // Test 1: POST /api/security/sso/providers with type=saml → 402
+ // Test 1: POST /api/security/sso/providers with type=saml should create.
t.Run("CreateSAMLProvider", func(t *testing.T) {
- body := `{"name":"test-saml","type":"saml","saml":{"metadataUrl":"https://idp.example.com/metadata"}}`
+ body := `{"id":"test-saml-create","name":"test-saml","type":"saml","saml":{"idpMetadataUrl":"https://idp.example.com/metadata"}}`
req := httptest.NewRequest(http.MethodPost, "/api/security/sso/providers", strings.NewReader(body))
req.RemoteAddr = ssoTestIP()
req.Header.Set("X-API-Token", rawToken)
@@ -51,13 +49,12 @@ func TestSAMLAdminEndpointsRequireAdvancedSSOLicense(t *testing.T) {
rec := httptest.NewRecorder()
handler.ServeHTTP(rec, req)
- if rec.Code != http.StatusPaymentRequired {
- t.Errorf("POST /api/security/sso/providers (saml): expected 402, got %d (body: %s)", rec.Code, rec.Body.String())
+ if rec.Code != http.StatusCreated {
+ t.Errorf("POST /api/security/sso/providers (saml): expected 201, got %d (body: %s)", rec.Code, rec.Body.String())
}
- assertAdvancedSSOResponse(t, rec)
})
- // Test 2: PUT /api/security/sso/providers/{id} with type=saml → 402
+ // Test 2: PUT /api/security/sso/providers/{id} with type=saml should update.
// First create an OIDC provider (OIDC is free-tier), then try to update it to SAML.
t.Run("UpdateToSAMLProvider", func(t *testing.T) {
// Create an OIDC provider first
@@ -73,8 +70,8 @@ func TestSAMLAdminEndpointsRequireAdvancedSSOLicense(t *testing.T) {
t.Fatalf("setup: failed to create OIDC provider, got %d (body: %s)", createRec.Code, createRec.Body.String())
}
- // Now try to update it to SAML type
- updateBody := `{"name":"test-saml-updated","type":"saml","saml":{"metadataUrl":"https://idp.example.com/metadata"}}`
+ // Now update it to SAML type.
+ updateBody := `{"name":"test-saml-updated","type":"saml","saml":{"idpMetadataUrl":"https://idp.example.com/metadata"}}`
req := httptest.NewRequest(http.MethodPut, "/api/security/sso/providers/test-oidc-for-update", strings.NewReader(updateBody))
req.RemoteAddr = ssoTestIP()
req.Header.Set("X-API-Token", rawToken)
@@ -82,15 +79,14 @@ func TestSAMLAdminEndpointsRequireAdvancedSSOLicense(t *testing.T) {
rec := httptest.NewRecorder()
handler.ServeHTTP(rec, req)
- if rec.Code != http.StatusPaymentRequired {
- t.Errorf("PUT /api/security/sso/providers/{id} (saml): expected 402, got %d (body: %s)", rec.Code, rec.Body.String())
+ if rec.Code != http.StatusOK {
+ t.Errorf("PUT /api/security/sso/providers/{id} (saml): expected 200, got %d (body: %s)", rec.Code, rec.Body.String())
}
- assertAdvancedSSOResponse(t, rec)
})
- // Test 3: POST /api/security/sso/providers/test with type=saml → 402
+ // Test 3: POST /api/security/sso/providers/test with type=saml should reach validation.
t.Run("TestSAMLConnection", func(t *testing.T) {
- body := `{"type":"saml","saml":{"metadataUrl":"https://idp.example.com/metadata"}}`
+ body := `{"type":"saml","saml":{"idpMetadataUrl":"https://idp.example.com/metadata"}}`
req := httptest.NewRequest(http.MethodPost, "/api/security/sso/providers/test", strings.NewReader(body))
req.RemoteAddr = ssoTestIP()
req.Header.Set("X-API-Token", rawToken)
@@ -98,13 +94,12 @@ func TestSAMLAdminEndpointsRequireAdvancedSSOLicense(t *testing.T) {
rec := httptest.NewRecorder()
handler.ServeHTTP(rec, req)
- if rec.Code != http.StatusPaymentRequired {
- t.Errorf("POST /api/security/sso/providers/test (saml): expected 402, got %d (body: %s)", rec.Code, rec.Body.String())
+ if rec.Code == http.StatusPaymentRequired {
+ t.Errorf("POST /api/security/sso/providers/test (saml): should not get 402 for SAML, got body: %s", rec.Body.String())
}
- assertAdvancedSSOResponse(t, rec)
})
- // Test 4: POST /api/security/sso/providers/metadata/preview with type=saml → 402
+ // Test 4: POST /api/security/sso/providers/metadata/preview with type=saml should reach validation.
t.Run("PreviewSAMLMetadata", func(t *testing.T) {
body := `{"type":"saml","metadataUrl":"https://idp.example.com/metadata"}`
req := httptest.NewRequest(http.MethodPost, "/api/security/sso/providers/metadata/preview", strings.NewReader(body))
@@ -114,16 +109,15 @@ func TestSAMLAdminEndpointsRequireAdvancedSSOLicense(t *testing.T) {
rec := httptest.NewRecorder()
handler.ServeHTTP(rec, req)
- if rec.Code != http.StatusPaymentRequired {
- t.Errorf("POST /api/security/sso/providers/metadata/preview (saml): expected 402, got %d (body: %s)", rec.Code, rec.Body.String())
+ if rec.Code == http.StatusPaymentRequired {
+ t.Errorf("POST /api/security/sso/providers/metadata/preview (saml): should not get 402 for SAML, got body: %s", rec.Body.String())
}
- assertAdvancedSSOResponse(t, rec)
})
}
// TestOIDCAdminEndpointsAllowedWithoutProLicense verifies that OIDC operations
// through the same SSO admin endpoints succeed without a Pro license. OIDC is
-// free-tier and should NOT be blocked by the advanced_sso gate.
+// part of the same Community SSO contract as SAML.
func TestOIDCAdminEndpointsAllowedWithoutProLicense(t *testing.T) {
rawToken := "sso-admin-oidc-test-token.12345678"
record := newTokenRecord(t, rawToken, []string{config.ScopeSettingsRead, config.ScopeSettingsWrite}, nil)
@@ -159,17 +153,16 @@ func TestOIDCAdminEndpointsAllowedWithoutProLicense(t *testing.T) {
}
}
-// TestSAMLAdminLicenseGatingResponseFormat verifies that the 402 response from
-// SAML admin endpoints includes a JSON body with the advanced_sso feature key
-// and an upgrade URL, matching the canonical WriteLicenseRequired format.
-func TestSAMLAdminLicenseGatingResponseFormat(t *testing.T) {
+// TestSAMLAdminCreateDoesNotEmitUpgradeResponse verifies SAML creation does not
+// produce the old upgrade response shape.
+func TestSAMLAdminCreateDoesNotEmitUpgradeResponse(t *testing.T) {
rawToken := "sso-admin-format-test-token.12345678"
record := newTokenRecord(t, rawToken, []string{config.ScopeSettingsRead, config.ScopeSettingsWrite}, nil)
cfg := newTestConfigWithTokens(t, record)
router := NewRouter(cfg, nil, nil, nil, nil, "1.0.0")
handler := router.Handler()
- body := `{"name":"format-test","type":"saml","saml":{"metadataUrl":"https://idp.example.com/metadata"}}`
+ body := `{"id":"format-test","name":"format-test","type":"saml","saml":{"idpMetadataUrl":"https://idp.example.com/metadata"}}`
req := httptest.NewRequest(http.MethodPost, "/api/security/sso/providers", strings.NewReader(body))
req.RemoteAddr = ssoTestIP()
req.Header.Set("X-API-Token", rawToken)
@@ -177,8 +170,8 @@ func TestSAMLAdminLicenseGatingResponseFormat(t *testing.T) {
rec := httptest.NewRecorder()
handler.ServeHTTP(rec, req)
- if rec.Code != http.StatusPaymentRequired {
- t.Fatalf("expected 402, got %d", rec.Code)
+ if rec.Code != http.StatusCreated {
+ t.Fatalf("expected 201, got %d: %s", rec.Code, rec.Body.String())
}
ct := rec.Header().Get("Content-Type")
@@ -187,26 +180,7 @@ func TestSAMLAdminLicenseGatingResponseFormat(t *testing.T) {
}
respBody := rec.Body.String()
- if !strings.Contains(respBody, "advanced_sso") {
- t.Errorf("expected body to reference advanced_sso feature, got: %s", respBody)
- }
- if !strings.Contains(respBody, "upgrade_url") {
- t.Errorf("expected body to contain upgrade_url, got: %s", respBody)
- }
- if !strings.Contains(respBody, "SAML SSO requires a Pro license") {
- t.Errorf("expected body to contain SAML-specific message, got: %s", respBody)
- }
-}
-
-// assertAdvancedSSOResponse checks that a 402 response references the
-// advanced_sso feature in its body.
-func assertAdvancedSSOResponse(t *testing.T, rec *httptest.ResponseRecorder) {
- t.Helper()
- if rec.Code != http.StatusPaymentRequired {
- return // Primary status check already logged by caller
- }
- body := rec.Body.String()
- if !strings.Contains(body, "advanced_sso") {
- t.Errorf("402 body should reference advanced_sso feature, got: %s", body)
+ if strings.Contains(respBody, "upgrade_url") {
+ t.Errorf("SAML create returned old upgrade response shape: %s", respBody)
}
}
diff --git a/pkg/licensing/features.go b/pkg/licensing/features.go
index 06c2ab980d..2905fbeda0 100644
--- a/pkg/licensing/features.go
+++ b/pkg/licensing/features.go
@@ -15,7 +15,8 @@ import (
const (
// Free tier features
FeatureUpdateAlerts = "update_alerts" // Alerts for pending container/package updates
- FeatureSSO = "sso" // Basic OIDC/SSO authentication
+ FeatureSSO = "sso" // Core OIDC/SAML SSO authentication
+ FeatureAdvancedSSO = "advanced_sso" // Compatibility key for SAML and multi-provider SSO; included in Community
FeatureAIPatrol = "ai_patrol" // Background AI health monitoring (BYOK, free with own key)
// Relay tier features (everything in Free, plus:)
@@ -31,7 +32,6 @@ const (
FeatureAgentProfiles = "agent_profiles" // Centralized agent configuration profiles
FeatureRBAC = "rbac" // Role-Based Access Control
FeatureAuditLogging = "audit_logging" // Persistent audit logs with signing
- FeatureAdvancedSSO = "advanced_sso" // SAML, Multi-provider, Role Mapping
FeatureAdvancedReporting = "advanced_reporting" // PDF/CSV reporting engine
// MSP/Enterprise tier features
@@ -274,6 +274,7 @@ var TierHistoryDays = map[Tier]int{
var freeFeatures = []string{
FeatureUpdateAlerts,
FeatureSSO,
+ FeatureAdvancedSSO,
FeatureAIPatrol, // Patrol is free with BYOK; remediation workflows require Pro.
}
@@ -291,7 +292,6 @@ var proFeatures = appendFeatures(relayFeatures,
FeatureAIAutoFix,
FeatureKubernetesAI,
FeatureAgentProfiles,
- FeatureAdvancedSSO,
FeatureRBAC,
FeatureAuditLogging,
FeatureAdvancedReporting,
diff --git a/pkg/licensing/features_test.go b/pkg/licensing/features_test.go
index db32a96392..1bd811cb86 100644
--- a/pkg/licensing/features_test.go
+++ b/pkg/licensing/features_test.go
@@ -20,7 +20,7 @@ func TestDeriveCapabilitiesFromTier(t *testing.T) {
tier: TierFree,
explicitFeatures: nil,
wantLen: len(freeFeatures),
- wantContains: []string{FeatureUpdateAlerts, FeatureSSO, FeatureAIPatrol},
+ wantContains: []string{FeatureUpdateAlerts, FeatureSSO, FeatureAdvancedSSO, FeatureAIPatrol},
wantNotContains: []string{FeatureRelay, FeatureAIAutoFix, FeatureLongTermMetrics},
},
{
@@ -144,6 +144,7 @@ func TestSelfHostedPaidFeatureClaimMatrix(t *testing.T) {
wantIncludedCapabilities: []string{
FeatureUpdateAlerts,
FeatureSSO,
+ FeatureAdvancedSSO,
FeatureAIPatrol,
},
wantExcludedCapabilities: []string{
@@ -165,6 +166,7 @@ func TestSelfHostedPaidFeatureClaimMatrix(t *testing.T) {
wantIncludedCapabilities: []string{
FeatureUpdateAlerts,
FeatureSSO,
+ FeatureAdvancedSSO,
FeatureAIPatrol,
FeatureRelay,
FeatureMobileApp,
@@ -288,6 +290,7 @@ func TestTierHasFeature(t *testing.T) {
{TierFree, FeatureAIAutoFix, false},
{TierFree, FeatureRelay, false},
{TierFree, FeatureUpdateAlerts, true},
+ {TierFree, FeatureAdvancedSSO, true},
{TierFree, FeatureAIPatrol, true},
{TierRelay, FeatureRelay, true},
{TierRelay, FeatureMobileApp, true},
@@ -357,8 +360,8 @@ func TestGetFeatureDisplayName(t *testing.T) {
{FeatureUnlimited, "Hosted Capacity Policy"},
{FeatureAgentProfiles, "Centralized Agent Profiles"},
{FeatureAuditLogging, "Audit Logging"},
- {FeatureSSO, "Basic SSO (OIDC)"},
- {FeatureAdvancedSSO, "Advanced SSO (SAML/Multi-Provider)"},
+ {FeatureSSO, "Core SSO (OIDC/SAML)"},
+ {FeatureAdvancedSSO, "Multi-Provider SSO"},
{FeatureRelay, "Pulse Relay (Remote Access)"},
{FeatureMobileApp, "Pulse Mobile Pairing"},
{FeaturePushNotifications, "Push Notifications"},
diff --git a/pkg/licensing/self_hosted_feature_catalog.go b/pkg/licensing/self_hosted_feature_catalog.go
index 1c25951f90..4993ab7bf8 100644
--- a/pkg/licensing/self_hosted_feature_catalog.go
+++ b/pkg/licensing/self_hosted_feature_catalog.go
@@ -67,8 +67,8 @@ var featureMetadataCatalog = map[string]FeatureMetadata{
},
FeatureSSO: {
Key: FeatureSSO,
- DisplayName: "Basic SSO (OIDC)",
- ComparisonName: "Basic SSO (OIDC)",
+ DisplayName: "Core SSO (OIDC/SAML)",
+ ComparisonName: "Core SSO (OIDC/SAML)",
ShowInComparisonTable: true,
DisplayableInPlanUI: true,
SelfHostedRoles: SelfHostedFeatureRoles{
@@ -229,17 +229,15 @@ var featureMetadataCatalog = map[string]FeatureMetadata{
},
FeatureAdvancedSSO: {
Key: FeatureAdvancedSSO,
- DisplayName: "Advanced SSO (SAML/Multi-Provider)",
- ComparisonName: "Advanced SSO (SAML/Multi-Provider)",
- ShowInComparisonTable: true,
- DisplayableInPlanUI: true,
+ DisplayName: "Multi-Provider SSO",
+ ComparisonName: "Multi-Provider SSO",
+ ShowInComparisonTable: false,
+ DisplayableInPlanUI: false,
SelfHostedRoles: SelfHostedFeatureRoles{
- Community: SelfHostedFeatureRoleHidden,
- Relay: SelfHostedFeatureRoleHidden,
- Pro: SelfHostedFeatureRoleIncludedExtra,
+ Community: SelfHostedFeatureRoleIncluded,
+ Relay: SelfHostedFeatureRoleIncluded,
+ Pro: SelfHostedFeatureRoleIncluded,
},
- UpgradeReason: "Upgrade to Pro to connect your identity provider and keep operator access aligned with your existing auth controls.",
- UpgradePriority: 7,
},
FeatureAdvancedReporting: {
Key: FeatureAdvancedReporting,
diff --git a/pkg/licensing/upgrade.go b/pkg/licensing/upgrade.go
index 663a711270..48dd461bf8 100644
--- a/pkg/licensing/upgrade.go
+++ b/pkg/licensing/upgrade.go
@@ -94,8 +94,6 @@ func UpgradeURLForFeature(feature string) string {
return DefaultUpgradeURL + "&feature=rbac"
case FeatureAgentProfiles:
return DefaultUpgradeURL + "&feature=agent_profiles"
- case FeatureAdvancedSSO:
- return DefaultUpgradeURL + "&feature=advanced_sso"
case FeatureAuditLogging:
return DefaultUpgradeURL + "&feature=audit_logging"
case FeatureAdvancedReporting:
diff --git a/pkg/licensing/upgrade_test.go b/pkg/licensing/upgrade_test.go
index db5d241ec6..23e2757334 100644
--- a/pkg/licensing/upgrade_test.go
+++ b/pkg/licensing/upgrade_test.go
@@ -147,7 +147,6 @@ func TestUpgradeReasonMatrixDerivesFromCanonicalFeatureMetadata(t *testing.T) {
FeatureAIAlerts,
FeatureRBAC,
FeatureAgentProfiles,
- FeatureAdvancedSSO,
FeatureAuditLogging,
FeatureAdvancedReporting,
}
diff --git a/tests/integration/evals/tasks/saml-sso.md b/tests/integration/evals/tasks/saml-sso.md
index a3b193ed2f..c2a26551a1 100644
--- a/tests/integration/evals/tasks/saml-sso.md
+++ b/tests/integration/evals/tasks/saml-sso.md
@@ -8,7 +8,7 @@ test-connection validation, enable/disable toggling, and cleanup via delete.
## Steps
1. Log in as admin.
-2. GET `/api/security/sso/providers` — verify the endpoint responds (200 or 402).
+2. GET `/api/security/sso/providers` — verify the endpoint responds with 200.
3. POST `/api/security/sso/providers` — create a SAML provider with stub IdP metadata.
4. GET `/api/security/sso/providers` — verify the new provider appears.
5. GET `/api/saml/{providerID}/metadata` — verify SP metadata XML is returned.
@@ -19,9 +19,8 @@ test-connection validation, enable/disable toggling, and cleanup via delete.
10. DELETE `/api/security/sso/providers/{id}` — delete and verify removal.
## Expected Outcomes
-- Provider CRUD works end-to-end when `advanced_sso` is licensed.
-- 402 paywall response is correct when not licensed.
-- SSO settings page renders SSO-related content or upgrade messaging.
+- Provider CRUD works end-to-end on the Community SSO capability.
+- SSO settings page renders SSO-related content.
## Environment Variables
- `PULSE_E2E_SAML_IDP_METADATA_URL` — optional live IdP metadata URL.
diff --git a/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts b/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts
index 0e67995e9a..05b8da5cdb 100644
--- a/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts
+++ b/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts
@@ -147,9 +147,6 @@ test.describe('Self-hosted plans entitlement summary', () => {
await expect(
currentPlanCard.getByText('Alert Root-Cause Analysis', { exact: true }),
).toBeVisible();
- await expect(
- currentPlanCard.getByText('Advanced SSO (SAML/Multi-Provider)', { exact: true }),
- ).toBeVisible();
await expect(currentPlanCard.getByText('PDF/CSV Reporting', { exact: true })).toBeVisible();
await expect(
currentPlanCard.getByText('Centralized Agent Profiles', { exact: true }),
diff --git a/tests/integration/tests/journeys/05-saml-sso-login.spec.ts b/tests/integration/tests/journeys/05-saml-sso-login.spec.ts
index f1ba8b4113..45167b89cb 100644
--- a/tests/integration/tests/journeys/05-saml-sso-login.spec.ts
+++ b/tests/integration/tests/journeys/05-saml-sso-login.spec.ts
@@ -26,8 +26,6 @@ import {
*
* When no live IdP is available, the journey validates the full CRUD
* lifecycle using inline metadata XML and verifies the SSO admin UI.
- * When `advanced_sso` is not licensed, the journey validates that 402
- * paywall responses are correct.
*/
const IDP_METADATA_URL = process.env.PULSE_E2E_SAML_IDP_METADATA_URL || '';
@@ -50,8 +48,8 @@ const PROVIDER_NAME = `e2e-saml-${Date.now()}`;
/** Provider ID populated after creation (for cleanup). */
let providerId = '';
-/** Whether the `advanced_sso` feature is licensed. */
-let samlLicensed = true;
+/** Whether the SAML provider surface is available in the current runtime. */
+let samlAvailable = true;
test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', () => {
test.afterAll(async ({ browser }) => {
@@ -79,11 +77,9 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
const res = await apiRequest(page, '/api/security/sso/providers');
if (res.status() === 402) {
- // SSO feature is not licensed — record for downstream tests.
- // The `sso` base feature is free-tier, so 402 here is unexpected
- // but we handle it gracefully.
- samlLicensed = false;
- // Validate the 402 paywall response format.
+ // The `sso` feature is Community-tier, so 402 here is unexpected but
+ // we handle it gracefully for runtimes with custom feature overrides.
+ samlAvailable = false;
const body = await res.json();
expect(body).toHaveProperty('error');
expect(body).toHaveProperty('feature');
@@ -97,7 +93,7 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
test('create SAML SSO provider', async ({ page }, testInfo) => {
test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop SSO journey');
- test.skip(!samlLicensed, 'SSO not licensed');
+ test.skip(!samlAvailable, 'SAML unavailable');
await ensureAuthenticated(page);
@@ -118,11 +114,10 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
});
if (res.status() === 402) {
- // `advanced_sso` is not licensed — SAML create requires Pro.
- samlLicensed = false;
+ samlAvailable = false;
const body = await res.json();
expect(body).toHaveProperty('feature');
- expect(body.feature).toBe('advanced_sso');
+ expect(body.feature).toBe('sso');
return;
}
@@ -138,7 +133,7 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
test('provider appears in SSO provider list', async ({ page }, testInfo) => {
test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop SSO journey');
- test.skip(!samlLicensed, 'SAML not licensed');
+ test.skip(!samlAvailable, 'SAML unavailable');
test.skip(!providerId, 'Provider was not created');
await ensureAuthenticated(page);
@@ -158,14 +153,14 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
test('SP metadata endpoint returns XML', async ({ page }, testInfo) => {
test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop SSO journey');
- test.skip(!samlLicensed, 'SAML not licensed');
+ test.skip(!samlAvailable, 'SAML unavailable');
test.skip(!providerId, 'Provider was not created');
// The SP metadata endpoint is unauthenticated (IdPs need to fetch it).
const res = await page.request.get(`/api/saml/${providerId}/metadata`);
if (res.status() === 402) {
- // advanced_sso gate on the SAML runtime route.
+ samlAvailable = false;
return;
}
@@ -187,7 +182,7 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
test('test-connection validates provider metadata', async ({ page }, testInfo) => {
test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop SSO journey');
- test.skip(!samlLicensed, 'SAML not licensed');
+ test.skip(!samlAvailable, 'SAML unavailable');
await ensureAuthenticated(page);
@@ -205,7 +200,7 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
});
if (res.status() === 402) {
- samlLicensed = false;
+ samlAvailable = false;
return;
}
@@ -230,21 +225,21 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
await expect(page.locator('#root')).toBeVisible();
// The SSO panel main content area should render a heading or add button
- // (when licensed) or an upgrade link (when not licensed). Target the main
- // content area to avoid matching sidebar navigation text.
+ // content area. Target the main content area to avoid matching sidebar
+ // navigation text.
const ssoContent = page.locator(
- 'main h1:has-text("SSO"), main h2:has-text("SSO"), main h1:has-text("Sign-On"), main h2:has-text("Sign-On"), main a:has-text("Upgrade"), main button:has-text("Add Provider")',
+ 'main h1:has-text("SSO"), main h2:has-text("SSO"), main h1:has-text("Sign-On"), main h2:has-text("Sign-On"), main button:has-text("Add SAML"), main button:has-text("Add OIDC")',
).first();
await expect(
ssoContent,
- 'SSO settings page should render SSO content or upgrade link in main area',
+ 'SSO settings page should render SSO content in main area',
).toBeVisible({ timeout: 15_000 });
});
test('provider can be disabled and re-enabled', async ({ page }, testInfo) => {
test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop SSO journey');
- test.skip(!samlLicensed, 'SAML not licensed');
+ test.skip(!samlAvailable, 'SAML unavailable');
test.skip(!providerId, 'Provider was not created');
await ensureAuthenticated(page);
@@ -305,7 +300,7 @@ test.describe.serial('Journey: SAML SSO → IdP Login → Role-Mapped Access', (
test('provider can be deleted and is removed', async ({ page }, testInfo) => {
test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop SSO journey');
- test.skip(!samlLicensed, 'SAML not licensed');
+ test.skip(!samlAvailable, 'SAML unavailable');
test.skip(!providerId, 'Provider was not created');
await ensureAuthenticated(page);