From a88056649a76653178d06e2253a61c65ddc89a94 Mon Sep 17 00:00:00 2001 From: shoemoney Date: Tue, 30 Jun 2026 14:24:48 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20sync=20README=20for=20round-4=20status?= =?UTF-8?q?=20errors=20+=20hub=20serve=20hardening=20=F0=9F=A9=BA?= =?UTF-8?q?=F0=9F=9B=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - status now surfaces per-mount last sync error (+ last_err in --json) - serve: version/dashboard in startup log, non-loopback --listen warning, graceful SIGTERM shutdown --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a2bf2bd..d964c12 100644 --- a/README.md +++ b/README.md @@ -376,7 +376,7 @@ container automatically. ๐Ÿช„ | `devbox publish ` | ๐Ÿ“‚ Create a share from a local folder + push it | | `devbox unmount ` | โ๏ธ Stop syncing a mount (files stay on disk) | | `devbox start` / `stop` | โ–ถ๏ธโน๏ธ Run / stop the daemon | -| `devbox status` `[--json]` | ๐Ÿ“Š Device, hub, mounts (with `ro`/`pinned`); `--json` for scripting (prefers live daemon state) | +| `devbox status` `[--json]` | ๐Ÿ“Š Device, hub, mounts (with `ro`/`pinned`), per-mount sync-age **and last sync error** (`โš ๏ธ last sync failed: โ€ฆ`); `--json` exposes `last_err` (prefers live daemon state) | | `devbox log ` `[--json]` | ๐Ÿ•ฐ๏ธ Snapshot history (full ids); `--json` for machine-readable output | | `devbox restore [path]` | โ†ฉ๏ธ Roll back a file or a whole share | | `devbox deploy ` | ๐Ÿš€ Pin a mount to a snapshot โ€” applies it without pushing (blue/green) | @@ -409,6 +409,8 @@ container automatically. ๐Ÿช„ | `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` (startup) | ๐Ÿ›ฐ๏ธ Logs build version + dashboard state; โš ๏ธ warns if `--listen` is non-loopback (plain HTTP โ†’ cleartext bearers without the TLS proxy) | +| `devbox-hub serve` (SIGTERM) | ๐Ÿ›‘ Graceful shutdown โ€” drains in-flight requests via `http.Server.Shutdown`, so the hardened redeploy swaps cleanly | | `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] [--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 |