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.

fix(release): restore verifiable MSP evaluation delivery

rcourtmanfbee92614a1a
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index 98ffd8f827..5eaddc08f9 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -1700,6 +1700,7 @@ jobs:
for asset_name in \
checksums.txt \
install.sh \
+ "pulse-provider-msp-${TAG}.tar.gz" \
"pulse-${TAG}-linux-amd64.tar.gz"; do
curl -fsSL --retry 12 --retry-delay 5 --retry-all-errors \
-o /dev/null "${base}/${asset_name}"
diff --git a/deploy/provider-msp/setup.sh b/deploy/provider-msp/setup.sh
index 9ea8edf59a..0ec8483ce4 100755
--- a/deploy/provider-msp/setup.sh
+++ b/deploy/provider-msp/setup.sh
@@ -305,16 +305,17 @@ resolve_image_digest() {
printf '%s@%s\n' "${ref%:*}" "${digest}"
}
-# ensure_image_pins fills in any image variable the operator left blank or on
-# the shipped <pin> placeholder.
+# ensure_image_pins resolves every tag-based image reference to an immutable
+# digest. Operators may provide an exact release tag or a digest directly;
+# blank and legacy <pin> values use the bundle defaults.
#
# The bundle used to ship four unfillable "@sha256:<pin>" placeholders that
# setup.sh then refused to run without, so the only way to obtain them was to
# ask us. All four images are publicly readable, so there was never anything
# to hand out; it just meant nobody could start without a conversation first.
#
-# Still resolved to an immutable digest, not left on a floating tag, so a
-# rebuild of the tag cannot silently change what a provider is running.
+# Still resolved to an immutable digest, not left on a tag, so a later tag
+# mutation cannot silently change what a provider is running.
ensure_image_pins() {
local env_path="${PULSE_PROVIDER_MSP_INSTALL_DIR}/.env"
[[ -f "${env_path}" ]] || die "missing ${env_path}"
@@ -322,10 +323,14 @@ ensure_image_pins() {
local key current ref resolved
for key in TRAEFIK_IMAGE DOCKER_SOCKET_PROXY_IMAGE CONTROL_PLANE_IMAGE CP_PULSE_IMAGE; do
current="$(env_value "${key}" "${env_path}")"
- if [[ -n "${current}" && "${current}" != *"<pin>"* ]]; then
+ if [[ "${current}" == *@sha256:* && "${current}" != *"<pin>"* ]]; then
continue
fi
- ref="$(default_image_ref "${key}")" || die "no default image ref for ${key}"
+ if [[ -n "${current}" && "${current}" != *"<pin>"* ]]; then
+ ref="${current}"
+ else
+ ref="$(default_image_ref "${key}")" || die "no default image ref for ${key}"
+ fi
log "resolving ${key} digest from ${ref}"
if ! resolved="$(resolve_image_digest "${ref}")"; then
die "could not resolve a digest for ${ref}
diff --git a/docs/MSP.md b/docs/MSP.md
index a038160929..6b88e5f4a7 100644
--- a/docs/MSP.md
+++ b/docs/MSP.md
@@ -263,29 +263,53 @@ contact support to get set up or to join the MSP design-partner program.
### Evaluating without a licence
-To start, fetch the bundle and run the guided setup on the host that will run
-the stack. Until the evaluation flow reaches a stable release, take the bundle
-from `main` — the `setup.sh` in the v6.1.2 tarball predates it and still stops
-to ask for a licence:
+Self-service evaluation is available only from an exact release page that
+includes the evaluation-capable provider MSP bundle and both integrity
+sidecars described below. If the release you intend to use does not list all
+three assets, stop: evaluation onboarding for that release remains
+request-assisted. Do **not** download the moving `main` branch archive or run
+its `setup.sh` as root; contact support or join the MSP design-partner program
+instead.
+
+Once an exact release publishes
+`pulse-provider-msp-vX.Y.Z.tar.gz`, download that versioned asset and its
+integrity sidecars, verify the archive with Pulse's pinned release key, and
+only then extract and run the guided setup:
```bash
-curl -L https://github.com/rcourtman/Pulse/archive/refs/heads/main.tar.gz | tar xz
-cd Pulse-main/deploy/provider-msp
-sudo -E ./setup.sh
+export PULSE_VERSION=vX.Y.Z
+export PULSE_MSP_BUNDLE="pulse-provider-msp-${PULSE_VERSION}.tar.gz"
+export PULSE_RELEASE_BASE="https://github.com/rcourtman/Pulse/releases/download/${PULSE_VERSION}"
+
+curl -fsSLO "${PULSE_RELEASE_BASE}/${PULSE_MSP_BUNDLE}"
+curl -fsSLO "${PULSE_RELEASE_BASE}/${PULSE_MSP_BUNDLE}.sha256"
+curl -fsSLO "${PULSE_RELEASE_BASE}/${PULSE_MSP_BUNDLE}.sshsig"
+
+ssh-keygen -Y verify \
+ -f <(printf '%s\n' 'pulse-installer namespaces="pulse-install" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZd/DaH+BldzOkq1A8KVTcFk73nAyrE8aJOyf7i00jm pulse-installer') \
+ -I pulse-installer \
+ -n pulse-install \
+ -s "${PULSE_MSP_BUNDLE}.sshsig" < "${PULSE_MSP_BUNDLE}"
+sha256sum -c "${PULSE_MSP_BUNDLE}.sha256"
+
+tar -xzf "${PULSE_MSP_BUNDLE}"
+cd "pulse-provider-msp-${PULSE_VERSION}"
+sudo -E bash ./setup.sh
```
The host needs Ubuntu 24.04 or similar, a domain you can point at it, and
-ports 80 and 443 free. The wildcard certificate is issued over DNS-01 with
-Cloudflare as the default provider (`CF_DNS_API_TOKEN`); any other Traefik
-dnsChallenge provider works by setting `ACME_DNS_PROVIDER` in `.env` and
-putting that provider's credential variables in `dns-credentials.env`.
-
-Leave `CP_PROVIDER_MSP_LICENSE_FILE` blank and `setup.sh` self-issues a
-2-client evaluation licence for you. It sends only the public half of the
-signing key it generated on your host, exactly as the paid path does, and the
-private key never leaves the machine. Nothing to request and nobody to wait
-for. Stand the stack up, onboard two real clients, and confirm the isolation
-boundary holds on your own infrastructure before you spend anything.
+ports 80 and 443 free. Install `curl`, `openssh-client`, `coreutils`, and `tar`
+before the verification step. The wildcard certificate is issued over DNS-01
+with Cloudflare as the default provider (`CF_DNS_API_TOKEN`); any other
+Traefik dnsChallenge provider works by setting `ACME_DNS_PROVIDER` in `.env`
+and putting that provider's credential variables in `dns-credentials.env`.
+
+In a published evaluation-capable bundle, leave
+`CP_PROVIDER_MSP_LICENSE_FILE` blank and `setup.sh` self-issues a 2-client
+evaluation licence. It sends only the public half of the signing key generated
+on your host, exactly as the paid path does, and the private key never leaves
+the machine. You can then onboard two real clients and confirm the isolation
+boundary on your own infrastructure before buying.
The evaluation licence lasts 60 days and re-running `setup.sh` reuses the one
already on disk. On an air-gapped host set
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 362e9da399..4d748c7c4f 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -64,10 +64,12 @@ TLS floor in the dynamic config.
23. `.github/ISSUE_TEMPLATE/v6_rc_feedback.yml`
23. `docs/RELEASE_NOTES.md`
24. `docs/releases/`
-25. `docs/UPGRADE_v6.md`
-26. `docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md`
-27. `docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md`
-28. `docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md`
+25. `docs/MSP.md`
+26. `frontend-modern/public/docs/MSP.md`
+27. `docs/UPGRADE_v6.md`
+28. `docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md`
+29. `docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md`
+30. `docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md`
29. `package.json`
30. `package-lock.json`
31. `frontend-modern/package.json`
@@ -515,6 +517,16 @@ upgrade, update, release, or artifact-selection behavior.
`install.sh.sshsig` for the published release; this is enforced by
`scripts/validate-release.sh` at build time and re-verified by
`install-sh-smoke.yml` against the served asset.
+ Provider MSP evaluation installation must use a dedicated
+ `pulse-provider-msp-v<version>.tar.gz` release asset, never a source-branch
+ archive. The asset must contain the complete `deploy/provider-msp/` bundle,
+ stamp the control-plane and tenant Pulse images to the same exact release
+ tag before `setup.sh` resolves them to registry digests, and participate in
+ the normal immutable candidate manifest, checksum, detached-signature,
+ release upload, and activation-read checks. Until such an asset is actually
+ published, `docs/MSP.md` and its shipped frontend copy must fail closed and
+ describe evaluation onboarding as request-assisted rather than directing
+ operators to execute mutable source as root.
3. Add or change root server installer, shell installer, Docker bootstrap installer, Windows installer, container-agent installer, repo-root compose defaults, or auto-update script behavior through `install.sh`, `scripts/install.sh`, `scripts/install-docker.sh`, `scripts/install.ps1`, `scripts/install-container-agent.sh`, `docker-compose.yml`, and `scripts/pulse-auto-update.sh`
Canonical server deployment paths also stamp the privacy-bounded outbound
telemetry deployment label without changing runtime behavior: the image
@@ -1223,9 +1235,23 @@ upgrade, update, release, or artifact-selection behavior.
`docs/UPGRADE_v6.md` must state the continuity impact explicitly. Those docs
must not imply automatic updater continuity from a historical signer unless
the actual trust-migration path is already shipped and exercised.
+14. Keep `docs/MSP.md` and `frontend-modern/public/docs/MSP.md` byte-synchronized
+ and fail closed on provider MSP evaluation installation whenever a signed,
+ evaluation-capable exact-version release asset is not yet published. Any
+ future installation command must verify the dedicated archive with the
+ pinned release key before extraction or root execution.
## Current State
+Provider-hosted MSP evaluation source exists, but the active published release
+line does not yet contain a signed evaluation-capable deploy bundle. Public MSP
+guidance therefore fails closed instead of running the moving `main` archive.
+Future release candidates now assemble a dedicated versioned provider MSP
+bundle, stamp its Pulse image refs to the same exact tag, cover it with the
+canonical candidate manifest/checksum/signature path, and require the asset at
+the final publication barrier. The remaining dependency is publication of the
+first release built from this packaging path.
+
The shell installer's container-runtime discovery prefers a working rootful
Docker daemon over any rootless socket (#1647).
`discover_rootless_container_runtime` in `scripts/install.sh` first calls
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index 7291b403b1..527d5b4b43 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -4135,6 +4135,7 @@
"cmd/pulse-control-plane/provider_msp_status.go",
"docker-compose.yml",
"Dockerfile",
+ "docs/MSP.md",
"docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md",
"docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md",
"docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md",
@@ -4142,6 +4143,7 @@
"docs/UPGRADE_v6.md",
"frontend-modern/package-lock.json",
"frontend-modern/package.json",
+ "frontend-modern/public/docs/MSP.md",
"frontend-modern/src/api/updates.ts",
"frontend-modern/src/components/UpdateBanner.tsx",
"frontend-modern/src/components/WhatsNewCard.tsx",
@@ -4198,6 +4200,7 @@
"scripts/trigger-release-dry-run.sh",
"scripts/trigger-release.sh",
"scripts/trigger-stable-patch.sh",
+ "scripts/validate-release.sh",
"tests/integration/playwright.config.ts",
"tests/integration/QUICK_START.md",
"tests/integration/README.md",
@@ -4254,6 +4257,21 @@
"internal/api/updates_test.go"
]
},
+ {
+ "id": "provider-msp-delivery-docs",
+ "label": "provider MSP verifiable delivery documentation proof",
+ "match_prefixes": [],
+ "match_files": [
+ "docs/MSP.md",
+ "frontend-modern/public/docs/MSP.md"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "frontend-modern/src/utils/__tests__/docsLinks.test.ts",
+ "scripts/installtests/provider_msp_deploy_test.go"
+ ]
+ },
{
"id": "helm-chart-release-runtime",
"label": "Helm chart release packaging proof",
@@ -4351,7 +4369,8 @@
"scripts/backfill-release-assets.sh",
"scripts/build-release.sh",
"scripts/release_asset_common.sh",
- "scripts/release_ldflags.sh"
+ "scripts/release_ldflags.sh",
+ "scripts/validate-release.sh"
],
"allow_same_subsystem_tests": false,
"test_prefixes": [],
diff --git a/frontend-modern/public/docs/MSP.md b/frontend-modern/public/docs/MSP.md
index a038160929..6b88e5f4a7 100644
--- a/frontend-modern/public/docs/MSP.md
+++ b/frontend-modern/public/docs/MSP.md
@@ -263,29 +263,53 @@ contact support to get set up or to join the MSP design-partner program.
### Evaluating without a licence
-To start, fetch the bundle and run the guided setup on the host that will run
-the stack. Until the evaluation flow reaches a stable release, take the bundle
-from `main` — the `setup.sh` in the v6.1.2 tarball predates it and still stops
-to ask for a licence:
+Self-service evaluation is available only from an exact release page that
+includes the evaluation-capable provider MSP bundle and both integrity
+sidecars described below. If the release you intend to use does not list all
+three assets, stop: evaluation onboarding for that release remains
+request-assisted. Do **not** download the moving `main` branch archive or run
+its `setup.sh` as root; contact support or join the MSP design-partner program
+instead.
+
+Once an exact release publishes
+`pulse-provider-msp-vX.Y.Z.tar.gz`, download that versioned asset and its
+integrity sidecars, verify the archive with Pulse's pinned release key, and
+only then extract and run the guided setup:
```bash
-curl -L https://github.com/rcourtman/Pulse/archive/refs/heads/main.tar.gz | tar xz
-cd Pulse-main/deploy/provider-msp
-sudo -E ./setup.sh
+export PULSE_VERSION=vX.Y.Z
+export PULSE_MSP_BUNDLE="pulse-provider-msp-${PULSE_VERSION}.tar.gz"
+export PULSE_RELEASE_BASE="https://github.com/rcourtman/Pulse/releases/download/${PULSE_VERSION}"
+
+curl -fsSLO "${PULSE_RELEASE_BASE}/${PULSE_MSP_BUNDLE}"
+curl -fsSLO "${PULSE_RELEASE_BASE}/${PULSE_MSP_BUNDLE}.sha256"
+curl -fsSLO "${PULSE_RELEASE_BASE}/${PULSE_MSP_BUNDLE}.sshsig"
+
+ssh-keygen -Y verify \
+ -f <(printf '%s\n' 'pulse-installer namespaces="pulse-install" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZd/DaH+BldzOkq1A8KVTcFk73nAyrE8aJOyf7i00jm pulse-installer') \
+ -I pulse-installer \
+ -n pulse-install \
+ -s "${PULSE_MSP_BUNDLE}.sshsig" < "${PULSE_MSP_BUNDLE}"
+sha256sum -c "${PULSE_MSP_BUNDLE}.sha256"
+
+tar -xzf "${PULSE_MSP_BUNDLE}"
+cd "pulse-provider-msp-${PULSE_VERSION}"
+sudo -E bash ./setup.sh
```
The host needs Ubuntu 24.04 or similar, a domain you can point at it, and
-ports 80 and 443 free. The wildcard certificate is issued over DNS-01 with
-Cloudflare as the default provider (`CF_DNS_API_TOKEN`); any other Traefik
-dnsChallenge provider works by setting `ACME_DNS_PROVIDER` in `.env` and
-putting that provider's credential variables in `dns-credentials.env`.
-
-Leave `CP_PROVIDER_MSP_LICENSE_FILE` blank and `setup.sh` self-issues a
-2-client evaluation licence for you. It sends only the public half of the
-signing key it generated on your host, exactly as the paid path does, and the
-private key never leaves the machine. Nothing to request and nobody to wait
-for. Stand the stack up, onboard two real clients, and confirm the isolation
-boundary holds on your own infrastructure before you spend anything.
+ports 80 and 443 free. Install `curl`, `openssh-client`, `coreutils`, and `tar`
+before the verification step. The wildcard certificate is issued over DNS-01
+with Cloudflare as the default provider (`CF_DNS_API_TOKEN`); any other
+Traefik dnsChallenge provider works by setting `ACME_DNS_PROVIDER` in `.env`
+and putting that provider's credential variables in `dns-credentials.env`.
+
+In a published evaluation-capable bundle, leave
+`CP_PROVIDER_MSP_LICENSE_FILE` blank and `setup.sh` self-issues a 2-client
+evaluation licence. It sends only the public half of the signing key generated
+on your host, exactly as the paid path does, and the private key never leaves
+the machine. You can then onboard two real clients and confirm the isolation
+boundary on your own infrastructure before buying.
The evaluation licence lasts 60 days and re-running `setup.sh` reuses the one
already on disk. On an air-gapped host set
diff --git a/scripts/build-release.sh b/scripts/build-release.sh
index bb5cc0fa37..c25556377b 100755
--- a/scripts/build-release.sh
+++ b/scripts/build-release.sh
@@ -482,6 +482,22 @@ cp scripts/pulse-auto-update.sh "$RELEASE_DIR/"
cp scripts/install-mcp.sh "$RELEASE_DIR/install-mcp.sh"
[ -f scripts/install-mcp.ps1 ] && cp scripts/install-mcp.ps1 "$RELEASE_DIR/install-mcp.ps1"
+# Package the provider-hosted MSP deploy surface as its own versioned release
+# asset. The source-tree archive is not an installation channel: this bundle is
+# covered by the immutable candidate manifest, checksums, and detached release
+# signatures below. Its Pulse image refs are exact-version tags which setup.sh
+# resolves to immutable registry digests before Compose is allowed to run.
+provider_msp_bundle_root="pulse-provider-msp-v${VERSION}"
+provider_msp_bundle_dir="${BUILD_DIR}/${provider_msp_bundle_root}"
+provider_msp_bundle_asset="${RELEASE_DIR}/${provider_msp_bundle_root}.tar.gz"
+rm -rf "${provider_msp_bundle_dir}"
+mkdir -p "${provider_msp_bundle_dir}"
+cp -a deploy/provider-msp/. "${provider_msp_bundle_dir}/"
+sed -i "s|^CONTROL_PLANE_IMAGE=.*|CONTROL_PLANE_IMAGE=ghcr.io/rcourtman/pulse-control-plane:v${VERSION}|" "${provider_msp_bundle_dir}/.env.example"
+sed -i "s|^CP_PULSE_IMAGE=.*|CP_PULSE_IMAGE=ghcr.io/rcourtman/pulse:v${VERSION}|" "${provider_msp_bundle_dir}/.env.example"
+printf '%s\n' "${VERSION}" > "${provider_msp_bundle_dir}/VERSION"
+tar -czf "${provider_msp_bundle_asset}" -C "${BUILD_DIR}" "${provider_msp_bundle_root}"
+
pulse_release_generate_packet_sbom "${RELEASE_DIR}" "${RELEASE_PACKET_SBOM}"
mapfile -t checksum_files < <(pulse_release_collect_checksum_files "${RELEASE_DIR}")
pulse_release_write_checksums_and_signatures "${RELEASE_DIR}" "${checksum_files[@]}"
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index 0dff8a2d6f..e3f9dc1182 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -43,6 +43,11 @@ func TestBuildReleaseUsesV6InstallScripts(t *testing.T) {
`cp "$BUILD_DIR/pulse-agent-linux-armv7" "$RELEASE_DIR/"`,
`cp "$BUILD_DIR/pulse-agent-linux-armv6" "$RELEASE_DIR/"`,
`cp "$BUILD_DIR/pulse-agent-linux-386" "$RELEASE_DIR/"`,
+ `provider_msp_bundle_root="pulse-provider-msp-v${VERSION}"`,
+ `cp -a deploy/provider-msp/. "${provider_msp_bundle_dir}/"`,
+ `CONTROL_PLANE_IMAGE=ghcr.io/rcourtman/pulse-control-plane:v${VERSION}`,
+ `CP_PULSE_IMAGE=ghcr.io/rcourtman/pulse:v${VERSION}`,
+ `tar -czf "${provider_msp_bundle_asset}" -C "${BUILD_DIR}" "${provider_msp_bundle_root}"`,
}
for _, needle := range required {
if !strings.Contains(script, needle) {
@@ -108,6 +113,34 @@ func TestBuildReleaseUsesV6InstallScripts(t *testing.T) {
}
}
+func TestProviderMSPReleaseBundleIsRequiredAndValidated(t *testing.T) {
+ validateBytes, err := os.ReadFile(repoFile("scripts", "validate-release.sh"))
+ if err != nil {
+ t.Fatalf("read validate-release.sh: %v", err)
+ }
+ validate := string(validateBytes)
+ for _, needle := range []string{
+ `"pulse-provider-msp-v${PULSE_VERSION}.tar.gz"`,
+ `section "Validating provider MSP bundle"`,
+ `provider_msp_root="pulse-provider-msp-v${PULSE_VERSION}"`,
+ `CONTROL_PLANE_IMAGE=ghcr.io/rcourtman/pulse-control-plane:${PULSE_TAG}`,
+ `CP_PULSE_IMAGE=ghcr.io/rcourtman/pulse:${PULSE_TAG}`,
+ } {
+ if !strings.Contains(validate, needle) {
+ t.Fatalf("validate-release.sh missing provider MSP bundle guard: %s", needle)
+ }
+ }
+
+ workflowBytes, err := os.ReadFile(repoFile(".github", "workflows", "create-release.yml"))
+ if err != nil {
+ t.Fatalf("read create-release.yml: %v", err)
+ }
+ workflow := string(workflowBytes)
+ if !strings.Contains(workflow, `"pulse-provider-msp-${TAG}.tar.gz"`) {
+ t.Fatal("create-release.yml must read the exact provider MSP asset before customer activation")
+ }
+}
+
func TestHelmChartShipsOpenShiftProfile(t *testing.T) {
read := func(parts ...string) string {
t.Helper()
diff --git a/scripts/installtests/provider_msp_deploy_test.go b/scripts/installtests/provider_msp_deploy_test.go
index e91b034a8c..0b78d6c2fe 100644
--- a/scripts/installtests/provider_msp_deploy_test.go
+++ b/scripts/installtests/provider_msp_deploy_test.go
@@ -353,6 +353,8 @@ func TestProviderMSPSetupScriptSupportsUnlicensedEvaluation(t *testing.T) {
"default_image_ref",
"resolve_image_digest",
"buildx imagetools inspect",
+ `if [[ "${current}" == *@sha256:*`,
+ `ref="${current}"`,
// Self-issue, and the three ways it must degrade instead of blocking.
"ensure_eval_license",
"/v1/provider-msp/eval-license",
@@ -397,6 +399,38 @@ func TestProviderMSPSetupScriptSupportsUnlicensedEvaluation(t *testing.T) {
}
}
+func TestProviderMSPEvaluationDocsFailClosedUntilSignedBundlePublication(t *testing.T) {
+ repoDocBytes, err := os.ReadFile(repoFile("docs", "MSP.md"))
+ if err != nil {
+ t.Fatalf("read repo MSP guide: %v", err)
+ }
+ shippedDocBytes, err := os.ReadFile(repoFile("frontend-modern", "public", "docs", "MSP.md"))
+ if err != nil {
+ t.Fatalf("read shipped MSP guide: %v", err)
+ }
+ if string(repoDocBytes) != string(shippedDocBytes) {
+ t.Fatal("repo and shipped MSP guides must remain byte-synchronized")
+ }
+
+ doc := string(repoDocBytes)
+ assertContainsAll(t, doc,
+ "Self-service evaluation is available only from an exact release page",
+ "three assets, stop: evaluation onboarding for that release remains",
+ "request-assisted. Do **not** download the moving `main` branch archive",
+ `PULSE_MSP_BUNDLE="pulse-provider-msp-${PULSE_VERSION}.tar.gz"`,
+ `releases/download/${PULSE_VERSION}`,
+ "ssh-keygen -Y verify",
+ `-s "${PULSE_MSP_BUNDLE}.sshsig" < "${PULSE_MSP_BUNDLE}"`,
+ `sha256sum -c "${PULSE_MSP_BUNDLE}.sha256"`,
+ `sudo -E bash ./setup.sh`,
+ )
+ assertNotContainsAny(t, doc,
+ "Pulse/archive/refs/heads/main.tar.gz",
+ "cd Pulse-main/deploy/provider-msp",
+ "sudo -E ./setup.sh",
+ )
+}
+
// Traefik terminates TLS at the internet edge. Handing it the whole operator
// .env put CP_ADMIN_KEY and the entitlement signing private key one edge CVE
// away from disclosure, so the compose contract pins the minimal wiring: only
diff --git a/scripts/validate-release.sh b/scripts/validate-release.sh
index b5ff3b60cf..ba2ab35e48 100755
--- a/scripts/validate-release.sh
+++ b/scripts/validate-release.sh
@@ -457,6 +457,7 @@ required_assets=(
"pulse-v${PULSE_VERSION}-linux-armv7.tar.gz"
"pulse-v${PULSE_VERSION}-linux-armv6.tar.gz"
"pulse-v${PULSE_VERSION}-linux-386.tar.gz"
+ "pulse-provider-msp-v${PULSE_VERSION}.tar.gz"
"pulse-agent-v${PULSE_VERSION}-darwin-amd64.tar.gz"
"pulse-agent-v${PULSE_VERSION}-darwin-arm64.tar.gz"
"pulse-agent-v${PULSE_VERSION}-windows-amd64.zip"
@@ -563,6 +564,30 @@ info "Validating universal tarball contains all agent binaries..."
check_tar_entries_nonempty "pulse-v${PULSE_VERSION}.tar.gz" "${unified_agent_entries[@]}"
success "Universal tarball validated (includes cross-platform unified agents)"
+# Validate the provider MSP bundle as one extracted tree. It is a separately
+# signed release asset because the normal Pulse archives do not carry this
+# deployment surface.
+section "Validating provider MSP bundle"
+provider_msp_bundle="pulse-provider-msp-v${PULSE_VERSION}.tar.gz"
+provider_msp_root="pulse-provider-msp-v${PULSE_VERSION}"
+provider_msp_extract="${tmp_root}/provider-msp"
+mkdir -p "${provider_msp_extract}"
+tar -xzf "${provider_msp_bundle}" -C "${provider_msp_extract}"
+for required in setup.sh upgrade.sh run-install-proof.sh docker-compose.yml traefik.yml traefik-dynamic.yml .env.example VERSION; do
+ if [ ! -s "${provider_msp_extract}/${provider_msp_root}/${required}" ]; then
+ error "Provider MSP bundle is missing ${required}"
+ exit 1
+ fi
+done
+if [ "$(tr -d '\r\n' < "${provider_msp_extract}/${provider_msp_root}/VERSION")" != "${PULSE_VERSION}" ]; then
+ error "Provider MSP bundle VERSION does not match ${PULSE_VERSION}"
+ exit 1
+fi
+provider_msp_env="${provider_msp_extract}/${provider_msp_root}/.env.example"
+grep -Fx "CONTROL_PLANE_IMAGE=ghcr.io/rcourtman/pulse-control-plane:${PULSE_TAG}" "${provider_msp_env}" >/dev/null || { error "Provider MSP bundle does not pin the control-plane image to ${PULSE_TAG}"; exit 1; }
+grep -Fx "CP_PULSE_IMAGE=ghcr.io/rcourtman/pulse:${PULSE_TAG}" "${provider_msp_env}" >/dev/null || { error "Provider MSP bundle does not pin the tenant image to ${PULSE_TAG}"; exit 1; }
+success "Provider MSP bundle validated with exact-version Pulse image refs"
+
# Validate macOS tarballs
tar -tzf "pulse-agent-v${PULSE_VERSION}-darwin-arm64.tar.gz" pulse-agent-darwin-arm64 >/dev/null 2>&1 || { error "macOS unified-agent tarball validation failed"; exit 1; }
success "macOS agent tarballs validated"