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
bundle: harden the pull's destination paths, Ctrl-C window and region filter #2439
Review of #2436 found four gaps in the bundle pull. All four exist on main today (crates/cli/src/commands/bundle_pull.rs); #2436 only moves the code into decdn_client::bundle. They matter more now that the engine is a public SDK API that embedders call directly.
Destination containment is lexical.safe_join rejects .., absolute and prefix components, but writes follow an existing symlinked ancestor. If out/link -> /outside exists, the accepted entry link/file lands under /outside (create_dir_all, the temp file and the rename all follow the link). A manifest cannot create a symlink, so the link has to exist locally first. The containment should still hold against it: walk the destination with no-follow or openat-style resolution, and handle races.
Ctrl-C is not watched during the manifest fetch.Interrupt::watch starts after the --hash manifest is obtained, so a Ctrl-C during that paid fetch takes the default exit. The fetch's queued watermark writes never settle, and the next run resyncs the lane. The watch should start before the manifest fetch, and the fetch should be cancellable.
Engine-owned paths are not reserved.plan_slots reserves only .decdn-partial/. A manifest entry may name .decdn-manifest.json (the skip-cache) or a path under .decdn-bundles/ (the manifest cache). The pull then writes an entry where its own state lives: the skip-cache flush can overwrite the landed file, or the entry can corrupt the cache. Reject every engine-owned path, as for the staging dir.
The bundle path ignores [client] region_allowlist.decdn fetch filters discovery candidates by the allowlist and widens back when too few remain (select_with_widening). A bundle pull samples the run's registry list region-first (entry_candidates) and never applies the allowlist. feat(client): add a public bundle pull, decdn_client::bundle #2436 documents this on PullSite::region_allowlist. Apply it with the same widening rule.
Activity
fix(client): skip a present entry before the containment check, and f…
fix(client): land bundle entries beneath the output root and apply th…