Review report

bitcoin/bitcoin: PR #36722

1 minor finding · 1 suggestion

Findings

Link

[minor] · The local osslsigncode 2.9+ prerequisite is undocumented

The documented detached-signing command uses the signer's local osslsigncode, so versions before 2.9 can fail despite the Guix 2.14 pin.

Location: contrib/windeploy/detached-sig-create.sh:39 (head).

Details and suggested fix

The signing bundle contains this script, and the release instructions run it directly with OSSLSIGNCODE or the default executable from PATH. The Guix 2.14 pin applies to the later attachment and verification step, so it does not satisfy the new -readpass - requirement here. Document osslsigncode >= 2.9 in the Windows detached-signing instructions while retaining stdin delivery. With an older binary that lacks this stdin support, signing can fail and the script can still create an archive without .pem signatures and print Created signature-win.tar.gz. That unchecked-error behavior predates this PR, but the version dependency adds a new trigger. The recommended guix-codesign check would catch missing signatures later. The current Windows signer's installed version is not established.


Optional improvements

Link

[suggestion] · The stdin passphrase path has only syntax validation

A one-time run with a throwaway encrypted key would validate the newline-free stdin passphrase and signature extraction, which the reported sh -n check does not exercise.

Location: contrib/windeploy/detached-sig-create.sh:39 (head).

Details and suggested fix

The command now sends printf '%s' "${cs_key_pass}" through a pipe to osslsigncode sign ... -readpass -. The PR reports only a syntax check, and no tracked test exercises this script. Run it once with osslsigncode >= 2.9, a throwaway encrypted key, a matching self-signed win-codesign.cert, and a small unsigned/ tree containing a Windows executable. Confirm that signature-win.tar.gz contains the extracted .pem signatures, rather than relying on the final creation message. This directly checks the changed passphrase delivery without using release credentials. The documented guix-codesign check remains useful for validating attachment later.


Coverage details