Sign the rustup install script
Problem you are trying to solve
Over on arch the notes on Rust say something like "You've got two mutually exclusive choices for installing rust: pacman / rustup"
Arch goes on to say something like "... if you want to use Rust for development, use rustup etc."
Ok, so I want to use the rustup install script. But I also want to check what it's doing or alternatively check that it has been signed by the official rust team.
Do you guys publish signatures for the install script? If so, is there a formal (scriptable) mechanism for verifying the install script via these signatures?
Cheers
Solution you'd like
Official Rust Team:
- crytographically signs each released version of the rustup installation script using an appropriate mechanism
- publishes public signing keys via multiple public channels
- publishes notifications of changes to signing keys using appropriate mechanisms
- publishes the signature for the current installer hosted on https://sh.rustup.rs
- specifies the formal process of obtaining and verifying public signing keys AND using the verified keys for the purpose of corroborating the rustup installation script via its digital signature
Notes
No response
I was just having a poke around in rust-install-script-sh and I noticed a short-form git-sha in the usage() heredoc "... rustup-init 1.28.2 (d1f31992a 2025-04-28) ..."
Ok, so I can see this commit in the repo AND it's immediate descendent f7935a8ad24a445629ceedb2cb706a4469e1e5b3, which simply changes the git-sha in the script.
Could you guys maybe use signed commits as part of an automated release-process? That way I could verify the script via the repo.