… key
The control plane will pass each shirudo key to the release's signing
subset on a pipe at descriptor 3, with a key directory holding cert.der
alone (spin-stack/spin#2047). The operator's control-plane step now signs
that way wherever the release's shirudo-build takes --key-fd: keys vouch,
shirudo-gen-image, shirudo-gen-runtime and shirudo-build on an object.
The test fails a release whose shirudo-build takes none.
The config image also gains the import key of spin-stack/spin#2049. The
operator's key vouches for it, and import.scope gives it spin's scope
(spin-stack/spin#2012): any upatch but spin-seal and spin-guard*. It
signs af-alg-block, which loads, and a spin-seal, which the guest refuses
for its scope.
Part of spin-stack/spin#2043
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why
Each installation's control plane becomes its own upatch registry and holds its shirudo keys (spin-stack/spin#2043). spin needs two fork changes that merged into
spinboxon 2026-12-01. spin-stack/shirudo#17 addskeys/trusted/<name>.scope, which scopes a signer (spin-stack/spin#2012). spin-stack/shirudo#19 adds--key-fdtoshirudo-buildand the gen tools (spin-stack/spin#2047). The pin, 412dc8f3, predates both, and so does v20261204.01. This is step 2 of spin-stack/spin#2047: pin aspinboxthat holds both, so the next release ships them.What changed
versions.yaml: shirudo moves from 412dc8f3 to 8c6782fe, thespinboxhead.spin-machine-dev bump shirudoexited 0. Carried patches 0026-0031 match shirudo's by Subject, and the two declined ones are unchanged.boot:shirudonow proves both features on the shipped tools:shirudo-operator.shsigns as spin'sSignerwill after spin-stack/spin#2047. Each key goes on descriptor 3 from a pipe, and the key directory holdscert.deralone. That coverskeys vouch,shirudo-gen-image,shirudo-gen-runtimeandshirudo-build <object>. The test fails when the release'sshirudo-buildtakes no--key-fd.import.scopegives it spin's scope (upatch *,upatch !spin-seal,upatch !spin-guard*). It signsaf-alg-block, which loads. It also signs aspin-seal, which the guest refuses with "whose scope in the config image leaves out that name".Scope
The shirudo range is 27 commits. Outside
.github/spin/stack.sh, it changes 49 files, all from #17 and #19: 20 source files, the rest docs and tests. #18, #20 and #21 are stacking merges, and they touch onlystack.sh, which #21 rewrites to stack the patch branches by area.Makefile.target-depsandtesting/kernel/patchesdo not move.Makefile.shirudochanges only fuzz targets.tools/gen-imagegains the--key-fdpass-through.Tradeoffs
af-alg-blockis now signed by the import key, not the operator's key. A CVE mitigation from shirudo's catalog is what spin-stack/spin#2049's import key re-signs. A separate in-scope upatch would need an unload directive or a second attach of the same hook.--key-fdis used only whenshirudo-build --helplists it. The lab still makes older releases' machines with this script. The Go test makes the check loud for the release under test.Blast Radius
*.derinkeys/trusted/, so it ignores.scope(read inutil/keys.c, not run).boot:shirudoagainst v20261204.01 or earlier now fails. Those releases enforce no scope.Verification
Evidence is in the first comment.
task lintandtask mutatepassed locally, and so didtask boot:shirudo-hereon this host's build of 8c6782fe.Part of spin-stack/spin#2043, spin-stack/spin#2047 and spin-stack/spin#2012.
🤖 Generated with Claude Code