GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Stop downloading vlt artifacts during hosted scans by mikolalysenko · Pull Request #2013 · SocketDev/socket-patch Conversation
|
| Command | Result |
|---|---|
cargo fmt --check |
ok |
cargo clippy --workspace --all-features -- -D warnings |
ok |
core --lib |
7123 passed |
CLI --lib --bins |
865 passed |
in_process_redirect |
135 passed |
scan |
248 passed |
e2e_vex_lockfile |
354 passed |
hosted_memory_engine |
49 passed (a_vlt_project_is_pinned replaces the withholding test) |
in_process_vendor_bun_takeover |
44 passed |
in_process_rollback_hosted |
41 passed |
in_process_get_modes |
23 passed |
in_process_get_hosted_ecosystems |
10 passed |
e2e_hosted_production |
62 passed |
e2e_vendored_production |
61 passed |
e2e_redirect_vlt_build |
28 passed |
scripts/tests |
380 passed |
Not run locally: the ignored cases that need a real vlt toolchain or the live service, including the rewritten heal test and the production install proof (its "encoded" branch is removed). A manual probe against production served identity with no-transform and a matching sha512. vlt-serve-watchdog.yml stays continue-on-error.
🤖 Generated with Claude Code
Note
Medium Risk
Changes hosted vlt behavior and removes a safety gate that refused pins when artifacts were content-encoded; misconfigured CDNs would surface as install-time EINTEGRITY instead of scan-time refusal.
Overview
Hosted vlt pinning no longer runs an artifact preflight that downloaded each granted tarball (vlt-style Accept-Encoding, sha512 check) before rewriting vlt-lock.json. The scan pins hosted URLs without any artifact GETs; verification is deferred to vlt ci / install, relying on the patch server serving unencoded archives via Cache-Control: no-transform.
The redirect_vlt_artifact_unverifiable warning/skip path and socket-patch-core vlt_preflight are removed, along with withhold_everywhere / withheld_from_vlt plumbing in the hosted engine and in-memory addon (which previously treated every vlt dep as offline). Warm-tree heal keys off confirmed vlt uuids instead of preflight-downloaded bytes; missing records now yield an undeterminable reinstall advisory rather than byte comparison.
Docs, CLI_CONTRACT, CI comments, production e2e, and tests drop encoding-refusal branches and assert zero artifact hits on hosted scan/get; backtest still records blocked-by-server-encoding at the probe layer when needed.
Reviewed by Cursor Bugbot for commit e9d8e31. Configure here.
Generated by Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A hosted scan of a vlt project downloaded every granted patch archive the way vlt fetches it, and withheld the dependency (`redirect_vlt_artifact_unverifiable`) when the server re-gzipped it. That guarded against patch.socket.dev's CDN re-encoding archives, which vlt rejects with EINTEGRITY. The patch server has sent archives with `Cache-Control: no-transform` since depscan #26856 and #26867, and production serves them unencoded today. On any mirror that still re-encodes, `vlt ci` fails closed with EINTEGRITY, so nothing installs unpatched bytes. So the scan no longer fetches the archives. It pins vlt dependencies directly, without a full download of every patched package per run. The in-memory hosted engine (the Node addon and `hosted-bundle`) has no network, so it used to withhold every vlt dependency as "offline"; it now pins them the way the disk flow does. The warm-tree heal now checks the Socket-owned lock instances this run confirmed in `vlt-lock.json`. With no patch record and no hidden lock it reports the copy as undeterminable (asking for `vlt ci`) instead of comparing it against downloaded archive bytes. The vlt backtest still probes the live artifact itself: a must-patch hosted cell records `blocked-by-server-encoding` when its probe sees a content-encoded response, without running the CLI. Assisted-by: Claude Code:claude-opus-5-5
|
Labeled Ready for review by the burn-down agent.
Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Final review briefWhat it does. Hosted scans no longer download each vlt artifact before pinning it. That download was a scan-time check for CDN re-encoding, and this PR deletes it along with the Risk: medium. The rewriter edits are mechanical, but a fail-closed gate at scan time is gone. If a mirror re-encodes archives, users now find out as Look here
Verified
Changes I made. None. Open questions (non-blocking)
Auto-merge is armed, so approving sends this straight to the merge queue. #2015 and #2021 are stacked on this PR. Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Main squash-merged this branch's stacked base commits as #2013 and #2015 with review changes, so the merge conflicted in the vlt heal code and tests. Resolved by taking main and re-applying only this PR's own two commits on top, which apply cleanly. Co-Authored-By: Claude <[email protected]>
…pnpm-yarn-vlt The base now carries main's #2013, which deleted the vlt artifact preflight and engine::withhold_everywhere; keep this branch's user-patch gate and drop the preflight it sat beside. In CLI_CONTRACT.md keep the branch's npm-family user-patch prose and table row, and take the base's Eight-cases sentence (with NuGet), Go workspaces case, and the nuget and sbt table rows. Co-Authored-By: Claude <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.