From e3265c2ed159eb01d45f612a4c7c3503409e9c17 Mon Sep 17 00:00:00 2001 From: shoemoney Date: Tue, 23 Jun 2026 11:23:52 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20note=20GET=20/v1/members=20+=20devbox?= =?UTF-8?q?=20members=20shipped=20=F0=9F=91=A5=F0=9F=93=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- docs/V2-SPEC.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c655c3e..e30c7fd 100644 --- a/README.md +++ b/README.md @@ -534,7 +534,7 @@ flowchart LR | โœ… | **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 | -| ๐Ÿ”จ | **M8 โ€” v2 Foundations** ๐Ÿ—๏ธ | ๐Ÿ”‘ **schema migration runner** (`PRAGMA user_version`, transactional, `VACUUM INTO` backup, refuses a newer DB) ยท ๐Ÿ”ข **per-`(share,id)` snapshots** (fixes the cross-share refcount undercount; GC + head-backfill reworked) ยท ๐ŸŽ›๏ธ **daemon control socket** (Unix socket, HTTP/1.1, `0600`) wiring `devbox pause`/`resume` + live-socket-aware `status` ยท ๐Ÿ‘ฅ **M8a: principals + per-share roles + write enforcement** (`devbox-hub member`/`principal`; legacy shares = v1, first grant flips to deny-by-default; roleโ‰ฅeditor AND the writable clamp). **Both migrations verified on a copy of the real `.10` hub DB** (counts preserved, 3 legacy heads repaired, chains 0โ†’1โ†’2). **Next in M8:** conflict sidecar + `restore`/`deploy` conflict-copy (M8-3), device-facing invites + `GET /members` (M8a cont.) | +| ๐Ÿ”จ | **M8 โ€” v2 Foundations** ๐Ÿ—๏ธ | ๐Ÿ”‘ **schema migration runner** (`PRAGMA user_version`, transactional, `VACUUM INTO` backup, refuses a newer DB) ยท ๐Ÿ”ข **per-`(share,id)` snapshots** (fixes the cross-share refcount undercount; GC + head-backfill reworked) ยท ๐ŸŽ›๏ธ **daemon control socket** (Unix socket, HTTP/1.1, `0600`) wiring `devbox pause`/`resume` + live-socket-aware `status` ยท ๐Ÿ‘ฅ **M8a: principals + per-share roles + write enforcement** (`devbox-hub member`/`principal`; legacy shares = v1, first grant flips to deny-by-default; roleโ‰ฅeditor AND the writable clamp). **Both migrations verified on a copy of the real `.10` hub DB** (counts preserved, 3 legacy heads repaired, chains 0โ†’1โ†’2). ๐Ÿ‘€ **read side: `GET /v1/members` + `devbox members `**. **Next in M8:** device-facing invites with privilege attenuation (M8a cont.), conflict sidecar + `restore`/`deploy` conflict-copy (M8-3) |
๐Ÿ”ฎ still ahead in M8 / genuinely v2 diff --git a/docs/V2-SPEC.md b/docs/V2-SPEC.md index 518808d..99906c2 100644 --- a/docs/V2-SPEC.md +++ b/docs/V2-SPEC.md @@ -141,9 +141,10 @@ The highest-leverage theme โ€” and the **membership layer E2E + P2P both need un > owner); the first `devbox-hub member set` flips it to **explicit/deny-by-default**. The push gate now > enforces `EffectiveRole โ‰ฅ editor AND the writable clamp` (legacy shares reduce to the v1 writable bit > exactly). Admin populate path: `devbox-hub member set/rm/list` + `principal`. Verified chaining 0โ†’1โ†’2 on -> a copy of the real hub DB. **Still ahead in M8a:** the device-facing **invite** flow (bind `(principal, -> share, role)` via the existing `/v1/join` PoP) + `GET /v1/members` / `POST /v1/members/role` endpoints + -> `+s` reshare delegation. **Read-side gating stays M9.** +> a copy of the real hub DB. โœ… Plus the read side: `GET /v1/members` + a `devbox members ` client +> command. **Still ahead in M8a:** the device-facing **invite** flow (bind `(principal, share, role)` via the +> existing `/v1/join` PoP, with privilege *attenuation* โ€” a member can only grant โ‰ค their own role, and only +> with `+s`) + `POST /v1/members/role`. **Read-side gating stays M9.** - **Principals.** Insert a *principal* (person/account/service) above the device: `devices.principal_id`. The **device stays the auth + revocation unit** (its ed25519 key never