Skip to content

ci(release): Authenticode-sign Windows release binaries via Azure Artifact Signing - #1855

Merged
zackees merged 2 commits into
mainfrom
feat/azure-artifact-signing
Nov 2, 2026
Merged

zackees merged 2 commits into
mainfrom
feat/azure-artifact-signing

Conversation

@zackees

@zackees zackees commented Nov 2, 2026

Copy link
Copy Markdown
Member

Summary

Signs every shipped Windows PE (fbuild.exe, fbuild-daemon.exe, _native.pyd) for both x86_64-pc-windows-msvc and aarch64-pc-windows-msvc with Azure Artifact Signing (Authenticode), mirroring forge-ci/reld#234 / soldr#4068.

  • Insertion point: template_native_build.yml, right after Stage artifacts and before Generate checksums / Attest native artifacts / Upload artifacts. The GitHub release zips, SHA256SUMS, provenance and the win_amd64 wheel are all built from that artifact, so they all carry signed bytes (no wheel RECORD rewrite needed).
  • Gated by a new sign_windows input (default false); only release-auto.yml sets it (Windows lanes). build.yml stays unsigned.
  • azure/login@a457da9e… # v2.3.0, OIDC only (no client secret); token from az 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 at timestamp.acs.microsoft.com.
  • Fail-closed post-sign structural check (WIN_CERTIFICATE, publisher CN, RFC 3161 OID) on Linux.
  • New windows-release-smoke job (windows-2025 + windows-11-arm) requires Get-AuthenticodeSignature == Valid for every PE and runs fbuild.exe --version; publish and build-pypi now need it.
  • Secrets: FastLED org AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_SIGNING_ENDPOINT, AZURE_SIGNING_ACCOUNT, AZURE_SIGNING_PROFILE, AZURE_SIGN_PUBLISHER (allowlisted in ci.toml). No legacy signing existed in the repo.
  • release-auto is workflow_dispatch-only (no pull_request path), so no PR-skip is needed; a dispatch from a ref Azure does not trust fails closed at azure/login.

Note: shadowing repo secrets

FastLED/fbuild has repo-level AZURE_CLIENT_ID and AZURE_TENANT_ID, which override the org values, plus legacy unused AZURE_SIGN_ENDPOINT/ACCOUNT/PROFILE and a repo-level AZURE_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 OK
  • actionlint clean on the changed workflows
  • ci-lint precheck: no new violations (one new RUN-001 needs-review for the matrix runs-on)
  • Not verified end-to-end: real signing only runs on a release dispatch from main.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…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
zackees added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit e270282 Nov 2, 2026
29 checks passed
@zackees
zackees deleted the feat/azure-artifact-signing branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant