devbox/internal/hub
shoemoney 3cfef72a88 harden(M2->M3): parent-aware push + hashed bearers + blob download 🔐
From the M2 ponytail review (the load-bearing findings):
- hub push now enforces parent==head: re-push=idempotent, parent==head=fast-forward,
  else Conflict (never clobbers head) — the foundation M3 conflict resolution needs
- bearers stored as sha256 (like join tokens), no plaintext creds at rest / timing oracle
- GET /v1/blob/{hash} download + client.GetBlob — pull needs it
- randHex propagates crypto/rand errors (no silent low-entropy tokens)
- syncer/publish are head-aware and surface conflicts
- tests: conflict-when-behind (head not clobbered), manifest download+parse

Kept rw-by-default (intentional single-owner v1 per spec §6).
2026-06-22 23:54:55 -05:00
..
blobstore feat(M2): content-addressed BlobStore (disk CAS) 🧊 2026-06-22 23:16:51 -05:00
meta feat(M2): hub server + transport client + push engine + CLI 🛰️ 2026-06-22 23:40:18 -05:00
server.go harden(M2->M3): parent-aware push + hashed bearers + blob download 🔐 2026-06-22 23:54:55 -05:00
server_test.go feat(M2): hub server + transport client + push engine + CLI 🛰️ 2026-06-22 23:40:18 -05:00