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
Fix release key helper module path
rcourtman1a9fa936ee24
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex fbace13797..8f6518a675 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -1245,8 +1245,10 @@ installer signatures. `scripts/build-release.sh`,`.github/workflows/create-release.yml`, `.github/workflows/publish-docker.yml`,`scripts/validate-release.sh`, and `scripts/validate-published-release.sh`must derive the embedded update trust root and installer SSH trust root from-the governed release signing key, render release installers with that pinned-SSH verifier, emit both `.sig` and `.sshsig` sidecars for shipped agent+the governed release signing key, invoke release signing helpers from the+module-root package path so Go `internal/` boundaries stay valid in local and+CI release builds, render release installers with that pinned SSH verifier,+emit both `.sig` and `.sshsig` sidecars for shipped agentbinaries and installer assets, emit a standalone SPDX JSON SBOM for theassembled release packet, upload those security artifacts with the matchingrelease packet, and fail validation if any published artifact ordiff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.goindex 2487380def..f9d0edff92 100644--- a/scripts/installtests/build_release_assets_test.go+++ b/scripts/installtests/build_release_assets_test.go@@ -74,7 +74,7 @@ func TestBuildReleaseUsesV6InstallScripts(t *testing.T) {helperRequired := []string{`: "${PULSE_SCRIPTS_DIR:=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"`,`: "${PULSE_REPO_ROOT:=$(cd "${PULSE_SCRIPTS_DIR}/.." && pwd)}"`,- `go -C "${PULSE_REPO_ROOT}" run "${PULSE_SCRIPTS_DIR}/release_update_key.go" "$@"`,+ `go -C "${PULSE_REPO_ROOT}" run ./scripts/release_update_key.go "$@"`,`pulse_release_go_run_update_key public-key --private-key "${PULSE_UPDATE_SIGNING_KEY}"`,`pulse_release_go_run_update_key fingerprint --public-key "${PULSE_RELEASE_UPDATE_PUBLIC_KEY}"`,`pulse_release_go_run_update_key public-key-ssh --private-key "${PULSE_UPDATE_SIGNING_KEY}"`,@@ -656,6 +656,29 @@ func TestReleaseUpdateKeyFingerprintUsesCanonicalRawPublicKeyHash(t *testing.T)}}+func TestReleaseAssetCommonRunsUpdateKeyThroughModulePath(t *testing.T) {+ if _, err := exec.LookPath("bash"); err != nil {+ t.Skip("bash not installed")+ }+ if _, err := exec.LookPath("go"); err != nil {+ t.Skip("go not installed")+ }++ cmd := exec.Command("bash", "-lc", "source ./scripts/release_asset_common.sh; pulse_release_go_run_update_key")+ cmd.Dir = repoFile()+ output, err := cmd.CombinedOutput()+ if err == nil {+ t.Fatalf("expected release_update_key.go usage failure, got success:\n%s", output)+ }+ text := string(output)+ if !strings.Contains(text, "release_update_key.go public-key") {+ t.Fatalf("expected release_update_key.go usage output, got:\n%s", output)+ }+ if strings.Contains(text, "use of internal package") {+ t.Fatalf("release helper invoked update key outside module import boundary:\n%s", output)+ }+}+func TestReleaseAssetCommonRejectsUnexpectedUpdateSigningPublicKey(t *testing.T) {if _, err := exec.LookPath("bash"); err != nil {t.Skip("bash not installed")diff --git a/scripts/release_asset_common.sh b/scripts/release_asset_common.shindex 9f484470f8..421004051f 100644--- a/scripts/release_asset_common.sh+++ b/scripts/release_asset_common.sh@@ -6,7 +6,7 @@: "${PULSE_REPO_ROOT:=$(cd "${PULSE_SCRIPTS_DIR}/.." && pwd)}"pulse_release_go_run_update_key() {- go -C "${PULSE_REPO_ROOT}" run "${PULSE_SCRIPTS_DIR}/release_update_key.go" "$@"+ go -C "${PULSE_REPO_ROOT}" run ./scripts/release_update_key.go "$@"}pulse_release_prepare_signing_state() {diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.pyindex 71e3cd8188..0101c7596d 100644--- a/scripts/release_control/release_promotion_policy_test.py+++ b/scripts/release_control/release_promotion_policy_test.py@@ -430,7 +430,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):self.assertIn('pulse_release_write_checksums_and_signatures "${RELEASE_DIR}" "${checksum_files[@]}"', build_script)self.assertIn(': "${PULSE_SCRIPTS_DIR:=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"', release_asset_helper)self.assertIn(': "${PULSE_REPO_ROOT:=$(cd "${PULSE_SCRIPTS_DIR}/.." && pwd)}"', release_asset_helper)- self.assertIn('go -C "${PULSE_REPO_ROOT}" run "${PULSE_SCRIPTS_DIR}/release_update_key.go" "$@"', release_asset_helper)+ self.assertIn('go -C "${PULSE_REPO_ROOT}" run ./scripts/release_update_key.go "$@"', release_asset_helper)self.assertIn('pulse_release_go_run_update_key public-key --private-key "${PULSE_UPDATE_SIGNING_KEY}"', release_asset_helper)self.assertIn('pulse_release_go_run_update_key fingerprint --public-key "${PULSE_RELEASE_UPDATE_PUBLIC_KEY}"',