Repository navigation
feat(plugin): optional sha256: on fetch steps, verified by spored - #418
Merged
Merged
Conversation
…ore-plugins#8) Add an optional sha256: field to the plugin Step struct. When a fetch step declares it, spored hashes the downloaded bytes while writing and fails the install (removing the file) on a mismatch — closing the unverified-transitive- download gap for a fetch URL not covered by the plugin.yaml provenance digest. Validate rejects a sha256 that isn't 64 lowercase hex chars, or one set on a non-fetch step. plugin inspect now shows whether each fetch step is checksummed. Increment 1 of the registry supply-chain RFC (spore-plugins#8).
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Contributor
Author
Real-AWS smoke ✅ (gated: TTL 30m, profile spore-host-dev, acct 435415984226)Launched a
Instance terminated; independent leak-check clean (0 running/pending/stopping/stopped in the account); S3 staging object deleted. Cost < $0.05. |
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.
Increment 1 of the registry supply-chain RFC (spore-plugins#8).
What
Adds an optional `sha256:` field to a plugin `fetch` step. When set, spored
hashes the downloaded bytes while writing and fails the install (removing the
file) on a mismatch — closing the "unverified transitive download" gap for a
fetch URL that (unlike the pinned `plugin.yaml`) is not itself covered by the
registry provenance digest.
Optional in the spec; the registry's publish-time CI (increment 5) will require it on official plugins' `fetch` steps.
Tests
Refs #8 (spore-plugins). Keeps the issue open — further increments (manifest, signing, on-instance provenance, publish-time permission check) follow.