The tool/ wrapper scripts downloaded helm, node, yarn, and the binaryen
wasm-opt toolchain over HTTPS with curl and executed them with no
integrity verification.
Port corp's download_tool helper (tool/lib/download.sh), which verifies
a repo-pinned SHA256 before extracting, and route helm, node, yarn, and
wasm-opt through it with pinned per-platform hashes. select_sha256 fails
closed on platforms without a pinned hash.
Updates tailscale/corp#43401
Updates tailscale/triage#339
Signed-off-by: Patrick O'Doherty <[email protected]>
When running in our github CI environment, curl sometimes hangs while closing
the download from the nodejs.org server and fails with INTERNAL_ERROR. This is
likely caused by CI running behind some kind of load balancer or proxy that
handles HTTP/2 incorrectly in some minor way, so force curl to use HTTP 1.1.
Updates #8988
Signed-off-by: Val <[email protected]>