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.

Disable Windows signing until SignPath is ready

rcourtman9ff5dfb4d4d2
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index 6b0e5bbd9e..6a6f83906b 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -38,12 +38,12 @@ on:
required: false
type: string
unsigned_windows_exception:
- description: 'v6.1.0, v6.1.1, v6.1.2, v6.2.0, v6.2.1, v6.3.0, or v6.3.1 only: publish Windows agents without Authenticode under a recorded owner exception'
+ description: 'Optional version-bound override after SignPath availability is restored; not required while the standing unavailable policy is active'
required: false
type: boolean
default: false
unsigned_windows_reason:
- description: 'v6.1.0, v6.1.1, v6.1.2, v6.2.0, v6.2.1, v6.3.0, or v6.3.1 only: owner reason for the unsigned Windows exception'
+ description: 'Owner reason for an explicit version-bound unsigned Windows override'
required: false
type: string
historical_asset_backfill_only:
diff --git a/.github/workflows/release-dry-run.yml b/.github/workflows/release-dry-run.yml
index 9351747df5..c124fd4ecd 100644
--- a/.github/workflows/release-dry-run.yml
+++ b/.github/workflows/release-dry-run.yml
@@ -43,12 +43,12 @@ on:
required: false
type: string
unsigned_windows_exception:
- description: 'v6.1.0, v6.1.1, v6.1.2, v6.2.0, v6.2.1, v6.3.0, or v6.3.1 only: rehearse Windows agents without Authenticode under a recorded owner exception'
+ description: 'Optional version-bound override after SignPath availability is restored; not required while the standing unavailable policy is active'
required: false
type: boolean
default: false
unsigned_windows_reason:
- description: 'v6.1.0, v6.1.1, v6.1.2, v6.2.0, v6.2.1, v6.3.0, or v6.3.1 only: owner reason for the unsigned Windows exception'
+ description: 'Owner reason for an explicit version-bound unsigned Windows override'
required: false
type: string
note:
@@ -79,7 +79,11 @@ jobs:
with:
version: ${{ inputs.version }}
require_macos_signing: true
- require_windows_signing: ${{ !contains(inputs.version, '-') && !((inputs.version == '6.1.0' || inputs.version == '6.1.1' || inputs.version == '6.1.2' || inputs.version == '6.2.0' || inputs.version == '6.2.1' || inputs.version == '6.3.0' || inputs.version == '6.3.1') && inputs.unsigned_windows_exception) }}
+ # Keep this aligned with WINDOWS_AUTHENTICODE_AVAILABLE in
+ # scripts/release_control/resolve_release_promotion.py. Restore both only
+ # after the release owner confirms production credentials and certificate
+ # authorization are ready.
+ require_windows_signing: false
windows_signing_backend: signpath
dry-run:
diff --git a/docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md b/docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md
index ab1f0c9fd9..c88fbea23e 100644
--- a/docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md
+++ b/docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md
@@ -444,6 +444,25 @@ TLS-unverified receipts leave the claim at `implemented` or
succeeded and not a standing exception. Stable `v6.3.2` and later restore
mandatory Authenticode unless another explicit, version-bound owner
decision is recorded.
+ - Windows artifacts remain bound by the exact release SHA, immutable
+ candidate manifest, SHA-256 checksums, detached `.sig` and `.sshsig`
+ signatures, and published-digest verification. Public notes must disclose
+ that the binaries are not Authenticode-signed and may display an Unknown
+ Publisher warning.
+16. Windows Authenticode unavailable policy from v6.3.2:
+ - On 2026-08-25, release run `32896554952` failed closed when the SignPath
+ production submission returned `Invalid request to SignPath API` before a
+ signing-request record was created. The release owner explicitly directed
+ stable releases from `v6.3.2` onward to skip Windows Authenticode while
+ production credentials and certificate authorization remain unavailable.
+ The dated decision record is
+ `docs/release-control/v6/internal/records/windows-authenticode-unavailable-owner-policy-2026-08-25.md`.
+ - This standing unavailable state remains active until the release owner
+ explicitly confirms that SignPath production credentials and certificate
+ authorization are ready. New stable versions must not require per-version
+ unsigned allowlist updates while this state is active. Restoring signing
+ requires an explicit policy/code change; credential arrival alone must not
+ silently change release behavior.
- Windows artifacts remain bound by the exact release SHA, immutable
candidate manifest, SHA-256 checksums, detached `.sig` and `.sshsig`
signatures, and published-digest verification. Public notes must disclose
diff --git a/docs/release-control/v6/internal/records/windows-authenticode-unavailable-owner-policy-2026-08-25.md b/docs/release-control/v6/internal/records/windows-authenticode-unavailable-owner-policy-2026-08-25.md
new file mode 100644
index 0000000000..82e1ab0faf
--- /dev/null
+++ b/docs/release-control/v6/internal/records/windows-authenticode-unavailable-owner-policy-2026-08-25.md
@@ -0,0 +1,38 @@
+# Windows Authenticode Unavailable Owner Policy
+
+- Decision date: `2026-08-25`
+- Effective from: `v6.3.2`
+- Failed release run: `32896554952`
+- Restoration owner: release owner
+
+## Owner Decision
+
+Release run `32896554952` reached the SignPath production `release-signing`
+submission after building and uploading the exact-SHA unsigned Windows agent
+artifact. SignPath rejected the submission with `Invalid request to SignPath
+API` before returning a signing request ID, so no request record exists to
+approve or collect on a failed-job rerun.
+
+On 2026-08-25, the release owner directed stable releases from `v6.3.2` onward
+to skip Windows Authenticode while SignPath production credentials and
+certificate authorization remain unavailable. New stable versions do not need
+individual unsigned-Windows allowlist changes while this standing unavailable
+state remains active.
+
+Signing must not be restored automatically or merely because external account
+state changes. The release owner will explicitly confirm when production
+credentials and certificate authorization are ready; restoring Authenticode
+then requires a reviewed policy and code change.
+
+## Required Integrity Controls
+
+The unavailable state changes only the Authenticode requirement. Windows
+artifacts must still be built from the exact release SHA and bound to the
+immutable candidate manifest, SHA-256 checksums, detached `.sig` and `.sshsig`
+signatures, and published-digest verification. Public release notes must state
+that the Windows binaries are not Authenticode-signed and may display an
+Unknown Publisher warning.
+
+The normal integrated frontend, backend, installer, Docker, Helm, macOS signing
+and notarization, candidate validation, publication, activation, and convergence
+controls remain unchanged.
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index f86e20d9ba..893ed9aa9b 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -10728,6 +10728,18 @@
"lane_ids": [
"L1"
]
+ },
+ {
+ "id": "windows-authenticode-unavailable-owner-policy",
+ "summary": "On 2026-08-25 release run 32896554952 failed closed when the SignPath production request returned Invalid request to SignPath API before creating a signing-request record. The release owner directed stable releases from v6.3.2 onward to skip Windows Authenticode while production credentials and certificate authorization remain unavailable. This standing unavailable state changes only the Authenticode requirement: the exact release SHA, immutable candidate manifest, SHA-256 checksums, detached signatures, published-digest verification, and public Unknown Publisher disclosure remain mandatory. Windows signing must not be restored until the release owner confirms that SignPath production credentials and certificate authorization are ready.",
+ "kind": "release-policy",
+ "decided_at": "2026-08-25",
+ "subsystem_ids": [
+ "deployment-installability"
+ ],
+ "lane_ids": [
+ "L1"
+ ]
}
]
}
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 4f345becce..70d85bd1dc 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -745,15 +745,17 @@ upgrade, update, release, or artifact-selection behavior.
candidate build whenever its required `version` input is non-empty and must
apply the same channel-specific native-signing policy as a publish run.
macOS notarization remains mandatory for both prerelease and stable
- candidates. Windows Authenticode remains mandatory for stable candidates
- except for the explicitly version-bound `v6.1.0`, `v6.1.1`, `v6.1.2`, and
- `v6.2.0` owner exceptions; prerelease candidates and those four stable exceptions may
+ candidates. Windows Authenticode is unavailable for stable candidates from
+ `v6.3.2` onward under the standing owner policy until production credentials
+ and certificate authorization are explicitly confirmed ready. Prerelease
+ candidates and stable candidates under that standing unavailable policy may
retain checksum and detached-signature verification without Authenticode
while the release packet explicitly discloses the unknown-publisher warning.
- Prerelease promotion remains blocked on the normal stable signing
- requirement. Stable releases after each recorded exception restore it
- automatically unless policy records a new version-bound owner decision. A cheap
- signing-configuration job
+ New stable versions must not require per-version unsigned allowlist updates
+ while this state is active. Restoring signing requires a reviewed policy and
+ code change after the release owner confirms readiness; external account
+ state alone must not change release behavior. When Authenticode is enabled,
+ a cheap signing-configuration job
must report every missing secret for the platforms required by that
candidate before either platform runner is allocated. Stable Windows signing must use SignPath's GitHub
trusted-build-system action by default, submit an immutable GitHub artifact
@@ -1759,8 +1761,12 @@ the existing mobile, Relay, onboarding, and mobile-facing API contracts, so the
server cut is classified `no-mobile-impact`; no companion upload or public
mobile-store rollout is part of this candidate. The prerelease Windows path
retains exact-SHA, checksum, and detached-signature verification without
-Authenticode; stable `v6.4.0` restores mandatory SignPath signing unless a new
-version-bound decision is recorded.
+Authenticode. Stable `v6.4.0` also skips SignPath under the standing unavailable
+policy and retains the same exact-SHA, checksum, detached-signature, manifest,
+published-digest, and Unknown Publisher disclosure controls. Signing returns
+only after the release owner explicitly confirms that production credentials
+and certificate authorization are ready and a reviewed policy/code change
+restores it.
The preceding stable `v6.3.1` cut set the repo-root `VERSION`, repo-root
`docker-compose.yml` image default, `scripts/install-docker.sh` fallback, and
@@ -3744,11 +3750,13 @@ notarized macOS agent binaries while Windows Authenticode approval is still an
externally owned bounded residual, but only when the RC packet explicitly
discloses the unsigned Windows publisher state and the Windows binaries retain
the exact-SHA candidate, checksum, detached-signature, and post-publication
-digest controls. Stable publication and the stable-path dry-run must continue
-to require both native signing lanes except for the recorded, version-bound
-`v6.1.0`, `v6.1.1`, `v6.1.2`, `v6.2.0`, and `v6.2.1` Windows exceptions;
-subsequent stable versions restore both requirements unless policy records a
-new explicit version-bound owner decision. `scripts/build-release.sh` must replace
+digest controls. Stable publication and the stable-path dry-run must skip the
+Windows native-signing lane from `v6.3.2` onward while the standing
+SignPath-unavailable owner policy is active. New stable versions inherit that
+state without per-version allowlist changes. Authenticode returns only through
+an explicit reviewed policy/code change after the release owner confirms
+production credentials and certificate authorization are ready.
+`scripts/build-release.sh` must replace
only the native targets required by those independent inputs and must fail
closed when a required native-binary directory or target is absent.
Historical published-release repair must flow through
diff --git a/docs/releases/RELEASE_NOTES_v6.4.0-rc.1.md b/docs/releases/RELEASE_NOTES_v6.4.0-rc.1.md
index 28da8b3c92..68faa48006 100644
--- a/docs/releases/RELEASE_NOTES_v6.4.0-rc.1.md
+++ b/docs/releases/RELEASE_NOTES_v6.4.0-rc.1.md
@@ -79,8 +79,11 @@ build path.
contracts.
- Windows Unified Agent binaries in this prerelease retain exact-SHA, checksum,
and detached-signature verification but are not Authenticode-signed. Stable
- `v6.4.0` still requires the normal SignPath Authenticode lane unless a new
- explicit version-bound owner decision is recorded.
+ `v6.4.0` also skips SignPath under the standing unavailable policy until the
+ release owner explicitly confirms production credentials and certificate
+ authorization are ready. The binaries may display an Unknown Publisher
+ warning; exact-SHA, checksum, detached-signature, manifest, and
+ published-digest verification remain mandatory.
## Upgrade Notes
diff --git a/docs/releases/V6_CHANGELOG_v6.4.0-rc.1.md b/docs/releases/V6_CHANGELOG_v6.4.0-rc.1.md
index 24e98734e7..c8915dd442 100644
--- a/docs/releases/V6_CHANGELOG_v6.4.0-rc.1.md
+++ b/docs/releases/V6_CHANGELOG_v6.4.0-rc.1.md
@@ -50,8 +50,11 @@ _This changelog describes the changes since `v6.3.1` included in
- Promotion path: exact-SHA single-build release candidate from `main`
- Windows signing decision: the standing prerelease path publishes exact-SHA,
checksum, and detached-signature verified Windows agents without
- Authenticode; stable `v6.4.0` restores mandatory SignPath signing unless a
- new version-bound owner decision is recorded
+ Authenticode. Stable `v6.4.0` also skips SignPath under the standing
+ unavailable policy until the release owner explicitly confirms production
+ credentials and certificate authorization are ready; Unknown Publisher
+ disclosure and the exact-SHA, checksum, detached-signature, manifest, and
+ published-digest controls remain mandatory
- Mobile decision: `no-mobile-impact`; changes since `v6.3.1` preserve the
existing mobile, Relay, onboarding, and mobile-facing API contracts, so no
companion upload or public store rollout is required
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index e0cbe1bb11..c1f405fdef 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -899,7 +899,8 @@ func TestCurrentPrereleasePacketTracksInstallMetadata(t *testing.T) {
"The changes since `v"+comparisonVersion+"` do not require a Pulse Mobile client change",
"preserve the existing mobile, Relay, onboarding, and mobile-facing API contracts",
"Windows Unified Agent binaries in this prerelease retain exact-SHA, checksum, and detached-signature verification but are not Authenticode-signed",
- "Stable `v"+stableTarget+"` still requires the normal SignPath Authenticode lane",
+ "Stable `v"+stableTarget+"` also skips SignPath under the standing unavailable policy",
+ "Unknown Publisher warning",
"Paid Pulse Pro, Relay, and eligible legacy customers should continue to use the private download page",
)
assertFileContainsAllNormalized(t, changelogPath,
@@ -915,7 +916,7 @@ func TestCurrentPrereleasePacketTracksInstallMetadata(t *testing.T) {
"Fixed poll intervals remain fixed when adaptive scheduling is disabled.",
"Agent re-enrollment clears host-removal blocks from every owning store.",
"The notifications API no longer returns the stored Apprise API key.",
- "Windows signing decision: the standing prerelease path publishes exact-SHA, checksum, and detached-signature verified Windows agents without Authenticode; stable `v"+stableTarget+"` restores mandatory SignPath signing",
+ "Windows signing decision: the standing prerelease path publishes exact-SHA, checksum, and detached-signature verified Windows agents without Authenticode. Stable `v"+stableTarget+"` also skips SignPath under the standing unavailable policy",
"Mobile decision: `no-mobile-impact`",
"changes since `v"+comparisonVersion+"` preserve the existing mobile, Relay, onboarding, and mobile-facing API contracts",
"no companion upload or public store rollout is required",
@@ -964,7 +965,7 @@ func TestCurrentPrereleasePacketTracksInstallMetadata(t *testing.T) {
"This prerelease keeps `rollback_version=v"+previous+"`, publishes a versioned public GitHub prerelease plus versioned Docker and Helm artifacts, and does not move stable/latest install pointers or stable semver aliases.",
"For the active prerelease `v"+version+"` cut, the repo-root compose default and `scripts/install-docker.sh` fallback must both pin `"+version+"` until the next governed stable cut moves them forward.",
"The changes since `v"+comparisonVersion+"` do not require a Pulse Mobile client change and preserve the existing mobile, Relay, onboarding, and mobile-facing API contracts, so the server cut is classified `no-mobile-impact`; no companion upload or public mobile-store rollout is part of this candidate.",
- "The prerelease Windows path retains exact-SHA, checksum, and detached-signature verification without Authenticode; stable `v"+stableTarget+"` restores mandatory SignPath signing unless a new version-bound decision is recorded.",
+ "The prerelease Windows path retains exact-SHA, checksum, and detached-signature verification without Authenticode. Stable `v"+stableTarget+"` also skips SignPath under the standing unavailable policy",
)
}
@@ -1345,15 +1346,18 @@ func TestReleaseCandidateRequiresPlatformNativeAgentSigning(t *testing.T) {
)
assertFileContainsAll(t, repoFile(".github", "workflows", "release-dry-run.yml"),
`Definitive Dry-Run Verdict`,
- `require_windows_signing: ${{ !contains(inputs.version, '-') && !((inputs.version == '6.1.0' || inputs.version == '6.1.1' || inputs.version == '6.1.2' || inputs.version == '6.2.0' || inputs.version == '6.2.1' || inputs.version == '6.3.0' || inputs.version == '6.3.1') && inputs.unsigned_windows_exception) }}`,
+ `require_windows_signing: false`,
+ `WINDOWS_AUTHENTICODE_AVAILABLE`,
`require_result "exact-SHA release candidate" "$CANDIDATE_RESULT" success`,
`require_result "stable demo no-mutation verification" "$DEMO_RESULT" success`,
)
assertFileContainsAll(t, repoFile("scripts", "release_control", "resolve_release_promotion.py"),
- `version not in {"6.1.0", "6.1.1", "6.1.2", "6.2.0", "6.2.1", "6.3.0", "6.3.1"}`,
+ `WINDOWS_AUTHENTICODE_AVAILABLE = False`,
+ `WINDOWS_AUTHENTICODE_STANDING_UNSIGNED_MIN_VERSION = (6, 3, 2)`,
+ `version not in {"6.1.0", "6.1.1", "6.1.2", "6.2.0", "6.2.1", "6.3.0", "6.3.1", "6.3.2"}`,
`unsigned_windows_reason is required`,
`not Authenticode-signed`,
- `require_windows_signing = not is_prerelease and not unsigned_windows_exception`,
+ `require_windows_signing = not is_prerelease and not effective_unsigned_windows_exception`,
)
assertFileContainsAll(t, repoFile("scripts", "build-release.sh"),
`PULSE_AGENT_NATIVE_BINARIES_DIR`,
diff --git a/scripts/installtests/install_docker_sh_test.go b/scripts/installtests/install_docker_sh_test.go
index 99a4b627ce..1825ed8cde 100644
--- a/scripts/installtests/install_docker_sh_test.go
+++ b/scripts/installtests/install_docker_sh_test.go
@@ -371,7 +371,7 @@ func TestInstallDockerProofTracksPrereleaseContract(t *testing.T) {
"It follows stable `v"+comparisonVersion+"` and opens the published `v"+stableTarget+"` candidate line.",
"This prerelease keeps `rollback_version=v"+previous+"`, publishes a versioned public GitHub prerelease plus versioned Docker and Helm artifacts, and does not move stable/latest install pointers or stable semver aliases.",
"The changes since `v"+comparisonVersion+"` do not require a Pulse Mobile client change and preserve the existing mobile, Relay, onboarding, and mobile-facing API contracts, so the server cut is classified `no-mobile-impact`; no companion upload or public mobile-store rollout is part of this candidate.",
- "The prerelease Windows path retains exact-SHA, checksum, and detached-signature verification without Authenticode; stable `v"+stableTarget+"` restores mandatory SignPath signing unless a new version-bound decision is recorded.",
+ "The prerelease Windows path retains exact-SHA, checksum, and detached-signature verification without Authenticode. Stable `v"+stableTarget+"` also skips SignPath under the standing unavailable policy",
"For the active prerelease `v"+version+"` cut, the repo-root compose default and `scripts/install-docker.sh` fallback must both pin `"+version+"` until the next governed stable cut moves them forward.",
)
if version == "6.3.0-rc.6" {
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index beb4e22f72..eaab17f3bf 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -1263,9 +1263,10 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("if: ${{ inputs.version != '' }}", workflow)
self.assertIn("require_macos_signing: true", workflow)
self.assertIn(
- "require_windows_signing: ${{ !contains(inputs.version, '-') && !((inputs.version == '6.1.0' || inputs.version == '6.1.1' || inputs.version == '6.1.2' || inputs.version == '6.2.0' || inputs.version == '6.2.1' || inputs.version == '6.3.0' || inputs.version == '6.3.1') && inputs.unsigned_windows_exception) }}",
+ "require_windows_signing: false",
workflow,
)
+ self.assertIn("WINDOWS_AUTHENTICODE_AVAILABLE", workflow)
self.assertIn("unsigned_windows_exception:", workflow)
self.assertIn("unsigned_windows_reason:", workflow)
self.assertIn("windows_signing_backend: signpath", workflow)
@@ -1495,7 +1496,9 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("require_windows_signing: ${{ needs.prepare.outputs.require_windows_signing == 'true' }}", content)
self.assertIn("unsigned_windows_exception:", content)
self.assertIn("unsigned_windows_reason:", content)
- self.assertIn('version not in {"6.1.0", "6.1.1", "6.1.2", "6.2.0", "6.2.1", "6.3.0", "6.3.1"}', resolver)
+ self.assertIn("WINDOWS_AUTHENTICODE_AVAILABLE = False", resolver)
+ self.assertIn("WINDOWS_AUTHENTICODE_STANDING_UNSIGNED_MIN_VERSION = (6, 3, 2)", resolver)
+ self.assertIn('version not in {"6.1.0", "6.1.1", "6.1.2", "6.2.0", "6.2.1", "6.3.0", "6.3.1", "6.3.2"}', resolver)
self.assertIn("not Authenticode-signed", resolver)
self.assertIn("windows_signing_backend: signpath", content)
self.assertIn('if [[ "$REQUIRE_WINDOWS_SIGNING" == "true" ]]', candidate_workflow)
@@ -1791,6 +1794,18 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("not Authenticode-signed", patch_signing_record)
self.assertIn("Unknown Publisher warning", patch_signing_record)
+ unavailable_signing_record = normalize_ws(
+ read(
+ "docs/release-control/v6/internal/records/"
+ "windows-authenticode-unavailable-owner-policy-2026-08-25.md"
+ )
+ )
+ self.assertIn("Windows Authenticode unavailable policy from v6.3.2", policy)
+ self.assertIn("must not require per-version unsigned allowlist updates", policy)
+ self.assertIn("Invalid request to SignPath API", unavailable_signing_record)
+ self.assertIn("not Authenticode-signed", unavailable_signing_record)
+ self.assertIn("Unknown Publisher warning", unavailable_signing_record)
+
def test_release_artifact_workflows_refuse_stable_without_matching_rc(self) -> None:
publish = read(".github/workflows/publish-docker.yml")
promote = read(".github/workflows/promote-floating-tags.yml")
diff --git a/scripts/release_control/resolve_release_promotion.py b/scripts/release_control/resolve_release_promotion.py
index 120661aef4..9729c1c131 100644
--- a/scripts/release_control/resolve_release_promotion.py
+++ b/scripts/release_control/resolve_release_promotion.py
@@ -17,6 +17,13 @@ from repo_file_io import REPO_ROOT, git_env
SEMVER_STABLE_RE = re.compile(r"^(\d+)\.(\d+)\.(\d+)$")
SEMVER_STABLE_TAG_RE = re.compile(r"^v(\d+)\.(\d+)\.(\d+)$")
SEMVER_PRERELEASE_RE = re.compile(r"-(?:[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)(?:\+[0-9A-Za-z.-]+)?$")
+WINDOWS_AUTHENTICODE_AVAILABLE = False
+WINDOWS_AUTHENTICODE_STANDING_UNSIGNED_MIN_VERSION = (6, 3, 2)
+WINDOWS_AUTHENTICODE_UNAVAILABLE_REASON = (
+ "SignPath production credentials and certificate authorization are unavailable; "
+ "the release owner approved unsigned Windows Unified Agent artifacts until availability "
+ "is explicitly restored."
+)
ROUTINE_PATCH_RC_REQUIRED_RULES: tuple[tuple[str, tuple[str, ...]], ...] = (
(
@@ -223,6 +230,7 @@ def resolve_metadata(
release_notes_input: str,
unsigned_windows_exception: bool = False,
unsigned_windows_reason_input: str = "",
+ windows_authenticode_available: bool = WINDOWS_AUTHENTICODE_AVAILABLE,
derive_rollback_when_missing: bool = False,
list_stable_tags_fn: Callable[[], list[str]] = list_stable_tags,
list_same_version_rc_tags_fn: Callable[[str], list[str]] = list_same_version_rc_tags,
@@ -243,14 +251,32 @@ def resolve_metadata(
is_prerelease = is_prerelease_version(version)
stable_patch = is_stable_patch_version(version)
promotion_mode = "prerelease" if is_prerelease else "stable-rc-promotion"
+ stable_version_match = SEMVER_STABLE_RE.match(version)
+ stable_version = (
+ tuple(int(part) for part in stable_version_match.groups())
+ if stable_version_match
+ else None
+ )
+ standing_unsigned_windows_policy = bool(
+ stable_version
+ and stable_version >= WINDOWS_AUTHENTICODE_STANDING_UNSIGNED_MIN_VERSION
+ and not windows_authenticode_available
+ )
+ effective_unsigned_windows_exception = (
+ standing_unsigned_windows_policy or unsigned_windows_exception
+ )
- if unsigned_windows_exception:
- if version not in {"6.1.0", "6.1.1", "6.1.2", "6.2.0", "6.2.1", "6.3.0", "6.3.1"}:
+ if unsigned_windows_exception and not standing_unsigned_windows_policy:
+ if version not in {"6.1.0", "6.1.1", "6.1.2", "6.2.0", "6.2.1", "6.3.0", "6.3.1", "6.3.2"}:
raise ValueError(
"unsigned_windows_exception is approved only for stable v6.1.0, v6.1.1, "
- "v6.1.2, v6.2.0, v6.2.1, v6.3.0, or v6.3.1. Later stable releases require a new explicit, "
+ "v6.1.2, v6.2.0, v6.2.1, v6.3.0, v6.3.1, or v6.3.2. Later stable releases require a new explicit, "
"version-bound owner decision."
)
+ if standing_unsigned_windows_policy and not unsigned_windows_reason:
+ unsigned_windows_reason = WINDOWS_AUTHENTICODE_UNAVAILABLE_REASON
+
+ if effective_unsigned_windows_exception:
if not unsigned_windows_reason:
raise ValueError(
"unsigned_windows_reason is required when unsigned_windows_exception is true."
@@ -264,7 +290,7 @@ def resolve_metadata(
"unsigned_windows_reason is allowed only when unsigned_windows_exception is true."
)
- require_windows_signing = not is_prerelease and not unsigned_windows_exception
+ require_windows_signing = not is_prerelease and not effective_unsigned_windows_exception
if not rollback_tag and derive_rollback_when_missing:
rollback_tag = derive_latest_stable_rollback_tag(version, list_stable_tags_fn())
@@ -399,7 +425,7 @@ def resolve_metadata(
"v5_eos_date": v5_eos_date,
"hotfix_exception": "true" if hotfix_exception else "false",
"hotfix_reason": hotfix_reason,
- "unsigned_windows_exception": "true" if unsigned_windows_exception else "false",
+ "unsigned_windows_exception": "true" if effective_unsigned_windows_exception else "false",
"unsigned_windows_reason": unsigned_windows_reason,
"require_windows_signing": "true" if require_windows_signing else "false",
"soak_hours": soak_hours,
diff --git a/scripts/release_control/resolve_release_promotion_test.py b/scripts/release_control/resolve_release_promotion_test.py
index f9981dc671..cb4f789ec1 100644
--- a/scripts/release_control/resolve_release_promotion_test.py
+++ b/scripts/release_control/resolve_release_promotion_test.py
@@ -348,15 +348,68 @@ class ResolveReleasePromotionTest(unittest.TestCase):
self.assertEqual(metadata["require_windows_signing"], "false")
self.assertEqual(metadata["unsigned_windows_exception"], "true")
+ def test_v632_standing_unavailable_policy_allows_disclosed_emergency_patch(self) -> None:
+ metadata = resolver.resolve_metadata(
+ version="6.3.2",
+ promoted_from_tag_input="",
+ rollback_version_input="v6.3.1",
+ ga_date_input="",
+ v5_eos_date_input="",
+ hotfix_exception=True,
+ hotfix_reason_input=(
+ "Metrics memory growth can wedge stable and disabled offline policies emit alert noise."
+ ),
+ release_notes_input=(
+ "Windows Unified Agent binaries are not Authenticode-signed for v6.3.2."
+ ),
+ unsigned_windows_exception=False,
+ unsigned_windows_reason_input="",
+ list_stable_tags_fn=lambda: ["v6.3.1", "v6.3.0"],
+ list_same_version_rc_tags_fn=lambda version: [],
+ changed_paths_fn=lambda tag: ["internal/monitoring/metrics_history.go"],
+ tag_exists_fn=lambda tag: tag == "v6.3.1",
+ tag_commit_fn=lambda tag: "v631-commit",
+ head_descends_from_fn=lambda commit: commit == "v631-commit",
+ )
+
+ self.assertEqual(metadata["promotion_mode"], "emergency-stable-patch")
+ self.assertEqual(metadata["rollback_tag"], "v6.3.1")
+ self.assertEqual(metadata["require_windows_signing"], "false")
+ self.assertEqual(metadata["unsigned_windows_exception"], "true")
+ self.assertIn("until availability is explicitly restored", metadata["unsigned_windows_reason"])
+
+ def test_future_stable_release_stays_unsigned_until_authenticode_is_restored(self) -> None:
+ metadata = resolver.resolve_metadata(
+ version="6.4.0",
+ promoted_from_tag_input="v6.4.0-rc.1",
+ rollback_version_input="v6.3.2",
+ ga_date_input="",
+ v5_eos_date_input="",
+ hotfix_exception=True,
+ hotfix_reason_input="Release owner approved stable promotion.",
+ release_notes_input=(
+ "Windows Unified Agent binaries are not Authenticode-signed for v6.4.0."
+ ),
+ list_stable_tags_fn=lambda: ["v6.3.2", "v6.3.1"],
+ tag_exists_fn=lambda tag: tag in {"v6.4.0-rc.1", "v6.3.2"},
+ tag_commit_fn=lambda tag: "rc-commit" if tag == "v6.4.0-rc.1" else "v632-commit",
+ head_descends_from_fn=lambda commit: True,
+ tag_created_unix_fn=lambda tag: 100,
+ now_unix_fn=lambda: 100 + (73 * 3600),
+ )
+
+ self.assertEqual(metadata["require_windows_signing"], "false")
+ self.assertEqual(metadata["unsigned_windows_exception"], "true")
+
def test_unsigned_windows_exception_is_rejected_for_other_stable_versions(self) -> None:
with self.assertRaisesRegex(
ValueError,
- "approved only for stable v6.1.0, v6.1.1, v6.1.2, v6.2.0, v6.2.1, v6.3.0, or v6.3.1",
+ "approved only for stable v6.1.0, v6.1.1, v6.1.2, v6.2.0, v6.2.1, v6.3.0, v6.3.1, or v6.3.2",
):
resolver.resolve_metadata(
- version="6.3.2",
+ version="6.4.0",
promoted_from_tag_input="",
- rollback_version_input="v6.3.1",
+ rollback_version_input="v6.3.2",
ga_date_input="",
v5_eos_date_input="",
hotfix_exception=True,
@@ -364,6 +417,7 @@ class ResolveReleasePromotionTest(unittest.TestCase):
release_notes_input="Windows binaries are not Authenticode-signed.",
unsigned_windows_exception=True,
unsigned_windows_reason_input="Not approved for this version.",
+ windows_authenticode_available=True,
tag_exists_fn=lambda tag: True,
)