fix(setup): add paranoid checksum mode#241
Merged
WaylandYang merged 1 commit intoJun 11, 2026
Merged
Conversation
6f27488 to
4376f69
Compare
Contributor
|
@Photon101 — reviewed, and this is a textbook implementation of #239. Verification I ran before merging:
Things I particularly liked:
Merging as-is. You'll be credited in the next release notes. Welcome aboard 🚀 |
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.
Summary
Adds an opt-in
scripts/setup-host.sh --paranoidmode for checksum-verified host setup.What changed
1.29.0and verifies the downloaded binary forx86_64-unknown-linux-gnuandaarch64-unknown-linux-gnubefore running it.v1.10.1archive forx86_64andaarch64before extracting it.--paranoidis passed.Verification
I also exercised the paranoid download path with
HOMEset to a temp directory andsudostubbed to no-op, so apt/group/KSM/hugepage operations did not mutate the host. That run downloaded and verified the Firecrackerv1.10.1x86_64 archive, installedfirecrackerandjailerinto the temp HOME, and confirmedFirecracker v1.10.1. The checksum helper was also checked against a wrong sha to confirm it hard-fails with a clear mismatch message, and against the real x86_64 rustup-init and Firecracker URLs without executing either artifact.Closes #239