docs: note GET /v1/members + devbox members shipped 👥📖
This commit is contained in:
parent
68d25dfd38
commit
e3265c2ed1
2 changed files with 5 additions and 4 deletions
|
|
@ -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 <share>`**. **Next in M8:** device-facing invites with privilege attenuation (M8a cont.), conflict sidecar + `restore`/`deploy` conflict-copy (M8-3) |
|
||||
|
||||
<details>
|
||||
<summary>🔮 <b>still ahead in M8 / genuinely v2</b></summary>
|
||||
|
|
|
|||
|
|
@ -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 <share>` 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue