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 SignPath release provenance

rcourtman34ae5c98f92e
diff --git a/.github/workflows/build-release-candidate.yml b/.github/workflows/build-release-candidate.yml
index 54beb3bc36..1e79ebaca2 100644
--- a/.github/workflows/build-release-candidate.yml
+++ b/.github/workflows/build-release-candidate.yml
@@ -75,8 +75,11 @@ permissions:
jobs:
compile-release-payload:
- name: Compile Exact-SHA Release Payload on PVE
- runs-on: [self-hosted, Linux, X64, pulse-pve-compile]
+ name: Compile Exact-SHA Release Payload
+ # SignPath Foundation validates every job leading up to an OSS signing
+ # request. Keep stable signed candidates entirely on GitHub-hosted runners;
+ # prerelease and explicitly unsigned candidates retain the fast PVE lane.
+ runs-on: ${{ inputs.require_windows_signing && 'ubuntu-24.04' || fromJSON('["self-hosted","Linux","X64","pulse-pve-compile"]') }}
timeout-minutes: 20
steps:
- name: Checkout repository
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index f6662eed2c..77cdf44626 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -76,7 +76,10 @@ permissions:
jobs:
# Combined version extraction and validation (saves a checkout)
prepare:
- runs-on: [self-hosted, Linux, X64, pulse-pve-compile]
+ # Stable releases that will reach SignPath must not have a self-hosted job
+ # anywhere in the provenance preceding the signing request. Invalid
+ # exceptions still fail in the promotion resolver below.
+ runs-on: ${{ (!contains(inputs.version, '-') && !inputs.unsigned_windows_exception) && 'ubuntu-24.04' || fromJSON('["self-hosted","Linux","X64","pulse-pve-compile"]') }}
timeout-minutes: 5
outputs:
version: ${{ steps.extract.outputs.version }}
@@ -262,7 +265,7 @@ jobs:
frontend_bundle:
needs: prepare
if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
- runs-on: [self-hosted, Linux, X64, pulse-pve-build]
+ runs-on: ${{ needs.prepare.outputs.require_windows_signing == 'true' && 'ubuntu-24.04' || fromJSON('["self-hosted","Linux","X64","pulse-pve-build"]') }}
timeout-minutes: 10
steps:
- name: Checkout repository
@@ -357,7 +360,7 @@ jobs:
- prepare
- frontend_bundle
if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
- runs-on: [self-hosted, Linux, X64, pulse-pve-tests]
+ runs-on: ${{ needs.prepare.outputs.require_windows_signing == 'true' && 'ubuntu-24.04' || fromJSON('["self-hosted","Linux","X64","pulse-pve-tests"]') }}
timeout-minutes: 20
env:
FRONTEND_DIST: frontend-modern/dist
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index c41c4e7fc1..b7da3010ad 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -1624,6 +1624,14 @@ Every caller of the reusable release-candidate builder must delegate
`actions: read` alongside `contents: read`; the Windows signing job reads the
exact uploaded artifact through the GitHub Actions API, and GitHub validates
that nested permission even when a prerelease skips Authenticode signing.
+SignPath Foundation also requires every job leading up to an open-source
+signing request to execute on GitHub-hosted runners. Stable signed candidates
+therefore route release preparation, exact-SHA compilation, the parallel
+frontend bundle, and backend qualification through GitHub-hosted runners until
+the signing request is on record. Prerelease and explicitly unsigned candidates
+retain the credential-free PVE acceleration path; post-signing container
+qualification may also use PVE because it cannot affect the submitted Windows
+artifact.
The provider MSP proof command validates its handoff target with the same
host-local redirect contract as runtime token minting and exchange. Proof input
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index fe8a18ca65..fd7edcfd6a 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -1334,6 +1334,8 @@ func TestReleaseCandidateRequiresPlatformNativeAgentSigning(t *testing.T) {
assertFileContainsAll(t, repoFile(".github", "workflows", "create-release.yml"),
`require_macos_signing: true`,
`require_windows_signing: ${{ needs.prepare.outputs.require_windows_signing == 'true' }}`,
+ `(!contains(inputs.version, '-') && !inputs.unsigned_windows_exception) && 'ubuntu-24.04'`,
+ `needs.prepare.outputs.require_windows_signing == 'true' && 'ubuntu-24.04'`,
`unsigned_windows_exception:`,
`unsigned_windows_reason:`,
`windows_signing_backend: signpath`,
@@ -2341,14 +2343,21 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
compileJob := workflowJobBlock(t, candidateWorkflow, "compile-release-payload")
candidateBuildJob := workflowJobBlock(t, candidateWorkflow, "build")
- if !strings.Contains(prepareJob, "runs-on: [self-hosted, Linux, X64, pulse-pve-compile]") {
- t.Fatal("release preparation must avoid a hosted-runner queue before the dependency graph")
+ for _, needle := range []string{
+ `(!contains(inputs.version, '-') && !inputs.unsigned_windows_exception)`,
+ `'ubuntu-24.04'`,
+ `pulse-pve-compile`,
+ } {
+ if !strings.Contains(prepareJob, needle) {
+ t.Fatalf("release preparation missing SignPath-aware runner selection: %s", needle)
+ }
}
if strings.Contains(prepareJob, "sparse-checkout") {
- t.Fatal("PVE release preparation must leave a complete worktree for the following compile job")
+ t.Fatal("release preparation must leave a complete worktree for the following compile job")
}
for _, needle := range []string{
+ `inputs.require_windows_signing && 'ubuntu-24.04'`,
"pulse-pve-compile",
`./scripts/build-release-binaries.sh "${{ inputs.version }}"`,
`release-compiled-${{ github.sha }}-${{ inputs.version }}`,
@@ -2358,10 +2367,21 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
}
}
if strings.Contains(compileJob, "PULSE_UPDATE_SIGNING_KEY") {
- t.Fatal("PVE release compilation job must not receive private update-signing material")
+ t.Fatal("release compilation job must not receive private update-signing material")
+ }
+ for label, job := range map[string]string{
+ "frontend bundle": frontendBundleJob,
+ "backend tests": backendJob,
+ } {
+ if !strings.Contains(job, `needs.prepare.outputs.require_windows_signing == 'true' && 'ubuntu-24.04'`) {
+ t.Fatalf("%s must stay GitHub-hosted while a SignPath request is pending", label)
+ }
+ if !strings.Contains(job, "pulse-pve-") {
+ t.Fatalf("%s must retain PVE acceleration when Windows signing is not required", label)
+ }
}
if !strings.Contains(compileJob, "cache: false") || strings.Contains(compileJob, "cache: 'npm'") {
- t.Fatal("PVE compilation must use persistent runner-local caches without Actions cache archival")
+ t.Fatal("release compilation must avoid Actions cache archival on both hosted and PVE runners")
}
if strings.Contains(frontendBundleJob, "cache: 'npm'") {
t.Fatal("PVE frontend bundle must use its persistent runner-local npm cache")