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.

Watch stable release locks continuously

pulse-triage[bot]c3faa4897352
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index 5d2e6b8bcd..5846223fbd 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -29,9 +29,10 @@ non-confidential.
## Release Continuity
-The weekly `security-scan.yml` backstop and an immediate read-back after every
-stable release convergence verify the latest advertised stable release from
-the public surfaces customers use. They bind the immutable
+The `security-scan.yml` backstop checks the latest stable release lock and
+activation identity every six hours. Its weekly run and an immediate read-back
+after every stable release convergence perform the full verification from the
+public surfaces customers use. They bind the immutable
GitHub release and activation marker to one source commit, authenticate every
checksummed release asset and SSH signature, re-verify release and build
attestations, and require the exact Docker Hub, GHCR, and OCI Helm identities
@@ -39,8 +40,9 @@ to remain equal to the digests committed at activation. Stable Docker Hub and
GHCR discovery aliases (`latest`, major, and major-minor) must also retain
those identities. Every run retains a
machine-readable evidence packet for 90 days, including partial outcomes when
-a check fails. The job is read-only and requires the public
-`PULSE_UPDATE_SIGNING_PUBLIC_KEY` repository variable.
+a check fails. Six-hour lock-watch evidence explicitly records its narrower
+`release_lock` mode and skipped full-surface checks. The job is read-only and
+requires the public `PULSE_UPDATE_SIGNING_PUBLIC_KEY` repository variable.
## Issue Triage Automation
diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml
index 61246048aa..cef32523e8 100644
--- a/.github/workflows/security-scan.yml
+++ b/.github/workflows/security-scan.yml
@@ -2,12 +2,13 @@ name: Security Scan
# Build and Test audits dependencies on every push, but a quiet week with no
# pushes means no run — and newly disclosed vulnerabilities or delivery drift
-# land against unchanged code. This schedule is the backstop: it re-scans every
-# Go module and npm lockfile against the current advisory databases, then
-# verifies the latest stable packet from the same public surfaces customers
-# consume. A failed scheduled run emails the repository owner.
+# land against unchanged code. The six-hour schedule cheaply verifies that the
+# advertised stable release remains locked and bound to its activation marker.
+# The weekly schedule re-scans every dependency and performs the full public
+# delivery verification. A failed scheduled run emails the repository owner.
on:
schedule:
+ - cron: '17 */6 * * *' # six-hour stable release lock and activation watch
- cron: '30 5 * * 1' # weekly, Monday 05:30 UTC, before the 06:00 triage run
workflow_dispatch:
workflow_run:
@@ -22,7 +23,9 @@ jobs:
name: Latest stable release continuity
# Stable convergence gets an immediate independent read-back. Prerelease
# convergence is excluded because this job intentionally follows the
- # advertised stable channel; the weekly and manual backstops always run.
+ # advertised stable channel. The six-hour schedule stops after release and
+ # activation identity resolution; weekly, manual, and convergence runs
+ # continue through every artifact and customer-facing delivery surface.
if: ${{ github.event_name != 'workflow_run' || !contains(github.event.workflow_run.display_title, '-') }}
runs-on: ubuntu-24.04
timeout-minutes: 60
@@ -33,16 +36,19 @@ jobs:
persist-credentials: false
- name: Set up Go
+ if: ${{ github.event.schedule != '17 */6 * * *' }}
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: Set up Helm
+ if: ${{ github.event.schedule != '17 */6 * * *' }}
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
with:
version: v3.15.2
- name: Set up Docker Buildx
+ if: ${{ github.event.schedule != '17 */6 * * *' }}
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
- name: Resolve the advertised stable release
@@ -100,7 +106,7 @@ jobs:
- name: Verify immutable release and build provenance
id: packet
- if: ${{ always() && steps.release.outcome == 'success' }}
+ if: ${{ always() && steps.release.outcome == 'success' && github.event.schedule != '17 */6 * * *' }}
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
@@ -113,7 +119,7 @@ jobs:
- name: Authenticate every published release asset
id: assets
- if: ${{ always() && steps.release.outcome == 'success' }}
+ if: ${{ always() && steps.release.outcome == 'success' && github.event.schedule != '17 */6 * * *' }}
env:
PULSE_UPDATE_SIGNING_PUBLIC_KEY: ${{ vars.PULSE_UPDATE_SIGNING_PUBLIC_KEY }}
REPOSITORY: ${{ github.repository }}
@@ -122,7 +128,7 @@ jobs:
- name: Verify exact-version container identities
id: containers
- if: ${{ always() && steps.release.outcome == 'success' }}
+ if: ${{ always() && steps.release.outcome == 'success' && github.event.schedule != '17 */6 * * *' }}
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
@@ -144,7 +150,7 @@ jobs:
- name: Verify stable container discovery aliases
id: aliases
- if: ${{ always() && steps.release.outcome == 'success' }}
+ if: ${{ always() && steps.release.outcome == 'success' && github.event.schedule != '17 */6 * * *' }}
env:
TAG: ${{ steps.release.outputs.tag }}
EXPECTED_SERVER_DIGEST: ${{ steps.release.outputs.server_image_digest }}
@@ -157,7 +163,7 @@ jobs:
- name: Verify exact-version Helm identity
id: helm
- if: ${{ always() && steps.release.outcome == 'success' }}
+ if: ${{ always() && steps.release.outcome == 'success' && github.event.schedule != '17 */6 * * *' }}
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
@@ -175,6 +181,7 @@ jobs:
RUN_ID: ${{ github.run_id }}
RUN_ATTEMPT: ${{ github.run_attempt }}
TRIGGER_EVENT: ${{ github.event_name }}
+ TRIGGER_SCHEDULE: ${{ github.event.schedule }}
CONVERGENCE_RUN_ID: ${{ github.event.workflow_run.id }}
CONVERGENCE_RUN_ATTEMPT: ${{ github.event.workflow_run.run_attempt }}
CONVERGENCE_CONCLUSION: ${{ github.event.workflow_run.conclusion }}
@@ -196,6 +203,10 @@ jobs:
set -euo pipefail
mkdir -p release-continuity-evidence
checked_at="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
+ mode=full
+ if [ "${TRIGGER_SCHEDULE}" = '17 */6 * * *' ]; then
+ mode=release_lock
+ fi
jq -n \
--arg schema_version "1" \
--arg checked_at "${checked_at}" \
@@ -203,6 +214,8 @@ jobs:
--arg run_id "${RUN_ID}" \
--arg run_attempt "${RUN_ATTEMPT}" \
--arg trigger_event "${TRIGGER_EVENT}" \
+ --arg trigger_schedule "${TRIGGER_SCHEDULE}" \
+ --arg mode "${mode}" \
--arg convergence_run_id "${CONVERGENCE_RUN_ID}" \
--arg convergence_run_attempt "${CONVERGENCE_RUN_ATTEMPT}" \
--arg convergence_conclusion "${CONVERGENCE_CONCLUSION}" \
@@ -227,6 +240,8 @@ jobs:
workflow_run: {id: $run_id, attempt: $run_attempt},
trigger: {
event: $trigger_event,
+ schedule: $trigger_schedule,
+ mode: $mode,
release_convergence_run: {
id: $convergence_run_id,
attempt: $convergence_run_attempt,
@@ -265,7 +280,7 @@ jobs:
container-lifecycle:
name: Container trust and support window
- if: ${{ github.event_name != 'workflow_run' }}
+ if: ${{ github.event_name != 'workflow_run' && github.event.schedule != '17 */6 * * *' }}
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
@@ -285,7 +300,7 @@ jobs:
govulncheck:
name: Go Vulnerability Scan (${{ matrix.directory }})
- if: ${{ github.event_name != 'workflow_run' }}
+ if: ${{ github.event_name != 'workflow_run' && github.event.schedule != '17 */6 * * *' }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
@@ -313,7 +328,7 @@ jobs:
npm-audit:
name: npm Dependency Audit (${{ matrix.name }})
- if: ${{ github.event_name != 'workflow_run' }}
+ if: ${{ github.event_name != 'workflow_run' && github.event.schedule != '17 */6 * * *' }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index 61ab179d24..9fbde9e7e5 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -151,6 +151,7 @@ func TestSecurityScanRevalidatesLatestStableDelivery(t *testing.T) {
}
workflow := string(content)
required := []string{
+ `cron: '17 */6 * * *'`,
"workflow_run:",
"workflows: [Release Convergence]",
`github.event_name != 'workflow_run' || !contains(github.event.workflow_run.display_title, '-')`,
@@ -169,6 +170,9 @@ func TestSecurityScanRevalidatesLatestStableDelivery(t *testing.T) {
`./scripts/verify-stable-container-aliases.sh`,
`stable_container_aliases: $alias_result`,
`CONVERGENCE_RUN_ID: ${{ github.event.workflow_run.id }}`,
+ `TRIGGER_SCHEDULE: ${{ github.event.schedule }}`,
+ `mode=release_lock`,
+ `mode: $mode`,
`release_convergence_run: {`,
`./scripts/verify-release-helm-chart.sh`,
`EXPECTED_HELM_DIGEST: ${{ steps.release.outputs.helm_chart_digest }}`,
@@ -184,9 +188,28 @@ func TestSecurityScanRevalidatesLatestStableDelivery(t *testing.T) {
t.Fatal("scheduled release continuity check must remain read-only")
}
for _, jobName := range []string{"container-lifecycle", "govulncheck", "npm-audit"} {
- if !strings.Contains(workflowJobBlock(t, workflow, jobName), `github.event_name != 'workflow_run'`) {
+ block := workflowJobBlock(t, workflow, jobName)
+ if !strings.Contains(block, `github.event_name != 'workflow_run'`) {
t.Fatalf("%s must not run for the post-convergence continuity trigger", jobName)
}
+ if !strings.Contains(block, `github.event.schedule != '17 */6 * * *'`) {
+ t.Fatalf("%s must not run for the six-hour release-lock trigger", jobName)
+ }
+ }
+ for _, stepName := range []string{
+ "Set up Go",
+ "Set up Helm",
+ "Set up Docker Buildx",
+ "Verify immutable release and build provenance",
+ "Authenticate every published release asset",
+ "Verify exact-version container identities",
+ "Verify stable container discovery aliases",
+ "Verify exact-version Helm identity",
+ } {
+ step := workflowStepBlock(t, workflowJobBlock(t, workflow, "release-continuity"), stepName)
+ if !strings.Contains(step, `github.event.schedule != '17 */6 * * *'`) {
+ t.Fatalf("%s must not run for the six-hour release-lock trigger", stepName)
+ }
}
}
@@ -3765,3 +3788,20 @@ func workflowJobBlock(t *testing.T, workflow, job string) string {
}
return workflow[start : start+len(" "+job+":\n")+end]
}
+
+func workflowStepBlock(t *testing.T, jobBlock, step string) string {
+ t.Helper()
+
+ startMarker := "\n - name: " + step + "\n"
+ start := strings.Index(jobBlock, startMarker)
+ if start == -1 {
+ t.Fatalf("workflow job missing step %s", step)
+ }
+ start += 1
+ rest := jobBlock[start+len(" - name: "+step+"\n"):]
+ end := len(rest)
+ if candidate := strings.Index(rest, "\n - name: "); candidate >= 0 {
+ end = candidate
+ }
+ return jobBlock[start : start+len(" - name: "+step+"\n")+end]
+}