Commit Graph
3 Commits
Author SHA1 Message Date
Patrick O'Doherty 19db106a9d tool: verify SHA256 of all downloaded toolchains
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]>
2026-07-27 09:56:00 -07:00
Val c85d7c301a tool: force HTTP/1.1 in curl to prevent hang behind load balancer
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]>
2023-08-21 08:37:26 -07:00
Sonia Appasamy 53c722924b tool/{node,yarn}: update node and yarn tools
Syncing these up with what we've got in corp.

Updates tailscale/corp#13775

Signed-off-by: Sonia Appasamy <[email protected]>
2023-08-10 17:29:29 -04:00