Conversation
|
@claude review |
|
@greptileai review |
|
Claude finished @shadowfax92's task in 57s —— View job Code Review
Overall this is a well-motivated, focused change. The move from pipe-to-shell to download-then-run is good practice. A few issues worth considering: Security: Checksum RemovalThe most significant concern is removing the checksum verification entirely rather than fixing it. The PR description correctly identifies that The checksums were fetched from the same GitHub release, which the PR notes is "same-release checksum verification" — a valid criticism since an attacker who controls the release could swap both. However, even same-release checksums provide transport integrity (detecting corruption or CDN-level tampering mid-transit). Removing them entirely leaves no verification between download and execution. Consider: if That said, if this is an intentional product decision to simplify the installer (trading off integrity check for simplicity), it's understandable — just worth documenting why. install.sh:
|
Greptile SummaryThis PR narrows the Windows PowerShell installer change to a single, intentional simplification: it removes the same-release checksum verification block from Key points:
Confidence Score: 5/5Safe to merge — the only change is removing a same-release checksum that offered negligible security over HTTPS, with no regressions introduced. All prior P1 concerns (env-var fallbacks being dropped) are confirmed resolved — the fallbacks remain on lines 27–28. The checksum removal is explicit product intent, is low-risk given TLS 1.2 enforcement, and no new logic is added. No P0 or P1 findings remain. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant U as User
participant PS as install.ps1
participant GH as GitHub API
participant CDN as GitHub Releases CDN
U->>PS: Run (param or irm|iex)
PS->>GH: GET /releases (if no version given)
GH-->>PS: latest tag
PS->>CDN: GET {binary}_{version}_windows_{arch}.zip
CDN-->>PS: zip file (HTTPS/TLS 1.2)
Note over PS: ~~Download checksums.txt~~ (removed)
Note over PS: ~~Verify SHA-256~~ (removed)
PS->>PS: Expand-Archive → move exe → update PATH
PS-->>U: "Run browseros-cli --help"
Reviews (2): Last reviewed commit: "refactor: rework 0327-harden_cli_install..." | Re-trigger Greptile |
|
@greptileai review |
|
@claude review |
|
Claude finished @shadowfax92's task in 1m 39s —— View job Code Review
SummaryAfter the rework commit ( Issues1. PR title no longer matches the change
2. No rationale documented for the asymmetry
A one-line comment above the download block in # Checksum omitted — checksums.txt is hosted in the same release, so same-source
# verification doesn't defend against a compromised release asset.3. Stale inline comment at line 26 # When piped via irm | iex, param() is ignored — fall back to env varsThe env-var fallbacks are still present and the What's No Longer Relevant (Pre-Rework Feedback)
VerdictThe change is safe to merge as-is. The only blocking concern I'd flag is updating the PR title to avoid misleading the git history. The missing rationale comment is worth adding but not a blocker. |
Summary
Rework
The first pass changed the public bootstrap flow on both platforms. This rework restores the original one-line install UX and limits the code-level mitigation to
install.ps1, matching the latest product direction.Test plan
apps/agent/.wxt/tsconfig.jsonis missing; unrelated)