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.

Point provider MSP setup at the portal Plan tab to buy

rcourtman9b16aeac9c41
diff --git a/deploy/provider-msp/setup.sh b/deploy/provider-msp/setup.sh
index 4f7d3ee730..9630fd0148 100755
--- a/deploy/provider-msp/setup.sh
+++ b/deploy/provider-msp/setup.sh
@@ -22,7 +22,6 @@ PULSE_PROVIDER_MSP_LICENSE_URL="${PULSE_PROVIDER_MSP_LICENSE_URL:-https://licens
PULSE_PROVIDER_MSP_SKIP_EVAL_LICENSE="${PULSE_PROVIDER_MSP_SKIP_EVAL_LICENSE:-0}"
PULSE_PROVIDER_MSP_EVAL_EMAIL="${PULSE_PROVIDER_MSP_EVAL_EMAIL:-}"
PULSE_PROVIDER_MSP_SIGNUP_SOURCE="${PULSE_PROVIDER_MSP_SIGNUP_SOURCE:-provider_msp_setup}"
-PULSE_PROVIDER_MSP_UPGRADE_URL="${PULSE_PROVIDER_MSP_UPGRADE_URL:-https://pulserelay.pro/msp.html}"
log() {
echo "[$(date -u +'%Y-%m-%dT%H:%M:%SZ')] $*"
@@ -436,16 +435,10 @@ ensure_eval_license() {
chmod 0600 "${eval_path}"
set_env_value CP_PROVIDER_MSP_LICENSE_FILE "./provider-msp-eval-license.jwt" "${env_path}"
- local expires license_id
+ local expires
expires="$(printf '%s' "${response}" | jq -r '.expires_at // empty' 2>/dev/null || true)"
- license_id="$(printf '%s' "${response}" | jq -r '.license_id // empty' 2>/dev/null || true)"
log "evaluation license installed: 2 client workspaces${expires:+, expires ${expires}}"
- if [[ "${license_id}" =~ ^lic_msp_[a-f0-9]+$ ]]; then
- log " when you need a third client, request an upgrade at:"
- log " ${PULSE_PROVIDER_MSP_UPGRADE_URL%/}?eval_license_id=${license_id}#request"
- else
- log " when you need a third client, request an upgrade at ${PULSE_PROVIDER_MSP_UPGRADE_URL%/}#request"
- fi
+ log " when you need a third client, buy a plan from Plan in your provider portal"
}
ensure_generated_secrets() {
@@ -812,16 +805,16 @@ Prove the platform before the first real client:
Portal (after bootstrap):
https://${domain}/portal
+Plan: the evaluation covers two clients. When you need a third, open Plan in
+the portal and buy one; checkout is by Stripe and the new limit applies within
+seconds. Change plan or cancel renewal from Manage billing in the same place.
+
Day 2: portal sessions last 7 days. Re-run the bootstrap command above any
time to print a fresh owner sign-in link, or use
docker compose run --rm control-plane provider-msp portal-link --email [email protected]
for any invited teammate. Set RESEND_API_KEY in .env to enable emailed
sign-in links instead.
-Lease signing public key (your provider MSP license must bind this key;
-re-print any time with ./setup.sh --print-lease-signing-public-key):
- $(derive_lease_signing_public_key)
-
EOF
}
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 9956383d52..2f86bf0b43 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -2416,6 +2416,18 @@ artifact-selection behaviour.
## Current State
+### Provider MSP setup points buyers at the portal
+
+`deploy/provider-msp/setup.sh` no longer tells an evaluating provider to
+"request an upgrade" at a pulserelay.pro form that waited on a human reply with
+a checkout link. The evaluation log line and the closing summary both say to
+buy from Plan in the provider portal, where checkout binds the platform's lease
+signing key without a copy step, and the summary no longer prints that key as
+something the provider must send. `./setup.sh --print-lease-signing-public-key`
+remains for a custom licence. `TestProviderMSPSetupLeavesPlatformRunning` and
+the evaluation-issuance test in `scripts/installtests/provider_msp_deploy_test.go`
+pin both lines.
+
### Provider MSP setup leaves the platform running
`deploy/provider-msp/setup.sh` now ends by starting `traefik`,
diff --git a/scripts/installtests/provider_msp_deploy_test.go b/scripts/installtests/provider_msp_deploy_test.go
index 3ed7236f80..d05e90ba5c 100644
--- a/scripts/installtests/provider_msp_deploy_test.go
+++ b/scripts/installtests/provider_msp_deploy_test.go
@@ -403,8 +403,11 @@ func TestProviderMSPSetupScriptSupportsUnlicensedEvaluation(t *testing.T) {
"PULSE_PROVIDER_MSP_EVAL_EMAIL",
"PULSE_PROVIDER_MSP_SIGNUP_SOURCE",
`setup_stage: "images_ready"`,
- "eval_license_id=",
+ "buy a plan from Plan in your provider portal",
)
+ // Buying happens in the portal. The old hint sent providers to a request
+ // form that waited on a human reply with a checkout link.
+ assertNotContainsAny(t, script, "request an upgrade", "eval_license_id=")
if strings.LastIndex(script, "pull_provider_images\n") > strings.LastIndex(script, "ensure_eval_license\n") {
t.Fatal("evaluation must be issued only after pinned provider images are reachable")
}
@@ -617,6 +620,14 @@ func TestProviderMSPSetupLeavesPlatformRunning(t *testing.T) {
)
assertNotContainsAny(t, script, "Pulse Provider MSP setup prepared.")
+ // The closing summary says where buying happens and no longer asks the
+ // provider to carry a lease signing key to anyone: the portal purchase
+ // binds it without a copy step.
+ summary := script[strings.Index(script, "Pulse Provider MSP is running."):]
+ summary = summary[:strings.Index(summary, "EOF")]
+ assertContainsAll(t, summary, "open Plan in\nthe portal", "Manage billing")
+ assertNotContainsAny(t, summary, "must bind this key", "derive_lease_signing_public_key")
+
sequence := " ensure_eval_license\n validate_compose_config\n start_provider_services\n run_install_proof_if_requested\n print_summary\n"
if !strings.Contains(script, sequence) {
t.Fatal("setup must start provider services after the licensed compose validation and before the install proof and summary")