Skip to content

Verify Rust downloads in Docker builds - #765

Draft
zaniebot wants to merge 3 commits into
mainfrom
zb/verify-docker-rust-checksums
Draft

Verify Rust downloads in Docker builds#765
zaniebot wants to merge 3 commits into
mainfrom
zb/verify-docker-rust-checksums

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

The Docker build pins the Rust version but executes rustup-init without checking its hash. Rustup also fetches its toolchain manifest and checksum from the same distribution server, so the version pin does not independently constrain the downloaded toolchain bytes.

Pin SHA-256 checksums for both Linux installers and the toolchain manifest. Install the minimal toolchain and musl target from a local mirror so Rustup checks each archive against the pinned manifest. Disable self-update and keep subsequent Rustup requests local. When changing rust-toolchain.toml, update RUST_VERSION and its manifest checksum together.

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.

1 participant