From 70101e7308eca6ce0917248caf793f05bba68bd8 Mon Sep 17 00:00:00 2001 From: shoemoney Date: Tue, 30 Jun 2026 13:27:32 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20sync=20README=20for=20round-2=20WAN=20h?= =?UTF-8?q?ardening=20+=20new=20flags=20=F0=9F=93=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - conflicts --rm, doctor --json, status sync-age rows - /healthz version, /metrics counters - config.toml: compress now both-ways, sync.ignore_defaults; WAN timeout/retry/parallel note --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 67d1c47..8ce52a5 100644 --- a/README.md +++ b/README.md @@ -380,10 +380,11 @@ container automatically. πŸͺ„ | `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) | -| `devbox conflicts` `[--json]` | πŸ’₯ List conflict copies across all mounts; `--json` emits a JSON array | +| `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` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer (non-zero exit on ❌ β€” cron-friendly) | +| `devbox doctor` `[--json]` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer (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) | | `devbox invite revoke ` | πŸ—‘οΈ Kill a pending invite before it's redeemed (only a caller who could mint it) | @@ -407,7 +408,8 @@ container automatically. πŸͺ„ | `devbox-hub serve --dashboard-token ` | πŸ” Require a token to view the dashboard (recommended for any non-loopback bind) | | `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 | -| `GET /healthz` Β· `GET /readyz` | 🩺 Liveness / readiness probes (readyz pings the DB β†’ 503 if unreachable) for Docker/LB | +| `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) | @@ -527,17 +529,20 @@ Default-blocked: `.env` Β· `.env.*` (except `.env.example`) Β· `*.pem` Β· `*.key ```toml [transfer] max_kbps = 0 # blob transfer cap (KB/s); 0 = unlimited -compress = false # 🌐 gzip blob uploads β€” turn on for devices syncing over a WAN link +compress = false # 🌐 gzip blobs BOTH ways (upload + download) β€” turn on for devices syncing over a WAN link [sync] -rescan_seconds = 60 # watcher-fallback rescan cadence; raise on a huge tree, lower for snappier convergence +rescan_seconds = 60 # watcher-fallback rescan cadence; raise on a huge tree, lower for snappier convergence +ignore_defaults = false # πŸ™ˆ also ignore common junk (node_modules, .git, target, dist, build, .venv, __pycache__, …) [secrets] extra_patterns = ["*.secret", "vault-*"] # additional secret-guard deny patterns ``` > `compress` only gzips a chunk when it actually shrinks (incompressible blobs go raw), and the -> hub hashes the **decompressed** bytes so dedup + integrity are untouched. πŸ—œοΈ +> hub hashes the **decompressed** bytes so dedup + integrity are untouched. πŸ—œοΈ The WAN path is also +> hardened with granular timeouts, automatic retry+backoff on transient blips, and parallel blob +> transfer β€” no flags, always on.