devbox/internal/hub
shoemoney 04f94d7730 harden(auth): require proof-of-possession on join 🪪🔐
The device id is derived from the pubkey in JoinRequest, but the hub never
checked the joiner actually held that key — anyone with a token could enroll
claiming another device's identity. Now the client signs JoinChallenge(token,
pubkey) with its ed25519 private key and the hub verifies it (ed25519.Verify)
BEFORE redeeming the token — so a bad request can't burn a legitimate one-time
token either. proto gains a Signature field + the shared JoinChallenge helper.
Regression test: garbage/missing/wrong-key sigs all 401, token survives, valid
join enrolls.
2026-06-23 03:08:23 -05:00
..
blobstore harden(durability): fsync atomic writes before publishing the rename 💽 2026-06-23 02:59:26 -05:00
meta fix(dataloss): make hub GC safe against cross-share refcount undercount 🩸🗑️ 2026-06-23 02:35:43 -05:00
blob_traversal_test.go harden(auth): require proof-of-possession on join 🪪🔐 2026-06-23 03:08:23 -05:00
events.go feat(M3): live two-way sync — SSE fan-out + daemon + mount 🔄 2026-06-23 00:12:39 -05:00
join_pop_test.go harden(auth): require proof-of-possession on join 🪪🔐 2026-06-23 03:08:23 -05:00
limits_test.go harden(dos): bound request bodies + add hub server timeouts 🚪🛡️ 2026-06-23 02:59:53 -05:00
server.go harden(auth): require proof-of-possession on join 🪪🔐 2026-06-23 03:08:23 -05:00
server_test.go harden(auth): require proof-of-possession on join 🪪🔐 2026-06-23 03:08:23 -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