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.

Continuously verify stable installs

pulse-triage[bot]9c307ed1e4d6
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index e9f8b9e0fb..553d69f7de 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -79,6 +79,14 @@ the downloaded byte count and SHA-256 value with GitHub's release-asset
metadata, so a valid-looking JSON response cannot silently replace or truncate
the packet that the release advertises.
+`stable-install-continuity.yml` complements those byte-identity checks with a
+weekly reinstall of the advertised stable release from its public assets. It
+admits only the immutable stable identity accepted by the same continuity
+validator, calls the release install-and-boot smoke under a read-only token,
+and verifies the live service health and exact version. The privileged systemd
+smoke environment is digest-pinned because a floating container image would
+otherwise be an unreviewed code path inside the release gate.
+
Future release candidates also carry
`release-build-provenance.sigstore.json`, produced by the hosted
`build-release-candidate.yml` job after complete candidate validation. The
diff --git a/.github/workflows/install-sh-smoke.yml b/.github/workflows/install-sh-smoke.yml
index 8c11b5a0da..c0c0fd7358 100644
--- a/.github/workflows/install-sh-smoke.yml
+++ b/.github/workflows/install-sh-smoke.yml
@@ -260,6 +260,9 @@ jobs:
# jrei/systemd-debian:12 is a community systemd-in-Docker image used
# for Ansible / Molecule testing — small, no Pulse-specific assumptions.
+ # Keep the privileged test environment bound to an immutable index.
+ # A floating image here would let a registry retag replace code in a
+ # release-gating job that needs contents:write to read draft assets.
# GHA ubuntu-24.04 runners use cgroup v2 unified hierarchy; without
# --cgroupns=host the container gets its own cgroup namespace and
# systemd PID 1 exits before it can mount the cgroup tree, causing
@@ -274,7 +277,7 @@ jobs:
-v /sys/fs/cgroup:/sys/fs/cgroup:rw \
-v "$(pwd)/smoke-workspace:/smoke" \
-p 7655:7655 \
- jrei/systemd-debian:12
+ jrei/systemd-debian:12@sha256:61d70dc3e574337bd9df794674a60ae73113460fff16ab41a2d234b4a11dcd98
echo "Waiting for systemd to be ready inside the container..."
for i in $(seq 1 30); do
diff --git a/.github/workflows/stable-install-continuity.yml b/.github/workflows/stable-install-continuity.yml
new file mode 100644
index 0000000000..c0e28de167
--- /dev/null
+++ b/.github/workflows/stable-install-continuity.yml
@@ -0,0 +1,72 @@
+name: Stable Install Continuity
+
+# Release publication proves the staged systemd installer once. Re-run the
+# same public download and boot path weekly so hosting, package-repository,
+# runner, and smoke-environment drift cannot leave an authenticated but no
+# longer installable stable release advertised indefinitely.
+on:
+ schedule:
+ - cron: '47 4 * * 3'
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: stable-install-continuity
+ cancel-in-progress: false
+
+jobs:
+ resolve:
+ name: Resolve trusted stable release
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
+ outputs:
+ tag: ${{ steps.release.outputs.tag }}
+ version: ${{ steps.release.outputs.version }}
+ steps:
+ - name: Checkout release verification controls
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+
+ - name: Resolve immutable advertised stable release
+ id: release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ REPOSITORY: ${{ github.repository }}
+ run: |
+ set -euo pipefail
+ release_json="$(mktemp)"
+ diagnostic="$(mktemp)"
+ cleanup() {
+ if [ -s "${diagnostic}" ]; then
+ cat "${diagnostic}" >> "${GITHUB_STEP_SUMMARY}"
+ fi
+ rm -f "${release_json}" "${diagnostic}"
+ }
+ trap cleanup EXIT
+
+ gh api \
+ -H 'Accept: application/vnd.github+json' \
+ -H 'X-GitHub-Api-Version: 2026-03-10' \
+ "repos/${REPOSITORY}/releases/latest" > "${release_json}"
+ python3 scripts/release_control/release_continuity.py release \
+ --release-json "${release_json}" \
+ --diagnostic "${diagnostic}" \
+ --github-output "${GITHUB_OUTPUT}"
+
+ tag="$(jq -er '.tag_name' "${release_json}")"
+ echo "version=${tag#v}" >> "${GITHUB_OUTPUT}"
+
+ smoke:
+ name: Reinstall advertised stable release
+ needs: resolve
+ permissions:
+ contents: read
+ uses: ./.github/workflows/install-sh-smoke.yml
+ with:
+ tag: ${{ needs.resolve.outputs.tag }}
+ version: ${{ needs.resolve.outputs.version }}
+ repository: ${{ github.repository }}
+ asset_source: published
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index 5650c10bde..cc1dc385db 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -3009,7 +3009,7 @@ func TestInstallShSmokeWorkflowPresent(t *testing.T) {
`grep -q 'Pulse Unified Agent Installer' install.sh`,
`grep -qE '^[[:space:]]*--version\)' install.sh`,
// End-to-end install in a privileged systemd container.
- `jrei/systemd-debian:12`,
+ `jrei/systemd-debian:12@sha256:61d70dc3e574337bd9df794674a60ae73113460fff16ab41a2d234b4a11dcd98`,
`bash install.sh --archive /smoke/${tarball} --disable-auto-updates`,
`systemctl is-active pulse`,
// curl --retry handles its own poll loop instead of a bash for-loop.
@@ -3029,6 +3029,39 @@ func TestInstallShSmokeWorkflowPresent(t *testing.T) {
}
}
+func TestStableInstallContinuityReinstallsLatestReleaseReadOnly(t *testing.T) {
+ workflowPath := repoFile(".github", "workflows", "stable-install-continuity.yml")
+ assertFileContainsAll(t, workflowPath,
+ `name: Stable Install Continuity`,
+ `schedule:`,
+ `cron: '47 4 * * 3'`,
+ `workflow_dispatch:`,
+ `contents: read`,
+ `"repos/${REPOSITORY}/releases/latest"`,
+ `scripts/release_control/release_continuity.py release`,
+ `version=${tag#v}`,
+ `uses: ./.github/workflows/install-sh-smoke.yml`,
+ `tag: ${{ needs.resolve.outputs.tag }}`,
+ `version: ${{ needs.resolve.outputs.version }}`,
+ `asset_source: published`,
+ )
+
+ workflowBytes, err := os.ReadFile(workflowPath)
+ if err != nil {
+ t.Fatalf("read stable install continuity workflow: %v", err)
+ }
+ workflow := string(workflowBytes)
+ if strings.Contains(workflow, "contents: write") {
+ t.Fatal("stable install continuity must remain read-only")
+ }
+ assertFileContainsAll(t, repoFile(".github", "workflows", "README.md"),
+ `stable-install-continuity.yml`,
+ `weekly reinstall of the advertised stable release`,
+ `read-only token`,
+ `digest-pinned`,
+ )
+}
+
func TestPromoteFloatingTagsReachableViaWorkflowCall(t *testing.T) {
workflowPath := repoFile(".github", "workflows", "promote-floating-tags.yml")
assertFileContainsAll(t, workflowPath,