Documentation
¶
Overview ¶
Command minisign-sign produces the minisign signature this repository publishes beside sha256sums.txt, and generates the keypair that signature is made with.
It exists instead of a `minisign -S` line in the release workflow for one reason, and it is a flag: the stock tool signs PREHASHED unless it is given -l, and a prehashed signature is one every published ccdad refuses. Fixing the mode in internal/relsign removes the command line the flag could be dropped from. It also removes the need for minisign to be installed on the runner or on the maintainer's machine.
It is deliberately NOT called from scripts/build-release.sh. Signing lives in the workflow so a developer can run that script locally with no secret and get the same six binaries and the same sums file, which is what scripts/build_release_test.go already asserts.
Usage:
go run ./scripts/minisign-sign -G [-p ccdaddy.pub] -s "$HOME/ccdaddy-release.key" go run ./scripts/minisign-sign -m dist/sha256sums.txt -t v0.7.0 -o dist/sha256sums.txt.minisig
In signing mode the secret key comes from MINISIGN_SECRET_KEY -- the second line of the file -G wrote -- unless -s names a file holding it. It is never an argument: a command line is readable from a process listing.