Skip to content

Remove deploy-spored.sh, and gate that only the release publishes spored (#876) - #880

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/876-remove-deploy-spored
Oct 13, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/876-remove-deploy-spored

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes #876

What goes

scripts/deploy-spored.sh uploaded bin/spored-* to every regional bucket with no .sha256 and no .sig. The boot installer (pkg/sporedinstall) refuses any spored whose checksum doesn't match or whose signature doesn't verify — correctly. So one run would have left new binaries beside the old checksums, and every instance launched afterwards would have refused to install spored and booted with no TTL, idle-stop or cost-limit enforcement. release.yaml's own comments record that failure happening once (#440). It also covered 10 of the release's 11 regions (no ca-central-1) and no Windows binary.

Deleted, not fixed. The .sig is made by a KMS key reachable only through the release workflow's OIDC role — no script can produce a valid one. spored ships only by tagging a release, as v0.128.0 just did.

Checked before deleting: nothing references the script, and its PROJECT=prism mode has no live consumer — the prism/ prefix in the binaries bucket is empty.

The gate, and the version of it that didn't work

TestOnlyTheReleaseWorkflowPublishesSpored: nothing but release.yaml may write a spored binary to S3. The rule is deliberately not "an upload must include .sha256 and .sig" — a script could satisfy that and still publish an invalid signature. The one place signing happens is the one place allowed to publish, so naming it is the rule rather than an exemption from one.

The first version passed with the deleted script restored. It matched per physical line, and the script wrote

aws s3 cp bin/spored-linux-amd64 \
    "s3://${bucket}/${PROJECT}/spored-linux-amd64" \

with the destination on the continuation. The gate was blind to exactly the thing it existed to stop, and would have shipped green. Rebuilt to join \ continuations into logical commands and read arguments by position: aws s3 cp SRC DST is a write exactly when DST is an s3:// URL — which is also what distinguishes an upload from install-spored.sh's download, something the regex had only approximated. With the script restored it now fails, naming each upload.

Scope stated honestly: the release workflow uploads through printf-pair pipelines the classifier wouldn't read as a write, so it is exempt by name, and a separate assertion only checks it still mentions .sig, .sha256 and kms.

Found on the way, filed separately

The live Windows launch path installs spored with no checksum or signature check, and continues on failure — #879 (private advisory GHSA-q59f-6gc3-qj2p). The manual scripts/install-spored.{sh,ps1} have the same gap and are tracked there rather than here, since this PR is about the publisher, not the installers.

🤖 Generated with Claude Code

…red (#876)

deploy-spored.sh uploaded bin/spored-* to every regional bucket with no .sha256
and no .sig, while the boot installer refuses any spored whose checksum does not
match or whose signature does not verify. One run would have left new binaries
beside the old checksums and every new instance would have refused to install
spored, booting with no TTL enforcement (#440's failure mode). It also covered 10
of the release's 11 regions and no Windows binary.

Deleted rather than fixed: the .sig is made by a KMS key reachable only through
the release workflow's OIDC role, so no script can produce a valid one.

TestOnlyTheReleaseWorkflowPublishesSpored scans every script, Makefile and
workflow, reading commands as logical lines with positional arguments. The first
version matched per physical line and passed with the deleted script restored,
because its s3:// destination sat on a continuation line.

Closes #876
@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 1010998 into main Oct 13, 2026
7 checks passed
@scttfrdmn
scttfrdmn deleted the fix/876-remove-deploy-spored branch October 13, 2026 05:06
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.

scripts/deploy-spored.sh would break spored install for every new instance

1 participant