devbox/internal/syncer
shoemoney c864461fa1 fix(sec): contain manifest paths + verify blob integrity on download 🛡️🧊
Two ways a buggy/malicious hub could corrupt the local tree:
- writeEntry/deleteFile joined hub-supplied Entry.Path into root with no
  containment check, so '../../.ssh/authorized_keys' wrote/deleted OUTSIDE the
  mount. New safeJoin() uses filepath.IsLocal to refuse absolute/.. /escaping
  paths before any write or delete.
- GetBlob returned bytes with only an HTTP-status check. Blobs (chunks AND
  manifests) are content-addressed, so now verify chunk.Hash(body)==hash —
  a corrupt/truncated transfer or hostile hub can't write wrong content
  undetected. (manifest ID == chunk.Hash(Marshal()), so the check holds there.)
Regression tests for both.
2026-06-23 02:24:32 -05:00
..
deploy_test.go feat(M6.5): devbox deploy — pin a mount to a snapshot (no push) 🚀 2026-06-23 01:17:20 -05:00
hooks_integration_test.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00
pull.go fix(sec): contain manifest paths + verify blob integrity on download 🛡️🧊 2026-06-23 02:24:32 -05:00
pull_test.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00
restore_test.go feat(M6): versioning — log, restore, hub gc 🕰️ 2026-06-23 01:01:54 -05:00
safejoin_test.go fix(sec): contain manifest paths + verify blob integrity on download 🛡️🧊 2026-06-23 02:24:32 -05:00
syncer.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00
syncer_test.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00