devbox/internal/syncer
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
..
deploy_test.go feat(M6.5): devbox deploy — pin a mount to a snapshot (no push) 🚀 2026-06-23 01:17:20 -05:00
fsync_test.go harden(durability): fsync atomic writes before publishing the rename 💽 2026-06-23 02:59:26 -05:00
hooks_integration_test.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00
preserve_ignored_test.go fix(dataloss): don't clobber a .devignore'd/guarded local file on pull 🩸🛟 2026-06-23 02:28:51 -05:00
pull.go harden(durability): fsync atomic writes before publishing the rename 💽 2026-06-23 02:59:26 -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 harden(auth): require proof-of-possession on join 🪪🔐 2026-06-23 03:08:23 -05:00