Repository navigation
Pin the ARM64 Arrow overlay to a commit before its wheels are signed - #11911
Conversation
woa-wheelhouse.yml checked out MugundanMCW/arrow at the branch Pyarrow_WoA, copied two of its batch files into the Arrow tree and ran them. The wheel that comes out is Authenticode signed in the release-signing job and --clobbered onto the rolling release install.ps1 reads by default on Windows ARM64, so a mutable ref there decides the contents of a binary we sign. The smoke tests and the signature check prove the wheel works and that we signed it; neither says anything about where it came from. The ref is now the commit SHA 423b9b38f85a2b7634f7fc8e4975b3ed573f3697, which is the branch head as reviewed and carries the same build.bat and test.bat the overlay step already asserts on. A run-time step re-reads the checkout and fails if it is not that commit, before anything is copied. tests/security/test_woa_wheelhouse_integrity.py gates it: the ref must be a 40-hex commit, the checkout must use the pinned env var, the confirm step must run before the overlay step, and the two upstream sources must stay on release tags.
The file was added without one, which the new-file header check rejects. No change to what it tests.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex security review |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…nslothai#11911) * Pin the ARM64 Arrow overlay to a commit before its wheels are signed woa-wheelhouse.yml checked out MugundanMCW/arrow at the branch Pyarrow_WoA, copied two of its batch files into the Arrow tree and ran them. The wheel that comes out is Authenticode signed in the release-signing job and --clobbered onto the rolling release install.ps1 reads by default on Windows ARM64, so a mutable ref there decides the contents of a binary we sign. The smoke tests and the signature check prove the wheel works and that we signed it; neither says anything about where it came from. The ref is now the commit SHA 423b9b38f85a2b7634f7fc8e4975b3ed573f3697, which is the branch head as reviewed and carries the same build.bat and test.bat the overlay step already asserts on. A run-time step re-reads the checkout and fails if it is not that commit, before anything is copied. tests/security/test_woa_wheelhouse_integrity.py gates it: the ref must be a 40-hex commit, the checkout must use the pinned env var, the confirm step must run before the overlay step, and the two upstream sources must stay on release tags. * Add the AGPL-3.0 header to the woa-wheelhouse integrity test The file was added without one, which the new-file header check rejects. No change to what it tests. * Trim comments in the ARM64 Arrow overlay pin * Drop the ARROW_WOA_REF comment the guard and test already enforce --------- Co-authored-by: danielhanchen <[email protected]>
What this changes
woa-wheelhouse.ymlbuilds the Windows ARM64 pyarrow wheel from the Apache release tag and then overlays ARM64 build support from a third-party fork,MugundanMCW/arrow. That overlay was checked out by branch name (Pyarrow_WoA). The wheel it produces is Authenticode signed with our Trusted Signing credentials and--clobbered onto the rolling release thatinstall.ps1fetches by default on Windows ARM64.A branch on someone else's fork is mutable, and the fork's batch files are copied into the Arrow tree and executed during the build. So whoever can push to that branch decides the contents of a binary we sign and ship. The downstream smoke tests prove the wheel works, and the signature check proves we signed it. Neither one says where the code came from.
This PR makes three changes:
ARROW_WOA_REFnow points to423b9b38f85a2b7634f7fc8e4975b3ed573f3697, which is the current head ofPyarrow_WoA(2026-08-18). The build input is exactly what it resolves to today, so nothing about the wheel changes. Bumping it becomes a deliberate edit, made after reading the diff. This is the same rule as the digest pin ontrusted-signing-cliin the sign job.A new step,
Confirm the overlay is the pinned commit, runs before the overlay files are copied. It refuses a ref that is not a full 40-hex SHA, and it refuses a checkout whoseHEADdiffers from the pin.tests/security/test_woa_wheelhouse_integrity.pychecks, from the workflow YAML:publishdefaults to false.It runs in the existing
tests/securityinvocation inworkflow-trigger-lint.yml.Evidence
maintest_arm64_overlay_is_pinned_to_a_commit(ref is'Pyarrow_WoA'),test_the_run_re_checks_the_pin_before_copying_the_batch_filesThe pinned commit exists on the fork and is still the branch head (
gh api repos/MugundanMCW/arrow/branches/Pyarrow_WoA). The workflow YAML parses.Not covered
The workflow is
workflow_dispatchonly and needs the Windows ARM64 runner and the signing environment, so the build itself was not run for this PR. The new step is plainpwshandgit rev-parseon the checkout directory that the overlay step already uses.This was originally part of #11137, where it did not belong. Once this lands, the identical lines drop out of that PR's diff on its next merge from main.