Commit Graph

2 Commits

Author SHA1 Message Date
Georges-Antoine Assi
2216f122c1 chore(security): verify dev toolchain downloads (#5218)
* chore(security): verify dev toolchain downloads and pin dev image digests

dev-setup.sh piped astral.sh's uv installer into sh and fetched Node and
the Trunk launcher without any checksum. uv now comes from its GitHub
release tarball checked against the published .sha256, Node against the
release's SHASUMS256.txt, and the Trunk launcher from its versioned URL
against a pinned sha256 (the launcher then verifies the CLI against the
pins in .trunk/trunk.yaml).

The dev Dockerfile pinned ubuntu:22.04 and the uv image by tag only; both
are now pinned by digest like docker/Dockerfile.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(dev-setup): pick musl uv builds and stage downloads outside ~/.local/bin

code-review pass: a partial Trunk download no longer leaves a
non-executable trunk that later runs skip, and download temp dirs are
removed on any exit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(dev-setup): simplify pass on the verified downloads

Drop the uv-only musl branch (Node and apt already rule out musl hosts),
fail fast when no published checksum matches, create ~/.local/bin once,
and remove a dead cleanup the EXIT trap already covers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-27 20:13:32 -04:00
Sam Dornan
bf6f6667ef Consolidate agent instructions into AGENTS.md and add a shared dev environment setup (#4869) 2026-09-28 09:33:32 -04:00