You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
client: the bundle pull engine fetches a manifest under the run-wide 1 TiB cap, not the 64 MiB manifest cap #2847
Source: security review at b5e29ae (2026-11-05). Each claim below was re-read on disk by independent verifiers.
PullCtx::fetch_to_memory (crates/client/src/bundle/engine.rs:2160) calls fetch_to_staging(hash, &staging, None, None, ..) under the run-wide max_blob_bytes, then reads the whole file with std::fs::read. manifest_cap_mb is applied only on the -o - route (crates/cli/src/commands/fetch.rs:634) and in the gateway (gateway.rs:2280).
So two commands pay for a whole blob when they meant to fetch a manifest:
decdn quote decdn:<h>/, documented as "a small paid pull" made before "any paid byte" (quote.rs:1-19);
decdn get decdn:<h>/.
Each pays for up to 1 TiB at the default --max-blob-mb, at the holders' rates (no rate ceiling by default), reads the blob into memory and leaves copies on disk before manifest parsing fails. A trailing / on a blob URI is enough to trigger it.
Pass min(run cap, MAX_MANIFEST_BYTES) from fetch_to_memory, so the lanes refuse a larger size claim before any voucher; move the constant into decdn-client
Test: fetch_manifest of a blob over 64 MiB pays for no more than the cap
Activity
fix: cap manifest fetches, clamp outboard reads, and small hardening (#…