Repository navigation
feat(manager): -payload-sha256 verifies the pinned wrapper-lite payload - #13
Merged
Merged
Conversation
…e pinned digest A pinned -payload-url said where the wrapper-lite zip comes from but not what it must contain. With -payload-sha256 the download is hashed before it is written; a mismatch installs nothing and stops the manager even if another payload is installed. The digest joins .payload-source, so a new pin reinstalls. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: LYJW131 <153256373+LYJW131@users.noreply.github.com>
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.
Adds
-payload-sha256 <hex>next to-payload-url. The zip is hashed before it is written; on a mismatch nothing is installed and the manager exits (an already installed payload is not kept). The digest is recorded in.payload-source, so a new digest reinstalls. Tests: match, mismatch, mismatch with an installed payload.Lets amdl pin the lite payload by run id and sha256 instead of trusting the newest build-lite artifact.
🤖 Generated with Claude Code