From b8b9bd1f22690d0604c869dd304ee4fdee9db355 Mon Sep 17 00:00:00 2001 From: shoemoney Date: Tue, 30 Jun 2026 13:55:24 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20sync=20README=20for=20round-3=20hub=20a?= =?UTF-8?q?dmin=20+=20DR=20+=20doctor=20clock-skew=20=F0=9F=93=9A?= =?UTF-8?q?=F0=9F=92=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - hub: backup (DR), serve --metrics-token / --access-log, device ls [--json] (corrected the old aspirational `device list` row β†’ real `device ls`), gc --keep-days - client: doctor now also warns on clock skew vs the hub (>30s) --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8ce52a5..a2bf2bd 100644 --- a/README.md +++ b/README.md @@ -383,7 +383,7 @@ container automatically. πŸͺ„ | `devbox conflicts` `[--json] [--rm]` | πŸ’₯ List conflict copies across all mounts; `--json` emits a JSON array, `--rm` deletes them (review first!) | | `devbox ignore ` | πŸ™ˆ Append a pattern to `./.devignore` | | `devbox hook edit ` | πŸͺ Scaffold/open a hook in `$EDITOR`; `hook list ` shows installed | -| `devbox doctor` `[--json]` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer (non-zero exit on ❌ β€” cron-friendly); `--json` for monitoring | +| `devbox doctor` `[--json]` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer + **clock skew vs hub** (warns >30s); non-zero exit on ❌ β€” cron-friendly; `--json` for monitoring | | `devbox status` shows sync age | ⏱️ Live status now prints per-mount last-sync age ("synced 12s ago" / "not synced yet") | | `devbox pause [--for ]` / `resume` | ⏸️▢️ Suspend/resume the running daemon's syncing via its control socket; `--for 2h` auto-resumes (M8) | | `devbox invite ` | βœ‰οΈ Mint an invite token granting a role (`--reshare` for `+s`); attenuation-enforced (M8a) | @@ -401,15 +401,18 @@ container automatically. πŸͺ„ |---|---| | `devbox-hub serve --config ` | πŸš€ Start the hub | | `devbox-hub token` | 🎟️ Mint / rotate the join token | -| `devbox-hub device list` / `revoke ` | πŸ“‹βŒ List / revoke devices | +| `devbox-hub device ls` `[--json]` Β· `revoke ` | πŸ“‹βŒ List enrolled devices (id/name/principal/last-seen/revoked) / revoke one | | `devbox-hub readonly ` | πŸ”’ Mark a device read-only on a share | | `devbox-hub member set/rm/list` Β· `principal` | πŸ›‘οΈ Per-share roles + principals (M8a) | +| `devbox-hub backup ` | πŸ’Ύ Disaster-recovery snapshot: consistent DB copy (`VACUUM INTO`) + the blob tree into `` | | `devbox-hub serve --dashboard` | πŸ“Š Serve the live web dashboard (loopback `:8099` by default) | | `devbox-hub serve --dashboard-token ` | πŸ” Require a token to view the dashboard (recommended for any non-loopback bind) | +| `devbox-hub serve --metrics-token ` | πŸ” Require a token for `/metrics` β€” close the unauthenticated leak on a WAN-exposed hub | +| `devbox-hub serve --access-log` | πŸ“ Log one line per request (method, path, status, bytes, addr) for WAN forensics | | `devbox-hub serve --gc-every ` | 🧹 Opt-in in-process periodic GC (off by default; each sweep animates on the dashboard) | -| `devbox-hub gc [--dry-run]` | 🧹 Garbage-collect unreferenced chunks; `--dry-run` previews what would be pruned, deletes nothing | +| `devbox-hub gc [--dry-run] [--keep ] [--keep-days ]` | 🧹 GC unreferenced chunks; `--dry-run` previews, `--keep` keeps N newest/share, `--keep-days` also keeps anything from the last N days | | `GET /healthz` Β· `GET /readyz` | 🩺 Liveness (`/healthz` reports the build version) / readiness (`/readyz` pings the DB β†’ 503 if unreachable) for Docker/LB | -| `GET /metrics` | πŸ“Š Prometheus: gauges (devices/shares/snapshots/chunks) + counters (blob bytes in/out, pushes, conflicts) | +| `GET /metrics` | πŸ“Š Prometheus: gauges (devices/shares/snapshots/chunks) + counters (blob bytes in/out, pushes, conflicts); gate with `--metrics-token` |