Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin and verify rustup-init sha256 in builder image
As an extra defense, pin the rustup version used and verify the hash of the downloaded rustup-init binary. Previously we were downloading the hash from the same place we were downloading the binary, so it didn't really offer any extra protection besides making sure the download wasn't corrupted (which HTTPS does for us). This does not completely protect us, as rustup-init downloads rustup without verifying signatures, but that will hopefully be fixed soon: <rust-lang/rustup#2028>. This shouldn't add a significant amount of maintenance overhead, as old rustup versions can still be used to download newer Rust versions. Fixes freedomofpress/securedrop-security#70.
- Loading branch information