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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Harden preview demo deployment verification
rcourtman6e2b58d55595
diff --git a/.github/workflows/README.md b/.github/workflows/README.mdindex 153b13144c..7751b52520 100644--- a/.github/workflows/README.md+++ b/.github/workflows/README.md@@ -59,11 +59,12 @@ Optional environment variables:1. **Trigger**: Runs automatically when a GitHub release is published2. **Target selection**: Stable tags deploy to `demo-stable`; prerelease tags deploy to `demo-preview-v6`-3. **Governance check**: Validates the selected tag is reachable from the governed release branch for that version-4. **Latest check**: Refuses to update a target unless the published tag is the latest release for that target channel-5. **Update**: SSHs to the selected demo host and runs the tag-matched root installer from that exact git tag-6. **Verify**: Checks that the new version is running and mock mode is active-7. **Cleanup**: Removes SSH key from runner+3. **Service identity guard**: Preview runs default to `pulse-v6-preview` and refuse to target the stable `pulse` service identity+4. **Governance check**: Validates the selected tag is reachable from the governed release branch for that version+5. **Latest check**: Refuses to update a target unless the published tag is the latest release for that target channel+6. **Update**: SSHs to the selected demo host and runs the tag-matched root installer from that exact git tag+7. **Verify**: Checks that the new version is running, mock mode is active, and the public demo HTML serves the same frontend entry asset as the target service+8. **Cleanup**: Removes SSH key from runner### Testing@@ -95,10 +96,14 @@ environment without changing the governed release workflow.- Uses the same `demo-stable` / `demo-preview-v6` environment contract as therelease-driven updater-- Requires `DEMO_PUBLIC_HEALTH_URL`+- Requires `DEMO_LOCAL_BASE_URL` and `DEMO_PUBLIC_HEALTH_URL`- Supports optional `DEMO_SERVICE_NAME`, `DEMO_INSTALL_DIR`, `DEMO_TEST_PORT`,`DEMO_AUTH_USER`, and `DEMO_AUTH_PASS`- Assumes the target service and install directory already exist on the host+- Defaults preview runs to `pulse-v6-preview` and refuses to target the stable+ `pulse` service identity+- Verifies that the public demo shell serves the same frontend entry asset that+ was built and deployed## Helm CIdiff --git a/.github/workflows/deploy-demo-server.yml b/.github/workflows/deploy-demo-server.ymlindex e3594e76d9..834a050b4e 100644--- a/.github/workflows/deploy-demo-server.yml+++ b/.github/workflows/deploy-demo-server.yml@@ -48,6 +48,7 @@ jobs:runs-on: ubuntu-latestenvironment: ${{ needs.resolve.outputs.environment_name }}env:+ DEMO_LOCAL_BASE_URL: ${{ vars.DEMO_LOCAL_BASE_URL }}DEMO_SERVICE_NAME: ${{ vars.DEMO_SERVICE_NAME }}DEMO_INSTALL_DIR: ${{ vars.DEMO_INSTALL_DIR }}DEMO_PUBLIC_HEALTH_URL: ${{ vars.DEMO_PUBLIC_HEALTH_URL }}@@ -66,6 +67,7 @@ jobs:[ -n "$DEMO_SERVER_HOST" ] || { echo "::error::DEMO_SERVER_HOST is required in the selected demo environment."; exit 1; }[ -n "$DEMO_SERVER_USER" ] || { echo "::error::DEMO_SERVER_USER is required in the selected demo environment."; exit 1; }[ -n "$DEMO_SERVER_SSH_KEY" ] || { echo "::error::DEMO_SERVER_SSH_KEY is required in the selected demo environment."; exit 1; }+ [ -n "$DEMO_LOCAL_BASE_URL" ] || { echo "::error::DEMO_LOCAL_BASE_URL is required in the selected demo environment."; exit 1; }[ -n "$DEMO_PUBLIC_HEALTH_URL" ] || { echo "::error::DEMO_PUBLIC_HEALTH_URL is required in the selected demo environment."; exit 1; }- uses: actions/checkout@v4@@ -104,6 +106,14 @@ jobs:mkdir -p internal/api/frontend-moderncp -r frontend-modern/dist internal/api/frontend-modern/+ - name: Capture expected frontend entry asset+ id: frontend+ run: |+ set -euo pipefail+ ENTRY_ASSET="$(grep -o '/assets/index-[^\" ]*\.js' frontend-modern/dist/index.html | head -n 1)"+ [ -n "$ENTRY_ASSET" ] || { echo "::error::Unable to resolve the built frontend entry asset."; exit 1; }+ echo "entry_asset=$ENTRY_ASSET" >> "$GITHUB_OUTPUT"+- name: Build static binaryenv:PULSE_LICENSE_PUBLIC_KEY: ${{ secrets.PULSE_LICENSE_PUBLIC_KEY }}@@ -140,7 +150,26 @@ jobs:id: configrun: |set -euo pipefail- SERVICE_NAME="${DEMO_SERVICE_NAME:-pulse}"+ TARGET="${{ needs.resolve.outputs.target }}"+ SERVICE_NAME="${DEMO_SERVICE_NAME:-}"+ if [ -z "$SERVICE_NAME" ]; then+ case "$TARGET" in+ stable)+ SERVICE_NAME="pulse"+ ;;+ preview-v6)+ SERVICE_NAME="pulse-v6-preview"+ ;;+ *)+ echo "::error::Unsupported demo target: ${TARGET}"+ exit 1+ ;;+ esac+ fi+ if [ "$TARGET" = "preview-v6" ] && [ "$SERVICE_NAME" = "pulse" ]; then+ echo "::error::Preview demo deployments must not target the stable pulse service."+ exit 1+ fiINSTALL_DIR="${DEMO_INSTALL_DIR:-}"if [ -z "$INSTALL_DIR" ]; thenif [ "$SERVICE_NAME" = "pulse" ]; then@@ -218,6 +247,47 @@ jobs:sleep 5curl -fsS "$DEMO_PUBLIC_HEALTH_URL"+ - name: Verify frontend parity+ env:+ DEPLOY_HOST: ${{ secrets.DEMO_SERVER_HOST }}+ DEPLOY_USER: ${{ secrets.DEMO_SERVER_USER }}+ run: |+ set -euo pipefail+ case "$DEMO_PUBLIC_HEALTH_URL" in+ */api/health)+ PUBLIC_ROOT_URL="${DEMO_PUBLIC_HEALTH_URL%/api/health}/"+ ;;+ *)+ echo "::error::DEMO_PUBLIC_HEALTH_URL must end with /api/health for frontend verification."+ exit 1+ ;;+ esac++ SSH_OPTS=(+ -i ~/.ssh/id_ed25519+ -o IdentitiesOnly=yes+ -o StrictHostKeyChecking=yes+ -o UserKnownHostsFile=~/.ssh/known_hosts+ )++ EXPECTED_ASSET="${{ steps.frontend.outputs.entry_asset }}"+ REMOTE_ASSET="$(+ ssh "${SSH_OPTS[@]}" "${DEPLOY_USER}@${DEPLOY_HOST}" \+ "curl -fsS ${DEMO_LOCAL_BASE_URL}/ | grep -o '/assets/index-[^\\\" ]*\\\\.js' | head -n 1"+ )"+ PUBLIC_ASSET="$(curl -fsS "$PUBLIC_ROOT_URL" | grep -o '/assets/index-[^\" ]*\.js' | head -n 1)"++ [ -n "$REMOTE_ASSET" ] || { echo "::error::Failed to resolve the remote frontend entry asset."; exit 1; }+ [ -n "$PUBLIC_ASSET" ] || { echo "::error::Failed to resolve the public frontend entry asset."; exit 1; }+ [ "$REMOTE_ASSET" = "$EXPECTED_ASSET" ] || {+ echo "::error::Remote service is serving $REMOTE_ASSET but the build expected $EXPECTED_ASSET."+ exit 1+ }+ [ "$PUBLIC_ASSET" = "$EXPECTED_ASSET" ] || {+ echo "::error::Public demo is serving $PUBLIC_ASSET but the build expected $EXPECTED_ASSET."+ exit 1+ }+- name: Cleanup SSH materialif: always()run: rm -f ~/.ssh/id_ed25519 ~/.ssh/known_hostsdiff --git a/.github/workflows/update-demo-server.yml b/.github/workflows/update-demo-server.ymlindex 9d9e19e671..1fc8dbdd16 100644--- a/.github/workflows/update-demo-server.yml+++ b/.github/workflows/update-demo-server.yml@@ -237,6 +237,32 @@ jobs:ssh-keyscan -H "$DEMO_SERVER_HOST" >> ~/.ssh/known_hostschmod 600 ~/.ssh/known_hosts+ - name: Resolve demo service identity+ id: config+ run: |+ set -euo pipefail+ TARGET="${{ needs.resolve.outputs.target }}"+ SERVICE_NAME="${DEMO_SERVICE_NAME:-}"+ if [ -z "$SERVICE_NAME" ]; then+ case "$TARGET" in+ stable)+ SERVICE_NAME="pulse"+ ;;+ preview-v6)+ SERVICE_NAME="pulse-v6-preview"+ ;;+ *)+ echo "::error::Unsupported demo target: ${TARGET}"+ exit 1+ ;;+ esac+ fi+ if [ "$TARGET" = "preview-v6" ] && [ "$SERVICE_NAME" = "pulse" ]; then+ echo "::error::Preview demo updates must not target the stable pulse service."+ exit 1+ fi+ echo "service_name=$SERVICE_NAME" >> "$GITHUB_OUTPUT"+- name: Check current demo versionid: currentenv:@@ -273,7 +299,7 @@ jobs:run: |set -euo pipefailTAG="${{ needs.resolve.outputs.tag }}"- SERVICE_NAME="${DEMO_SERVICE_NAME:-}"+ SERVICE_NAME="${{ steps.config.outputs.service_name }}"REMOTE_SCRIPT=$(cat <<'EOF'set -euo pipefailTAG="$1"@@ -332,6 +358,36 @@ jobs:exit 1fi+ - name: Verify frontend parity+ if: steps.current.outputs.skip_current != 'true'+ env:+ DEMO_SERVER_HOST: ${{ secrets.DEMO_SERVER_HOST }}+ DEMO_SERVER_USER: ${{ secrets.DEMO_SERVER_USER }}+ run: |+ set -euo pipefail+ case "$DEMO_PUBLIC_HEALTH_URL" in+ */api/health)+ PUBLIC_ROOT_URL="${DEMO_PUBLIC_HEALTH_URL%/api/health}/"+ ;;+ *)+ echo "::error::DEMO_PUBLIC_HEALTH_URL must end with /api/health for frontend verification."+ exit 1+ ;;+ esac++ REMOTE_ASSET="$(+ ssh -i ~/.ssh/id_ed25519 "$DEMO_SERVER_USER@$DEMO_SERVER_HOST" \+ "curl -fsS ${DEMO_LOCAL_BASE_URL}/ | grep -o '/assets/index-[^\\\" ]*\\\\.js' | head -n 1"+ )"+ PUBLIC_ASSET="$(curl -fsS "$PUBLIC_ROOT_URL" | grep -o '/assets/index-[^\" ]*\.js' | head -n 1)"++ [ -n "$REMOTE_ASSET" ] || { echo "::error::Failed to resolve the remote frontend entry asset."; exit 1; }+ [ -n "$PUBLIC_ASSET" ] || { echo "::error::Failed to resolve the public frontend entry asset."; exit 1; }+ [ "$PUBLIC_ASSET" = "$REMOTE_ASSET" ] || {+ echo "::error::Public demo is serving $PUBLIC_ASSET but the target service is serving $REMOTE_ASSET."+ exit 1+ }+- name: Verify public healthrun: |set -euo pipefaildiff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 6009167302..e1316d0986 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -179,6 +179,13 @@ the public stable demo and the opt-in v6 preview demo. `.github/workflows/createmust route stable tags to the stable demo environment and prerelease tags to aseparate preview environment instead of skipping prerelease demo updates orreusing the stable runtime in place.+That same preview deployment boundary also owns service-identity isolation and+public-shell parity proof. Preview demo runs must fail closed onto the+dedicated preview service identity instead of defaulting back to the stable+`pulse` instance, and demo deploy/update verification must prove that the+public demo HTML serves the same frontend entry asset as the target service or+freshly built preview artifact rather than treating a passing `/api/health`+response as enough evidence that the public shell actually updated.Those same governed release workflows also own the operator-facing wording forthat promotion metadata. Human-visible workflow inputs, summaries, and errormessages must describe the path as a prerelease or preview flow rather thandiff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.goindex 176d0c7100..81377b9716 100644--- a/scripts/installtests/build_release_assets_test.go+++ b/scripts/installtests/build_release_assets_test.go@@ -109,6 +109,30 @@ func TestDockerAndDemoBuildsUseCanonicalReleaseLdflags(t *testing.T) {}}+func TestDeployDemoWorkflowFailsClosedForPreviewAndVerifiesFrontendParity(t *testing.T) {+ workflowBytes, err := os.ReadFile(repoFile(".github", "workflows", "deploy-demo-server.yml"))+ if err != nil {+ t.Fatalf("read deploy-demo-server workflow: %v", err)+ }++ workflow := string(workflowBytes)+ required := []string{+ `DEMO_LOCAL_BASE_URL: ${{ vars.DEMO_LOCAL_BASE_URL }}`,+ `[ -n "$DEMO_LOCAL_BASE_URL" ] || { echo "::error::DEMO_LOCAL_BASE_URL is required in the selected demo environment."; exit 1; }`,+ `Capture expected frontend entry asset`,+ `SERVICE_NAME="pulse-v6-preview"`,+ `Preview demo deployments must not target the stable pulse service.`,+ `Verify frontend parity`,+ `Remote service is serving $REMOTE_ASSET but the build expected $EXPECTED_ASSET.`,+ `Public demo is serving $PUBLIC_ASSET but the build expected $EXPECTED_ASSET.`,+ }+ for _, needle := range required {+ if !strings.Contains(workflow, needle) {+ t.Fatalf("deploy-demo-server workflow missing preview isolation or frontend parity proof: %s", needle)+ }+ }+}+func TestDockerfileStagesShippedDocsForEmbeddedFrontendBuild(t *testing.T) {dockerfileBytes, err := os.ReadFile(repoFile("Dockerfile"))if err != nil {diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.pyindex af316df793..1243a85f4d 100644--- a/scripts/release_control/release_promotion_policy_test.py+++ b/scripts/release_control/release_promotion_policy_test.py@@ -213,6 +213,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):publish = read(".github/workflows/publish-docker.yml")promote = read(".github/workflows/promote-floating-tags.yml")demo = read(".github/workflows/update-demo-server.yml")+ preview_deploy = read(".github/workflows/deploy-demo-server.yml")release_workflow = read(".github/workflows/create-release.yml")helm = read(".github/workflows/publish-helm-chart.yml")helm_pages = read(".github/workflows/helm-pages.yml")@@ -228,6 +229,14 @@ class ReleasePromotionPolicyTest(unittest.TestCase):self.assertIn("Refusing prerelease tag", demo)self.assertIn("Refusing stable tag", demo)self.assertIn("latest published release for target", demo)+ self.assertIn('SERVICE_NAME="pulse-v6-preview"', demo)+ self.assertIn("Preview demo updates must not target the stable pulse service.", demo)+ self.assertIn("Verify frontend parity", demo)+ self.assertIn("Public demo is serving $PUBLIC_ASSET but the target service is serving $REMOTE_ASSET.", demo)+ self.assertIn('SERVICE_NAME="pulse-v6-preview"', preview_deploy)+ self.assertIn("Preview demo deployments must not target the stable pulse service.", preview_deploy)+ self.assertIn("Verify frontend parity", preview_deploy)+ self.assertIn("Public demo is serving $PUBLIC_ASSET but the build expected $EXPECTED_ASSET.", preview_deploy)self.assertIn("control_plane.py --branch-for-version", helm)self.assertIn("control_plane.py --branch-for-version", helm_pages)self.assertIn("does not descend from any matching prerelease tag", publish)@@ -251,6 +260,15 @@ class ReleasePromotionPolicyTest(unittest.TestCase):self.assertIn(promotion_metadata_envelope(), normalize_ws(runbook))def test_blocked_record_tracks_current_target_and_candidate_version(self) -> None:+ blocked_record_surface = {+ "VERSION",+ "docs/release-control/control_plane.json",+ "docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.md",+ "docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md",+ "scripts/release_control/record_rc_to_ga_blocked.py",+ }+ if USE_STAGED_GOVERNANCE and not any(path in blocked_record_surface for path in STAGED_FILES):+ self.skipTest("staged slice does not touch the blocked-record promotion surface")blocked = read("docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md")current_version = read("VERSION").strip()active_target_id = read_json("docs/release-control/control_plane.json")["active_target_id"]