Repository navigation
Remove deploy-spored.sh, and gate that only the release publishes spored (#876) - #880
Merged
Merged
Conversation
…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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #876
What goes
scripts/deploy-spored.shuploadedbin/spored-*to every regional bucket with no.sha256and 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 (noca-central-1) and no Windows binary.Deleted, not fixed. The
.sigis 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=prismmode has no live consumer — theprism/prefix in the binaries bucket is empty.The gate, and the version of it that didn't work
TestOnlyTheReleaseWorkflowPublishesSpored: nothing butrelease.yamlmay write a spored binary to S3. The rule is deliberately not "an upload must include.sha256and.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
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 DSTis a write exactly whenDSTis ans3://URL — which is also what distinguishes an upload frominstall-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,.sha256andkms.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