spawn/packages/cli/src
A cfa1ae7a08
fix(security): add --proto '=https' to all curl bun installer calls (#2138)
* fix(security): add --proto '=https' to all curl bun installer calls

Fixes #2134

All _ensure_bun() functions across aws, hetzner, gcp, local, daytona,
and sprite scripts now enforce HTTPS-only downloads via --proto '=https'.
This prevents MITM attacks during bun installation on remote VMs.
DigitalOcean scripts were already correct and are not changed.

Agent: security-auditor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(security): add --proto '=https' to bun installer in TS files

Address security reviewer feedback: the same MITM vulnerability
existed in 5 TypeScript programmatic provisioning files.

Agent: pr-maintainer
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(security): quote --proto '=https' in su -c curl calls

The aws.ts and gcp.ts files had --proto =https without quotes inside
su -c '...' blocks. Uses double quotes ("=https") to properly nest
inside the single-quoted su -c argument while maintaining protocol
restriction.

Agent: security-auditor
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 11:52:54 -08:00
..
__tests__ test: add coverage for untested ui utility functions (#2135) 2026-03-03 11:22:06 -08:00
aws fix(security): add --proto '=https' to all curl bun installer calls (#2138) 2026-03-03 11:52:54 -08:00
commands refactor: resolve conflicts — merge packages/shared into packages/cli/src/shared (#2092) 2026-03-01 22:05:41 -08:00
daytona fix(security): add --proto '=https' to all curl bun installer calls (#2138) 2026-03-03 11:52:54 -08:00
digitalocean fix(security): add --proto '=https' to all curl bun installer calls (#2138) 2026-03-03 11:52:54 -08:00
gcp fix(security): add --proto '=https' to all curl bun installer calls (#2138) 2026-03-03 11:52:54 -08:00
hetzner fix(security): add --proto '=https' to all curl bun installer calls (#2138) 2026-03-03 11:52:54 -08:00
local fix: derive agent lists dynamically in usage messages (#2089) 2026-03-01 23:21:15 -05:00
shared fix: address 4 reliability issues across codebase (#2129) 2026-03-03 03:18:44 -05:00
sprite fix: address 4 reliability issues across codebase (#2129) 2026-03-03 03:18:44 -05:00
commands.ts refactor: split commands.ts into per-command modules (#2095) 2026-03-01 23:24:15 -05:00
flags.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
guidance-data.ts refactor: Remove dead code and stale references (#2104) 2026-03-02 08:32:02 -05:00
history.ts refactor: resolve conflicts — merge packages/shared into packages/cli/src/shared (#2092) 2026-03-01 22:05:41 -08:00
index.ts fix: exit process when remote session ends (#2148) 2026-03-03 11:48:43 -08:00
manifest.ts fix: reset stale cache flag, guard gcloud null, validate DO config (#2073) 2026-03-01 17:08:38 -05:00
picker.ts refactor: extract shared TTY scaffolding in picker.ts (#1999) 2026-02-27 13:17:01 -05:00
security.ts fix(security): replace validateLaunchCmd blocklist with allowlist (#2053) 2026-03-01 03:12:27 -05:00
unicode-detect.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
update-check.ts refactor: resolve conflicts — merge packages/shared into packages/cli/src/shared (#2092) 2026-03-01 22:05:41 -08:00