devbox/internal/hub
shoemoney 5440054a41 feat(hub): gc --dry-run, dashboard token auth, /healthz + /readyz 🛡️🧹
Three hub-side operability/security closures:

- 🧹 `devbox-hub gc --dry-run`: previews the exact snapshots + chunks the
  sweep would remove (computed from reachability — same set the real run
  deletes) without mutating a thing. Cheap insurance before a destructive GC.
- 🔐 dashboard token auth (`--dashboard-token`): a non-loopback bind was
  unauthenticated (warning only) and leaked device names/activity. Token is
  accepted via ?token=, Authorization: Bearer, or an HttpOnly cookie pinned
  on first ?token= — so EventSource/fetch authenticate with index.html
  untouched. Constant-time compare.
- 🩺 `/healthz` (liveness) + `/readyz` (DB-ping → 503 when unreachable): real
  probes for the compose selfheal profile / LBs, which only had /metrics.

Tests: TestGCDryRun (accurate + non-destructive), TestDashboardAuth.
2026-06-30 12:14:54 -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(hub): gc --dry-run, dashboard token auth, /healthz + /readyz 🛡️🧹 2026-06-30 12:14:54 -05:00
server_test.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -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