Repository navigation
ci(release): Authenticode-sign Windows release binaries via Azure Artifact Signing - #1855
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
…ifact Signing Both *-pc-windows-msvc release lanes now sign fbuild.exe, fbuild-daemon.exe and _native.pyd in template_native_build.yml (sign_windows input, set only by release-auto.yml) before SHA256SUMS, provenance and the artifact upload, so release zips, checksums and the win_amd64 wheel all carry signed bytes. - ci/sign_windows_release.py: azure/login OIDC token (no client secret), SHA-256-pinned jsign 7.6 TRUSTEDSIGNING, RFC 3161 timestamp, fail-closed structural post-sign check, and a Windows smoke mode that requires Get-AuthenticodeSignature Valid and runs fbuild.exe --version. - release-auto.yml: windows-release-smoke (x64 + ARM64 native runners) gates publish and build-pypi. - ci.toml: allow azure/login and the AZURE_* org secrets. - Tests in ci/test_sign_windows_release.py, wired into ci-workflow-drift.
zackees
force-pushed
the
feat/azure-artifact-signing
branch
from
November 2, 2026 13:05
cbc89fd to
87e5718
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Signs every shipped Windows PE (
fbuild.exe,fbuild-daemon.exe,_native.pyd) for bothx86_64-pc-windows-msvcandaarch64-pc-windows-msvcwith Azure Artifact Signing (Authenticode), mirroring forge-ci/reld#234 / soldr#4068.template_native_build.yml, right after Stage artifacts and before Generate checksums / Attest native artifacts / Upload artifacts. The GitHub release zips,SHA256SUMS, provenance and thewin_amd64wheel are all built from that artifact, so they all carry signed bytes (no wheel RECORD rewrite needed).sign_windowsinput (defaultfalse); onlyrelease-auto.ymlsets it (Windows lanes).build.ymlstays unsigned.azure/login@a457da9e… # v2.3.0, OIDC only (no client secret); token fromaz account get-access-token --resource https://codesigning.azure.net, masked, passed to jsign via--storepass env:FBUILD_AZURE_SIGNING_TOKEN. jsign 7.6 pinned by SHA-256.TRUSTEDSIGNING,SHA-256, RFC 3161 timestamp attimestamp.acs.microsoft.com.windows-release-smokejob (windows-2025 + windows-11-arm) requiresGet-AuthenticodeSignature==Validfor every PE and runsfbuild.exe --version;publishandbuild-pypinow need it.AZURE_TENANT_ID,AZURE_CLIENT_ID,AZURE_SIGNING_ENDPOINT,AZURE_SIGNING_ACCOUNT,AZURE_SIGNING_PROFILE,AZURE_SIGN_PUBLISHER(allowlisted inci.toml). No legacy signing existed in the repo.workflow_dispatch-only (no pull_request path), so no PR-skip is needed; a dispatch from a ref Azure does not trust fails closed atazure/login.Note: shadowing repo secrets
FastLED/fbuildhas repo-levelAZURE_CLIENT_IDandAZURE_TENANT_ID, which override the org values, plus legacy unusedAZURE_SIGN_ENDPOINT/ACCOUNT/PROFILEand a repo-levelAZURE_SIGN_PUBLISHER(overrides org). Maintainer should confirm or delete them.Validation
ci/test_sign_windows_release.py(7 tests) + the ci-workflow-drift unittest set: 80 tests OKruns-on)main.