Repository navigation
Description
From a security review of the full install path: install.sh, install.ps1, and the CLI self-updater (apps/cli/src/self/releases.ts).
Where we stand today: sha256 verification of downloaded binaries is mandatory on all three surfaces, and the CLI updater strictly validates every manifest field (version, filename, sha256 format, size) before building URLs. The remaining gaps are transport hardening and runtime robustness in the shell installers, plus release signing as the larger structural upgrade.
Invariant to preserve across all child issues: install.sh, install.ps1, and releases.ts keep their validation and verification behaviour in lockstep. When one surface gains a check, the others get it too unless the platform makes it impossible.
Children:
- feat(installer): enforce HTTPS-only, TLS 1.2+ and a redirect cap on every curl in install.sh #165 install.sh: HTTPS-only, TLS 1.2+, redirect cap on every curl
- fix(installer): enforce a TLS 1.2 minimum in install.ps1 #166 install.ps1: TLS 1.2+ floor
- feat(installer): validate manifest-derived version, filename and sha256 before building URLs #167 validate manifest-derived fields before building URLs
- feat(installer): install.sh runtime hardening (umask, size check, signal traps, bin-dir and HOME guards, noexec tmp) #168 install.sh runtime hardening pack
- feat(release): sign releases and verify provenance in the install path #169 sign releases / provenance verification
- feat(npm): cap redirect following in the npm postinstall downloader #213 npm postinstall: cap redirect following
Acceptance Criteria
- Child issues feat(installer): validate manifest-derived version, filename and sha256 before building URLs #167 (manifest field validation in the shell installers), feat(installer): install.sh runtime hardening (umask, size check, signal traps, bin-dir and HOME guards, noexec tmp) #168 (install.sh runtime hardening), feat(release): sign releases and verify provenance in the install path #169 (release signing / provenance verification) and feat(npm): cap redirect following in the npm postinstall downloader #213 (redirect cap in the npm postinstall downloader) are all closed, alongside the already closed feat(installer): enforce HTTPS-only, TLS 1.2+ and a redirect cap on every curl in install.sh #165 and fix(installer): enforce a TLS 1.2 minimum in install.ps1 #166
-
install.sh,install.ps1and the CLI self-updater apply the same manifest validation (version, filename, sha256 format, size) before building any download URL, shown by tests or a scripted run that feeds each surface the same malformed manifest and sees all three refuse it - Every download path (
install.sh,install.ps1, CLI self-update, npm postinstall) enforces HTTPS with a TLS 1.2 floor and a redirect cap - An install can verify the release's provenance attestation, and the install docs describe how verification works and what happens when it fails
Activity
nc9 commentedon Sep 23, 2026
Status: #165 and #166 are closed. Open: #167 (manifest field validation in the shell installers), #168 (install.sh runtime hardening), #169 (provenance verification, the attestation itself already exists), and #213 (redirect cap in the npm postinstall downloader, filed as part of this epic).