From 2c9c33787fff498c7e0f83248534644296c6c119 Mon Sep 17 00:00:00 2001 From: shoemoney Date: Tue, 23 Jun 2026 03:10:27 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20M7.6=20hardening=20complete=20(fsync,?= =?UTF-8?q?=20DoS=20caps,=20pidfile,=20join=20PoP)=20=F0=9F=9B=A1=EF=B8=8F?= =?UTF-8?q?=F0=9F=93=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1ddb4de..b3fcb94 100644 --- a/README.md +++ b/README.md @@ -488,18 +488,16 @@ flowchart LR | โœ… | **M6.5 โ€” Deploy** ๐Ÿš€ | `devbox deploy ` โ€” apply a snapshot without pushing, `[pinned]` mount; fleet-verified blue/green | | โœ… | **M7 โ€” Hardening** ๐Ÿ›ก๏ธ | `devbox doctor`, `stop`/pidfile, `hook edit/list`, SSE backoff+jitter, **60s rescan fallback** (survives dead/limited inotify watchers โ€” PRD risk #1), share-name guard, release builds โ€” fleet-verified | | โœ… | **M7.5 โ€” Audit hardening** ๐Ÿ” | adversarial security/data-loss audit + fixes: blob-hash **path-traversal** blocked, **download blob-integrity** check, manifest-path **containment**, secret-guard **case-insensitive** + more patterns, **never-clobber** ignored/guarded files, **GC made safe** vs cross-share refcount undercount โ€” all with regression tests, race-clean, fleet-verified | +| โœ… | **M7.6 โ€” Hardening complete** ๐Ÿ›ก๏ธ | ๐Ÿ’ฝ **fsync durability** on atomic writes (power-loss safe), ๐Ÿšช **request size caps + server timeouts** (DoS), ๐Ÿ†” **pidfile PID-reuse guard** (start-time token), ๐Ÿชช **join proof-of-possession** (ed25519 signature, token not burned on a bad request) โ€” fanned out to parallel worktree agents, regression-tested, race-clean, fleet-verified |
-๐Ÿ” hardening still deferred (single-owner v1 threat model) +๐Ÿ”ฎ genuinely v2 (would change the single-owner model) -The post-v1 audit fixed every data-loss + arbitrary-file path; these are the **lower-risk** items left, safe to defer because v1 is **single-owner / all devices trusted** (PRD ยง2): +Everything that protects data or the box is done. What's left only matters under a **different threat model** and is intentionally not in v1: -- ๐Ÿ”ข **Per-`(share,id)` snapshot refcounts** โ€” the GC is already ground-truth-safe; this is the cleaner accounting (needs a live-hub schema migration). -- ๐Ÿ”‘ **Read-side ACL + deny-by-default writes** โ€” only matters once shares span *multiple owners* (v2 teams); today every enrolled device is yours. -- ๐Ÿชช **Join proof-of-possession** (sign a challenge with the device key). -- ๐Ÿšช **Request size limits + server timeouts** (DoS hardening; hub sits behind NPM on the LAN). -- ๐Ÿ’ฝ **fsync durability** on atomic writes (power-loss safety). -- ๐Ÿ†” **pidfile PID-reuse guard**, conflict-copy on explicit `restore`/`deploy`. +- ๐Ÿ”‘ **Read-side ACL + deny-by-default writes** โ€” only meaningful once shares span *multiple owners* (v2 teams); in v1 every enrolled device is yours, so a restrictive ACL would just break multi-device sync. +- ๐Ÿ”ข **Per-`(share,id)` snapshot refcounts** โ€” purely cosmetic now: the GC is ground-truth-safe regardless, and the collision only *under*-counts (never a leak or loss). Not worth a live-hub schema migration. +- ๐Ÿ“ **Conflict-copy on explicit `restore`/`deploy`** โ€” `restore` is a deliberate "go back" where overwriting is the intent; preserving every uncommitted edit as a `.conflict` is a v2 UX call.