devbox/internal/hub
shoemoney 11fe999ca2 feat(transfer): opt-in gzip blob compression for WAN sync 🌐🗜️
The "changed my mind" feature: deferred as YAGNI on a LAN, but the hub is now
WAN-reachable (port-forwarded), so over-the-internet sync is a real path and
compression earns its keep.

- client (settings.transfer.compress, default off): gzip a blob upload only
  when it actually shrinks — incompressible chunks (media, encrypted) go raw so
  we never inflate the wire. Sets Content-Encoding: gzip. Wired into the daemon
  sync loop and the initial `publish` upload.
- hub: decompresses gzip uploads before hashing, so dedup + content-address
  integrity are unchanged. Bomb-safe — caps BOTH the compressed stream
  (MaxBytesReader) and the decompressed size (LimitReader), rejecting a gzip
  header over a non-gzip body.

Tests: client gzip-when-smaller / raw-when-not, hub decompress round-trip +
bad-gzip rejection. go test ./... -race clean, go vet clean.
2026-06-30 12:34:27 -05:00
..
blobstore harden(durability): fsync atomic writes before publishing the rename 💽 2026-06-23 02:59:26 -05:00
dashboard feat(hub): gc --dry-run, dashboard token auth, /healthz + /readyz 🛡️🧹 2026-06-30 12:14:54 -05:00
meta feat(M8a): adversarial auth audit — close +s escalation + add invite revocation 🛡️ 2026-06-23 20:27:12 -05:00
audit_test.go feat(M8a): adversarial auth audit — close +s escalation + add invite revocation 🛡️ 2026-06-23 20:27:12 -05:00
blob_traversal_test.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
events.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
join_pop_test.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
limits_test.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
server.go feat(transfer): opt-in gzip blob compression for WAN sync 🌐🗜️ 2026-06-30 12:34:27 -05:00
server_test.go feat(transfer): opt-in gzip blob compression for WAN sync 🌐🗜️ 2026-06-30 12:34:27 -05:00
sharename.go fix(M7): review fixes — pidfile O_EXCL, publish race, backoff reset 🐛 2026-06-23 01:37:58 -05:00
sharename_test.go fix(M7): review fixes — pidfile O_EXCL, publish race, backoff reset 🐛 2026-06-23 01:37:58 -05:00