diff --git a/Dockerfile b/Dockerfile index e1cba04..05e6b2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # Run: docker run -d --restart unless-stopped -p 8088:8088 -v devbox:/data devbox-hub # (or just `docker compose up -d` — see docker-compose.yml) -FROM golang:1.26-alpine AS build +FROM golang:1.27.4-alpine AS build WORKDIR /src # cache deps separately from source for faster rebuilds COPY go.mod go.sum ./ diff --git a/README.md b/README.md index e8ff1d1..fbcbf57 100644 --- a/README.md +++ b/README.md @@ -1,742 +1,305 @@ -
-devbox +# 📦 devbox -### 📦 **Continuous file sync for developers — like Dropbox, but it respects your `.devignore`, refuses to leak secrets, runs your hooks, and keeps Git-like history.** 📦 +### Your working tree, everywhere. Now with built-in Tailscale. 🔒 -
+Continuous file sync for developers: private networking, selective mounts, +conflict copies, snapshot history, and a secret guard that keeps credentials home. -![status](https://img.shields.io/badge/status-%F0%9F%9A%80%20v2%20P1%20shipped%20%C2%B7%20public-brightgreen?style=for-the-badge) -![release](https://img.shields.io/badge/release-%F0%9F%93%A6%20latest%20live-success?style=for-the-badge) -![dashboard](https://img.shields.io/badge/live%20dashboard-%F0%9F%93%8A%20built--in-ff3df0?style=for-the-badge) -![install](https://img.shields.io/badge/install-curl%20%7C%20sh%20%C2%B7%20go%20install-blueviolet?style=for-the-badge) -![language](https://img.shields.io/badge/Go-1.26%2B-00ADD8?style=for-the-badge&logo=go&logoColor=white) -![license](https://img.shields.io/badge/license-AGPLv3-blue?style=for-the-badge) -![platforms](https://img.shields.io/badge/Linux%20%C2%B7%20macOS%20%C2%B7%20Windows-✓-success?style=for-the-badge) +**Linux · macOS · Windows · Raspberry Pi** -![conflicts](https://img.shields.io/badge/conflicts-never%20lose%20a%20byte-brightgreen?style=flat-square) -![secrets](https://img.shields.io/badge/secrets-never%20leave%20home-critical?style=flat-square) -![hub](https://img.shields.io/badge/hub-self--hostable-9cf?style=flat-square) -![dedup](https://img.shields.io/badge/transfer-BLAKE3%20%2B%20FastCDC-purple?style=flat-square) - -
- - - -``` - ╔═══════════════════════════════════════════════════════════╗ - ║ ┌─┐ ┌─┐ ┬ ┬ ┌┐ ┌─┐ ┬ ┬ ║ - ║ ││─┤ ├┤ │ │ ├┴┐│ │ │┴┤ sync your dev tree, ║ - ║ ┴─┘─┘└─┘ └──┘ └─┘└─┘ ┴ ┴ skip the junk, keep history ║ - ╚═══════════════════════════════════════════════════════════╝ -``` - -> [!NOTE] -> 🎉 **devbox v1 is feature-complete** (M0–M7.6, **fleet-verified on real hardware** — -> Macs + arm64 Pis live-syncing through a hub on a NAS) **and v2 has begun.** 🔮 -> The [v1 spec](docs/superpowers/specs/2026-06-22-devbox-design.md) is fully implemented; -> the [v2 spec](docs/V2-SPEC.md) sequences M8→M11 — **M8 foundations are landing now.** -> Star/watch and follow along. ⭐ -> -> | Milestone | Status | -> |---|---| -> | M0 — Skeleton (CLI, identity, config) | ✅ done | -> | M1 — Watch · `.devignore` · secret-guard · chunking · manifest | ✅ done | -> | M2 — Hub + one-way push (deployed + verified cross-machine 🛰️) | ✅ done | -> | M3 — Two-way sync · SSE fan-out · 3-way conflict copies · live daemon | ✅ done — **two real Macs sync live through the hub** 🔄 | -> | M4 — Read-only mounts · **sub-path mounts** · bandwidth cap | ✅ done — fleet-verified | -> | M5 — Lifecycle hooks (pre/post push/pull, on-conflict) | ✅ done — **`post-pull` ran on a real fleet node** 🪝 | -> | M6 — Versioning: `log` / `restore` + hub GC | ✅ done — restore reverted a file on the fleet 🕰️ | -> | M6.5 — `devbox deploy` (pin a mount to a snapshot, no push) | ✅ done — **blue/green-deployed v1 on a real box while head stayed v2** 🚀 | -> | M7 — Hardening: `devbox doctor`, reconnect/backoff, rescan fallback, name-clash, release builds | ✅ done — **doctor/stop/hooks + share-name guard + dead-watcher rescan fleet-verified** 🛡️ | -> | M7.5 — Adversarial security/data-loss audit + fixes (path-traversal, blob integrity, never-clobber, safe GC) | ✅ done — **26 findings, all promise-breakers fixed, race-clean** 🔐 | -> | M7.6 — Hardening: fsync durability · DoS caps + timeouts · pidfile PID-reuse guard · join proof-of-possession | ✅ done — fleet-verified on arm64 🛡️ | -> | 🔮 **M8 — v2 Foundations**: migration runner · per-`(share,id)` snapshots · control socket + `pause`/`resume` · **M8a teams** · `restore` byte-safety | ✅ **justified-now scope complete & fleet-verified** (Pi `.13` owner invited an editor, Pi `.15` redeemed & pushed); 3 migrations verified on a copy of the real hub DB. M9–M11 stay demand-driven 🏗️👥 | - ---- - -## 📑 Table of Contents - -| | | | -|---|---|---| -| 🤔 [Why devbox?](#-why-devbox) | 🧠 [Core Concepts](#-core-concepts) | 🏗️ [Architecture](#%EF%B8%8F-architecture) | -| 🔄 [How Sync Works](#-how-sync-works) | 💥 [Conflicts](#-conflicts-never-lose-a-byte) | ⚡ [Install & Run](#-install--run) | 🚀 [Quick Start](#-quick-start) | -| 🧰 [CLI Reference](#-cli-reference) | 📊 [Live Dashboard](#-live-dashboard--watch-your-fabric-breathe) | 🪝 [Hooks](#-hooks) | 🙈 [.devignore & Secrets](#-devignore--secret-guard) | -| 🕰️ [Versioning & Deploy](#%EF%B8%8F-versioning--deploy) | 🖥️ [Cross-Platform](#%EF%B8%8F-cross-platform) | 🔐 [Security & Durability](#-security--durability) | -| 🗺️ [Roadmap](#%EF%B8%8F-roadmap) | ⚖️ [License & Open-Core](#%EF%B8%8F-license--open-core) | 🙌 [Contributing](#-contributing) | - ---- - -## 🤔 Why devbox? - -You've got a MacBook, a 40-node Pi cluster, and a TrueNAS box. You want your **active working -tree** mirrored across them — *right now*, automatically — without committing half-done work. - -Your options today all hurt: - - - - - - - - - - - - - - - - - - - - - -
ToolThe pain 😖
☁️ Dropbox / iCloudSyncs everything blindly — chokes on node_modules, happily uploads your .env, thrashes on build artifacts.
🐙 GitManual. Commit-based. Not built to live-mirror an in-progress working tree. Branching ≠ syncing.
📁 rsync / scpOne-shot, one-direction, no history, no hooks, no conflict safety. You babysit it.
🔁 SyncthingGreat P2P sync — but no .devignore dev-ergonomics, no lifecycle hooks, no snapshot/deploy story.
- -### ✨ devbox is the missing layer - -
- -| 🎯 | Feature | -|:---:|:---| -| 🔄 | **Continuous bidirectional sync** across all your machines | -| 🙈 | **`.devignore`** (gitignore syntax) — skip `node_modules`, `dist`, the junk | -| 🔐 | **Default-on secret guard** — *hard-refuses* to upload `.env`, keys, secrets | -| 🪝 | **Lifecycle hooks** — `pnpm install` / restart a container when files land | -| 🕰️ | **Git-like snapshots** per share — roll back any file, any time | -| 🎚️ | **Selective mounts** — cherry-pick a share, or *just one sub-path*, per machine | -| 💥 | **Conflict-safe** — never blocks, never asks, **never loses a byte** | -| 🏠 | **Self-hostable** — one Go binary on your Pi/TrueNAS, no SaaS required | -| 🌍 | **Cross-platform** — Linux · macOS · Windows | +[Install](#-install) · [Tailscale quick start](#-tailscale-quick-start) · [Commands](#-commands) · [Configuration](#-configuration) · [Build](#-build-and-release)
--- -## 🧠 Core Concepts +## 🔒 Built-in Tailscale, one hub binary -```mermaid -mindmap - root((📦 devbox)) - 🛰️ Hub - publishes shares - stores chunks + manifests CAS - brokers change events - one owner · many devices - 💻 Device - Ed25519 identity - joins with a token - runs one daemon - 📂 Share - named tree projects/ repos/ services/ - unit of snapshot history - 🔗 Mount - share + subpath to local path - read-write or read-only - 📸 Snapshot - immutable BLAKE3 manifest - per share history +Run your own sync hub on a NAS, Pi, server, or spare computer. **The hub can join +its tailnet directly** using embedded [Tailscale (`tsnet`)](https://tailscale.com/docs/features/tsnet). +No separate Tailscale installation on the hub, root privileges, TUN device, +router port forwarding, or reverse proxy is required for this mode. + +```bash +devbox-hub serve --data ./hub-data --tailscale --tailscale-hostname devbox-hub ``` -| Term | What it is | -|---|---| -| 🛰️ **Hub** | The server. Publishes shares, stores content-addressed chunks + manifests, brokers events. One owner, many devices. Self-hosted single binary. | -| 💻 **Device** | A machine with an Ed25519 identity, joined to a hub. Runs one daemon (`devboxd`). | -| 📂 **Share** | A named top-level tree on the hub (`projects`, `repos`, `services`). The unit of permission & history. | -| 🔗 **Mount** | A device-side binding: `share[/subpath] → localpath`, read-write or read-only. One daemon watches many. | -| 📸 **Snapshot** | An immutable, per-share manifest version (id = BLAKE3 of the manifest). | +On first launch, open the authentication URL printed in the terminal. Once +connected, the hub prints its private endpoint: ---- - -## 🏗️ Architecture - -```mermaid -flowchart LR - subgraph LAP["💻 MacBook"] - D1["devboxd 🛡️"] - M1["📂 projects/"] - M2["📂 repos/"] - end - - subgraph HUB["🛰️ Hub · Pi / TrueNAS"] - WS{{"🔌 WebSocket\nchange events"}} - HTTP{{"🌐 HTTP\nblob GET/PUT"}} - CAS[("🧊 CAS\nchunks + manifests\nBLAKE3")] - DB[("🗄️ SQLite WAL\nshares · snapshots\ndevices · tokens")] - MET["📊 /metrics + status"] - end - - subgraph PI["🍓 pi-07"] - D2["devboxd 🛡️"] - M3["📂 projects/p22/backend\n(read-only → /var/www)"] - end - - M1 & M2 -->|"events"| WS - M1 & M2 -->|"blobs"| HTTP - WS --> CAS - HTTP --> CAS - CAS --- DB - WS -->|"events"| D2 - HTTP -->|"blobs"| D2 - D2 --> M3 - - classDef hub fill:#0d1117,stroke:#4F9CF9,stroke-width:2px,color:#fff; - class HUB,WS,HTTP,CAS,DB,MET hub; +```text +http://devbox-hub..ts.net:8080 ``` -> 💡 **Why two channels?** WebSocket for live events (tiny, ordered) + **stateless HTTP for -> blobs** (`GET /blob/` → range/resume/caching for free). Same TLS endpoint, same token. -> Pure-WebSocket would force us to reinvent resumable transfer over a socket — *more* code. +**The `http://` endpoint travels inside Tailscale's encrypted network.** Embedded +mode exposes the hub API only through its Tailscale node; it does not also open +the API port on your machine's LAN or public interfaces. Tailnet access rules +still apply, and devbox's own join tokens and bearer authentication remain required. ---- +**This release embeds Tailscale in the hub.** Client machines need the regular +Tailscale app, connected to a tailnet that can reach the hub. The `devbox` client +uses the private URL through that connection. Embedded client networking is not +included in this release. The embedded hub is a separate Tailscale device, even +if its host machine already runs Tailscale. -## 🔄 How Sync Works +## ✨ Why devbox? -```mermaid -sequenceDiagram - autonumber - participant FS as 📁 Filesystem - participant D as 🛡️ devboxd - participant H as 🛰️ Hub - participant P as 🍓 Peer +Git records the work you choose to commit. devbox continuously mirrors the +working files you are editing across your machines, including uncommitted work. - FS->>D: ✏️ file changed (fsnotify, debounced ~300ms) - D->>D: 🙈 .devignore + 🔐 secret-guard filter - D->>D: 🧩 FastCDC chunk → BLAKE3 → manifest diff - D->>D: 🪝 pre-push hook (can veto 🛑) - D->>H: ⬆️ upload missing chunks (HTTP, bw-capped) - H->>H: 📸 append snapshot, advance share HEAD - H-->>D: ✅ ack - D->>D: 🪝 post-push hook - H->>P: 🔔 change event (WebSocket) - P->>P: 🪝 pre-pull hook (can veto 🛑) - P->>H: ⬇️ fetch missing chunks (HTTP) - P->>P: 🧱 reassemble → ⚛️ atomic rename into place - P->>P: 🪝 post-pull hook (pnpm install / restart 🚀) -``` +- **Live, bidirectional sync.** A filesystem watcher sends changes; peers receive + them through a persistent event stream. Periodic rescans catch missed events. +- **Developer-friendly filtering.** `.devignore` uses gitignore syntax. Optional + default ignores skip caches, dependencies, and build output. +- **Secret guard.** Default deny patterns block `.env` files, private keys, and + credential paths independently of `.devignore`; add your own patterns too. +- **Conflict copies.** Concurrent edits preserve losing file versions as + `.conflict-*` copies instead of silently discarding them. +- **Efficient transfers.** FastCDC chunking, BLAKE3 content addressing, deduplication, + optional gzip, and bandwidth caps reduce repeated uploads. +- **Selective mounts.** Mount a whole share or one subdirectory, read-write or + read-only. Per-device exclusions keep local choices local. +- **Snapshots and deployment.** Browse history, restore a file or tree, or pin a + mount to a snapshot for a deployment. +- **Hooks and visibility.** Run lifecycle hooks, inspect JSON status, diagnose + problems with `doctor`, and enable the hub's built-in live dashboard. -A **read-only** mount skips steps 1–8 (it never pushes) but still receives and applies inbound -changes. 🔒 +## ⚡ Install ---- - -## 💥 Conflicts: Never Lose a Byte - -devbox is **Dropbox-easy** (never nags you mid-work) **and** data-loss-proof. Here's the magic: -the hub keeps a **linear HEAD per share**, and every push declares the snapshot it was based on. - -```mermaid -flowchart TD - START([📤 push arrives]) --> Q{parent == HEAD?} - Q -->|✅ yes| FF["⏩ fast-forward\nadvance HEAD"] --> DONE([🎉 done]) - Q -->|❌ no| THREE["🔱 per-file 3-way\nvs common ancestor"] - THREE --> ONLY{changed by\nonly the pusher?} - ONLY -->|yes| CLEAN["✨ applies cleanly"] --> DONE - ONLY -->|both sides| CONF["💥 CONFLICT"] - CONF --> KEEP["👑 first-to-land stays canonical"] - CONF --> COPY["📝 loser saved as\nfoo.conflict-laptop-1719.go"] - CONF --> HOOK["🔔 on-conflict hook fires"] - KEEP & COPY & HOOK --> SAFE([🛟 zero data lost]) - - style CONF fill:#5a1e1e,stroke:#ff6b6b,color:#fff - style SAFE fill:#1e5a2e,stroke:#51cf66,color:#fff - style DONE fill:#1e5a2e,stroke:#51cf66,color:#fff -``` - -
-📖 The classic "laptop was offline" scenario — click to expand - -
- -Both machines synced at snapshot `S3`, both have `foo.go` v1: - -1. 🔌 **Laptop goes offline**, edits `foo.go` → **v2-laptop** (queued, parent still `S3`). -2. 🍓 **Pi (online)** edits the same `foo.go` → **v2-pi**, pushes. Hub HEAD `S3 → S4`. Pi's wins canonical. -3. 🔌 **Laptop reconnects**, pushes with `parent=S3` — but HEAD is `S4`. `parent ≠ HEAD` → conflict path. -4. 🔱 Both changed `foo.go` since `S3` → real conflict. -5. 🛟 **Result, nothing destroyed:** both machines end up with - `foo.go` = **v2-pi** (canonical) **and** `foo.conflict-laptop-1719.go` = **v2-laptop** beside it. - -The offline edit is **never lost** — it just lands as a clearly-named sibling. 🎯 - -
- -**Conflict rules at a glance:** - -| Situation | Outcome | -|---|---| -| 🤝 Both edit same file | First-to-land canonical; loser → `.conflict--` copy | -| 🗑️ One deletes, one edits | **Edit always wins** — a delete has no bytes to lose | -| 🔤 Rename | Free — old-gone + new-added; content-addressed = zero re-transfer | -| 🔒 Read-only mount about to clobber a local edit | Local stashed as `.conflict-local-` first | -| 👀 You find out via | `devbox status` badge · `on-conflict` hook · `devbox conflicts` list | - -> 🚫 **No blocking prompts.** A headless daemon can't prompt you, and nagging would break the -> whole "Dropbox-easy" promise. You get told; you choose when to look. - ---- - -## ⚡ Install & Run - -**Client (macOS / Linux)** — one line. Detects your platform, lets you pick where the binary lives, and offers a **keep-alive auto-restart service** (launchd `KeepAlive` on mac, systemd `Restart=always` on Linux): +**Linux / macOS client:** ```bash curl -fsSL https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.sh | sh -# non-interactive: DEVBOX_BIN_DIR=~/.local/bin DEVBOX_SERVICE=1 sh install.sh -# also install the hub: sh install.sh --hub ``` -
🪟 Windows · 🍎 macOS Full Disk Access · 🛠️ knobs - -- **Windows:** `irm https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.ps1 | iex` — copies `devbox.exe`, adds it to PATH, and (optionally) a restart-on-failure **Scheduled Task** at logon. Notes Controlled Folder Access if you have it on. -- **From Go (have a toolchain):** `go install github.com/shoemoney/devbox/cmd/devbox@latest` (hub: `…/cmd/devbox-hub@latest`). -- **macOS Full Disk Access:** to sync `~/Desktop`, `~/Documents`, `~/Downloads`, or **iCloud**, grant Full Disk Access to the `devbox` binary (System Settings → Privacy & Security → Full Disk Access). `devbox doctor` tests your actual mounts and tells you the exact fix + a deep link — a background daemon can't show the per-folder prompt, so without it those mounts silently fail. -- **Knobs:** `--bin-dir DIR` · `--hub` · `--service` / `--no-service` · `--release-url URL` (or the `DEVBOX_*` env equivalents). No prebuilt release? The script falls back to a local `dist/` (run `scripts/build-release.sh`) or `go build`. -- **Service control:** `systemctl --user {status,disable} devbox` (Linux) · `launchctl unload ~/Library/LaunchAgents/ai.shoemoney.devbox.plist` (mac). - -
- -**Hub on a NAS (TrueNAS / Synology / unRAID / any Docker host)** — self-healing container, drop-in: +**Install the hub as well:** ```bash -docker compose up -d --build # hub on :8088, data persisted, restart: unless-stopped -docker compose exec hub devbox-hub token --data /data # mint a join token -# live dashboard: uncomment the :8099 port + --dashboard command in docker-compose.yml -# stronger self-heal (restart on unhealthy): docker compose --profile selfheal up -d +curl -fsSL https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.sh -o install.sh +sh install.sh --hub --no-service ``` -The image is a tiny (~32 MB) static, non-root Alpine build — `Dockerfile` + `docker-compose.yml` at the repo root. +`--service` installs a keep-alive service for the **client sync daemon**. Run the +hub separately, or configure its own service with the `serve` arguments below. -
-🔒 Production: TLS + safe upgrades +**Windows (PowerShell):** -**Put the hub behind TLS.** The hub speaks plain HTTP and the bearer token + your file bytes cross the wire in the clear — front it with a reverse proxy (nginx / Caddy / Nginx Proxy Manager) and terminate TLS there (the API is bearer-authed). Two settings a *sync* hub needs in the proxy: - -```nginx -location / { - proxy_pass http://:8088; - client_max_body_size 0; # large blob uploads — never cap them - proxy_buffering off; # stream the /v1/events SSE to clients - proxy_read_timeout 3600s; # long-lived event stream -} +```powershell +irm https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.ps1 | iex ``` -Devices then `devbox join https://hub.example.com ` — Go's client does TLS natively. -**Upgrade safely.** The hub DB is the canonical index to every share's history, so don't hot-swap the binary. `deploy/redeploy-hub.sh` runs the never-YOLO pipeline: **migration dry-run on a *copy* of live data** (`scripts/verify-hub-migration.sh`) → **auth smoke** the new binary in a throwaway instance (`scripts/hub-auth-smoke.sh`) → back up binary + DB → swap → verify the new code is live → **auto-rollback** on any failure. (`--gc-every ` self-maintains so blobs don't accumulate.) -
+Release downloads include both `devbox` and `devbox-hub` for Linux amd64/arm64/arm, +macOS amd64/arm64, and Windows amd64, plus `SHA256SUMS`. The shell installer +supports amd64 and arm64; download the Linux arm binaries directly for 32-bit Pi OS. +Use `--release-url` / `DEVBOX_RELEASE_URL` to select a versioned release. ---- +## 🚀 Tailscale quick start -## 🚀 Quick Start - -> ✅ *Every command below is implemented and fleet-tested. Build with `scripts/build-release.sh`.* +### 1. Start your private hub ```bash -# 🛰️ On your hub (Pi / TrueNAS / NAS) -devbox-hub serve --data /srv/devbox --listen 0.0.0.0:8088 -devbox-hub token # prints a one-time join token +devbox-hub serve --data ./hub-data --tailscale --tailscale-hostname devbox-hub +``` -# 💻 On your laptop -devbox join http://hub.lan:8088 # enroll this machine -devbox publish ~/Projects projects # create a share from a folder -devbox start # live-sync daemon (foreground) +Authenticate using the terminal's login URL. The default startup deadline is two +minutes; allow longer with `--tailscale-start-timeout 5m` if needed. Keep the hub +running and use another terminal for administrative commands. -# 🍓 On another machine — clone the share and keep it in sync -devbox join http://hub.lan:8088 -devbox mount projects ~/Projects # clone + register the mount -devbox start +For unattended first enrollment, set **`TS_AUTHKEY`** in the service environment +or a protected environment file. Do not commit it or put it in command-line +arguments. Once enrolled, the persisted state reconnects without the auth key. -# 🚀 A read-only deploy box — pulls, never pushes its runtime cruft back up -devbox mount api /var/www/api --ro +The embedded node stores its identity under **`/tailscale`**, with a private +state directory. Keep this directory across upgrades and include it in protected +filesystem backups. Do not share one state directory between running hub processes +or clone the same node identity onto multiple hosts. `devbox-hub backup` backs up +the hub database and blobs; separately preserve the Tailscale state directory. + +### 2. Enroll the first client + +On the hub machine, mint a one-time token: + +```bash +devbox-hub token --data ./hub-data +``` + +On your client, connect the Tailscale app, then use the endpoint printed by the hub: + +```bash +devbox join http://devbox-hub..ts.net:8080 +devbox publish ~/Projects projects devbox start ``` -That's it. ✨ Edit on your laptop → it lands on the Pi in near-real-time, `node_modules` stays -home, your `.env` *never leaves the building*, and `post-pull` can `pnpm install` + restart your -container automatically. 🪄 +The hostname is an example: Tailscale may assign a different name when a device +with that name already exists. Use the actual printed endpoint. MagicDNS must be +available on clients to use its hostname; the hub's Tailscale IP works too. ---- +### 3. Mount it on another machine -## 🧰 CLI Reference - -
-💻 Device commands - -| Command | What it does | -|---|---| -| `devbox setup` | 🧭 Step-by-step first-run wizard (also auto-offered once on a fresh machine; opt out with "don't ask again") | -| `devbox join ` | 🎟️ Enroll this device against a hub | -| `devbox mount ` | 🔗 Mount a share into a local dir (clone + sync) | -| `devbox mount --ro` | 🔒 Mount **read-only** (pull only, never push) | -| `devbox mount … --exclude ` | 🙈 Device-local ignore (gitignore syntax, repeatable) layered on the shared `.devignore` — e.g. skip a local build dir | -| `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`), per-mount sync-age **and last sync error** (`⚠️ last sync failed: …`); ⚠️ says when the **daemon isn't running** (no silent stale state); `--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) | -| `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` (rejects a pattern that doesn't compile) | -| `devbox hook edit ` | 🪝 Scaffold/open a hook in `$EDITOR`; `hook list ` shows installed | -| `devbox doctor` `[--json]` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer + **clock skew vs hub** (warns >30s) + **free disk** on each mount/config dir (warns <1 GiB); 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) | -| `devbox members ` | 👥 Show who can access a share, or "legacy share" (M8a) | -| `devbox-hub member set/rm/list` · `principal` | 🛡️ Hub-side role admin (M8a) | -| `devbox peers` | 🌐 *Planned — needs a hub peers endpoint (M10)* | - -
- -
-🛰️ Hub commands (run on the hub host) - -| Command | What it does | -|---|---| -| `devbox-hub serve --config ` | 🚀 Start the hub | -| `devbox-hub token` | 🎟️ Mint / rotate the join token | -| `devbox-hub device ls` `[--json]` · `revoke ` | 📋❌ List enrolled devices (id/name/principal/last-seen/revoked) / revoke one | -| `devbox-hub share ls` `[--json]` | 📑 List shares (name/head/ACL mode/#snapshots/#members/updated) | -| `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 `` — flocked against gc so a sweep can't strand it mid-copy | -| `devbox-hub fsck` `[--json]` | 🔬 Integrity scan: re-hash every blob (bit-rot) **and** flag dangling snapshots (manifest → missing blob); non-zero exit on either — pairs with `backup` for DR confidence | -| `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, **device id**) 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` and drops live SSE streams immediately (no 10s wait), 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 | -| `GET /metrics` | 📊 Prometheus: gauges (devices/shares/snapshots/chunks) + counters (blob bytes in/out, pushes, conflicts); gate with `--metrics-token` | - -
- ---- - -## 📊 Live Dashboard — watch your fabric breathe - -> Our own. No Grafana, no Prometheus required, **no external deps** — it ships *inside the hub binary* -> and runs air-gapped. **Off by default**; flip it on and watch every push, join, and chunk flow in real time. ✨ - -

devbox hub live dashboard

+Mint a **new** token on the hub, connect that machine's Tailscale app, then: ```bash -devbox-hub serve --dashboard # loopback http://127.0.0.1:8099 (safe default) -devbox-hub serve --dashboard --dashboard-addr 0.0.0.0:8099 # expose on the LAN (unauthenticated — warns you) -devbox-hub serve --dashboard --gc-every 24h # also self-maintain (in-process GC) — each sweep animates +devbox join http://devbox-hub..ts.net:8080 +devbox mount projects ~/Projects +devbox start ``` -A mission-control flow visualization rendered on `` at 60fps: a **breathing hub core**, your -**devices orbiting** (bright = active), **shares** on the outer ring — and the fabric comes alive with **five -flow events**: `push` (device → hub → share, fans out to subscribers), `pull` (a calm teal pulse inbound as a -device syncs), `conflict` (a red collision burst when a stale push is rejected), `gc` (an amber hub-wide sweep -+ toast when garbage-collection runs), and `join`. Plus live **metric tiles** and a **server-side history -sparkline** (stacked push/pull/conflict/gc per minute, last hour) that **survives a page reload**, and a -streaming, color-coded **activity feed**. +For a subdirectory or read-only checkout: -| How it works | | +```bash +devbox mount projects/my-app ~/work/my-app +devbox mount projects ~/mirror --readonly +``` + +Run `devbox doctor` if the connection fails. Check that the hub is running, the +client is connected to Tailscale, and tailnet policy allows its connection to +port 8080. A Tailscale login does not replace a devbox join token. + +### Tailscale options + +| Hub flag | Default | Purpose | +|---|---|---| +| `--tailscale` | off | Enable the embedded, tailnet-only API listener | +| `--tailscale-hostname` | `devbox-hub` | Requested name for this Tailscale node | +| `--tailscale-state-dir` | `/tailscale` | Persistent Tailscale identity directory | +| `--tailscale-start-timeout` | `2m` | Maximum time to connect and authenticate | +| `--listen` | `:8080` | API port; in embedded mode use `:PORT` | + +Tailscale mode accepts a wildcard listen address and serves that port on its own +node only. An explicit host such as `127.0.0.1:8080` is rejected instead of being +silently overridden. The optional dashboard remains a separate host listener +(default `127.0.0.1:8099`); `--tailscale` does not publish it to the tailnet. + +## 🌐 Regular networking + +Tailscale is opt-in. Existing LAN and reverse-proxy deployments keep working: + +```bash +devbox-hub serve --data ./hub-data --listen 127.0.0.1:8088 +# Configure your TLS proxy to reach 127.0.0.1:8088, then: +devbox join https://hub.example.com +``` + +The ordinary listener speaks plain HTTP. Use a TLS reverse proxy when traffic +crosses an untrusted network. Allow large uploads, disable proxy buffering, and +allow long-lived responses for `/v1/events` (SSE). + +The repository's `docker-compose.yml` runs the ordinary LAN listener. For an +embedded Tailscale container, use the built image with a persistent `/data` +volume and command `serve --data /data --tailscale --listen :8088`; no published +API port or `/dev/net/tun` is needed. Supply `TS_AUTHKEY` securely on first run +or authenticate through the container logs. The ordinary Compose healthcheck +probes the host-network API, so it must be replaced for tailnet-only mode. + +## 🧰 Commands + +| Client command | Purpose | |---|---| -| 🖥️ **Served from the hub** | single `go:embed`'d HTML, vanilla JS + canvas, zero CDN/build | -| 🔌 **`GET /api/state`** | snapshot: hub, totals, devices, shares + a 60-minute `history` window (UI polls every 10s) | -| 📡 **`GET /api/events`** | SSE live flow stream (`join` · `push` · `pull` · `conflict` · `gc`) — the dashboard animates each one | -| 🔒 **Loopback by default** | unauthenticated read-only metrics; bind non-loopback only deliberately (it warns) | -| 🎬 **`?demo=1`** | synthesizes a live stream of all five event types — instant wow + works offline (`file://`) | +| `devbox setup` | Interactive first-run setup | +| `devbox join ` | Enroll this device | +| `devbox publish ` | Create a share and push its files | +| `devbox mount ` | Mount and pull a share | +| `devbox unmount ` | Remove a local mount | +| `devbox start` / `stop` | Run or stop the sync daemon | +| `devbox pause` / `resume` | Pause or resume daemon sync | +| `devbox status --json` | Inspect device and mount status | +| `devbox doctor --json` | Diagnose config, connection, and filesystem issues | +| `devbox log ` | List snapshots | +| `devbox restore [path]` | Restore a file or share | +| `devbox deploy ` | Pin a mount to a snapshot | +| `devbox conflicts` | List conflict copies | +| `devbox ignore ` | Add an ignore pattern | +| `devbox hook list ` | Inspect lifecycle hooks | +| `devbox invite ` | Invite a member with a per-share role | +| `devbox members ` | List memberships | -```mermaid -flowchart LR - DEV["💻 device pushes"] -->|"POST /v1/push"| HUB["🛰️ hub"] - HUB -->|"Emit(join/push)"| BRK["📡 SSE broker"] - BRK -->|"/api/events"| UI["📊 dashboard canvas"] - HUB -->|"/api/state"| UI - UI -.->|"particle device→hub→share"| UI - style HUB fill:#0b2b3a,stroke:#27e8ff,color:#fff - style UI fill:#2a0b2b,stroke:#ff3df0,color:#fff - style BRK fill:#1e5a2e,stroke:#b6ff3a,color:#fff -``` +Hub administration includes `token`, `readonly`, `revoke`, `member`, `principal`, +`share ls`, `device ls`, `backup`, `fsck`, and `gc`. Run ` --help` for +arguments. Memberships support viewer, editor, admin, and owner roles; this +release's membership layer enforces writes. Read-side ACL enforcement remains +planned, so use a hub for a trusted group rather than mutually untrusted tenants. ---- +## 📊 Built-in dashboard -## 🪝 Hooks - -Drop executable scripts in `/.devbox/hooks/`, named after the event. **bash everywhere** -(a `.ps1` hook auto-runs via `pwsh` on Windows 🪟). `pre-*` non-zero exit **aborts** the step. -60s timeout — a hung hook is killed, never wedges the loop. ⏱️ - -| Hook | Fires | Abort? | Typical use | -|---|---|:---:|---| -| `pre-push` | before upload | ✅ | 🧹 lint/format, secret scan | -| `post-push` | after upload | ❌ | 📣 notify, log, tag a snapshot | -| `pre-pull` | before apply | ✅ | 🛑 stop a container / dev server | -| `post-pull` | after apply | ❌ | 📦 `pnpm install`, migrate, restart | -| `on-conflict` | conflict copy made | ❌ | 🔔 open a diff, ping you, log | +

devbox live sync dashboard

```bash -#!/usr/bin/env bash -# .devbox/hooks/post-pull — reinstall deps + restart only when needed -if grep -qE 'package\.json|pnpm-lock\.yaml' "$DEVBOX_CHANGED_FILES"; then - pnpm install --frozen-lockfile -fi -docker compose restart app # 🚀 +devbox-hub serve --data ./hub-data --tailscale --dashboard +# Dashboard: http://127.0.0.1:8099 on the hub host ``` -
-🌱 Injected environment variables +The dashboard shows devices, shares, transfers, and conflicts. It is optional, +separate from the API, and local by default. Use `--dashboard-token` when exposing +it beyond loopback. `/healthz`, `/readyz`, and Prometheus `/metrics` are available +on the API listener; `--metrics-token` can restrict metrics access. -```bash -DEVBOX_EVENT=post-pull -DEVBOX_MOUNT=/srv/project -DEVBOX_SHARE=projects -DEVBOX_HOST=pi-node-07 -DEVBOX_CHANGED_FILES=/tmp/devbox-changes.txt # newline-delimited -DEVBOX_SNAPSHOT=ab12cd34 -DEVBOX_REMOTE=hub.shoemoney.ai -``` +## ⚙️ Configuration -
- ---- - -## 🙈 .devignore & Secret Guard - -### 🙈 `.devignore` — gitignore syntax, shared at the share root - -```gitignore -node_modules/ # 📦 the usual suspects -dist/ build/ .next/ target/ -*.log *.tmp .DS_Store -!.env.example # ❗ negate to force-include -``` - -Matched paths are **invisible to sync in both directions**. Change it → rescan; newly-ignored -files are **left on disk** (never deleted), they just stop syncing. - -### 🔐 Secret Guard — *always on, independent of `.devignore`* - -> [!IMPORTANT] -> Your pitch is "won't leak your `.env`" — so devbox **enforces it**. A built-in deny-list runs -> in the push path and **hard-refuses to upload** matched files *even if `.devignore` is -> misconfigured.* Belt **and** suspenders. 🩲 - -Default-blocked: `.env` · `.env.*` (except `.env.example`) · `*.pem` · `*.key` · `id_rsa*` · -`*.p12` · `*.pfx` · `secrets/` · `*.kdbx` · common cloud-cred files. Blocked files show up in -`devbox status`. Add your own via `[secrets].extra_patterns` in `config.toml`. - -
-⚙️ config.toml — per-machine tunables +Machine configuration lives at `$XDG_CONFIG_HOME/devbox`, otherwise +`~/.config/devbox` on Linux/macOS or `%AppData%\devbox` on Windows. +`daemon.toml` holds enrollment and mounts; `config.toml` holds tunables: ```toml [transfer] -max_kbps = 0 # blob transfer cap (KB/s); 0 = unlimited -compress = false # 🌐 gzip blobs BOTH ways (upload + download) — turn on for devices syncing over a WAN link +max_kbps = 0 +compress = true [sync] -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__, …) +rescan_seconds = 60 +ignore_defaults = true [secrets] -extra_patterns = ["*.secret", "vault-*"] # additional secret-guard deny patterns +extra_patterns = ["*.secret", "vault-*"] ``` -> `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. 🗜️ The WAN path is also -> hardened with granular timeouts, automatic retry+backoff on transient blips, and parallel blob -> transfer — no flags, always on. +`.devignore` filters a share. Device-local mount exclusions avoid syncing a path +on one machine without changing peers. Secret filtering is independent of both. +Hooks support pre/post push and pull plus conflict events; a pre-hook can veto +an operation. The hook runner requires bash (or PowerShell for `.ps1` hooks). -
+On macOS, grant the `devbox` binary Full Disk Access when syncing protected +folders such as Desktop, Documents, Downloads, or iCloud. `devbox doctor` checks +mount access and reports failures. ---- +## 🛡️ Data and upgrades -## 🕰️ Versioning & Deploy +Devices have Ed25519 identities and prove possession during enrollment. The hub +stores bearer-token hashes; downloaded chunks and manifests are checked against +their content hashes. Incoming paths are checked for mount containment, and +atomic file replacement uses fsync for durability. -```mermaid -gitGraph - commit id: "S1 📸" - commit id: "S2 📸" - commit id: "S3 ✏️" - commit id: "S4 🍓" - commit id: "S5 🚀 deploy" +Keep backups of the hub's data and identity. `deploy/redeploy-hub.sh` provides a +gated upgrade flow: migration check on a copy, isolated auth smoke, backup, +binary replacement, live verification, and rollback on failure. Review its host +settings before running it. For embedded mode, preserve the Tailscale directory +and the hub service's `--tailscale` arguments during upgrades. + +## 🏗️ Build and release + +Building the current embedded hub requires **Go 1.27.4 or newer**, matching the +pinned Tailscale dependency. Downloading prebuilt binaries needs no Go toolchain. + +```bash +go build ./cmd/devbox ./cmd/devbox-hub +go vet ./... +go test -race ./... +VERSION=v2.1.0 ./scripts/build-release.sh ``` -- 📸 Every accepted change = an **immutable snapshot** (BLAKE3 of the manifest). Manifests are - themselves content-addressed → 100 pushes don't store the tree map 100×. -- ↩️ `devbox restore [path]` rolls back a file or whole share (itself a new change → - reversible). -- 🚀 `devbox deploy ` pins a mount to a snapshot by **applying it without pushing a - new head** — history stays untouched and the daemon won't drag it back to latest (`[pinned]`). - **Blue/green deploys** for your `/var/www` boxes, basically free; re-mount to resume live sync. -- 🧹 `devbox-hub gc` sweeps unreferenced chunks (refcounted). +The release script cross-compiles both binaries for six platform/architecture +combinations and generates checksums. Public binary distribution lives in +[`devbox-dist`](https://git.shoemoney.ai/shoemoney/devbox-dist). ---- +Design documents: [original sync design](docs/superpowers/specs/2026-06-22-devbox-design.md) +and [v2 roadmap](docs/V2-SPEC.md). Future work includes embedded client networking, +read-side ACLs, client-side encryption, and peer chunk exchange. Tailscale +transport encryption protects the connection; it does not encrypt stored hub +files or replace end-to-end file encryption. -## 🖥️ Cross-Platform +## ⚖️ License -
- -| Capability | 🐧 Linux | 🍎 macOS | 🪟 Windows | -|---|:---:|:---:|:---:| -| File watching | inotify | FSEvents | ReadDirectoryChangesW | -| Atomic apply | `rename(2)` | `rename(2)` | `ReplaceFile`/`MoveFileEx` | -| Hooks | bash | bash | bash *(git-bash/WSL)* or `.ps1`→pwsh | -| Service | systemd | launchd | Windows Service | -| Static binary | ✅ | ✅ | ✅ | - -
- -> 🧭 Canonical paths are **forward-slash + relative** (converted at the Windows boundary). -> Filenames illegal/colliding on an OS (`foo.go` vs `Foo.go`, `aux`, trailing dot) → **skip + -> warn + surface** in `devbox status`; the hub keeps the bytes, peers that *can* hold the name -> still get the file. Never fatal. 🛟 - ---- - -## 🔐 Security & Durability - -> Threat model: **single-owner, multi-device** (every enrolled device is *yours*). Within that, -> v1 went through an adversarial audit — every data-loss and arbitrary-file path is closed. 🛡️ - -| Layer | Protection | -|---|---| -| 🪪 **Device identity** | ed25519 keypair per device; `join` requires **proof-of-possession** (a signed challenge — you can't claim a key you don't hold), and a bad request never burns the one-time token | -| 🎟️ **Auth** | bearer tokens, **hashed at rest** (hub stores no plaintext creds), device-**revocable** | -| 🧊 **Content integrity** | every chunk **and** manifest is re-verified against its BLAKE3 hash on download — a corrupt/truncated transfer or hostile hub can't write wrong bytes into your tree | -| 🚧 **Path safety** | hub rejects any blob key that isn't 64-hex (no `..%2f` traversal → no arbitrary file read); the client refuses manifest paths that escape the mount root | -| 🔑 **Secret guard** | case-insensitive deny-list (`.ENV` == `.env`); `.env`/keys/`*.env`/`.aws/credentials` **never leave the machine**, independent of `.devignore` | -| 🛟 **Never lose a byte** | losing local edits become `.conflict` copies; ignored/guarded on-disk files are preserved **before** any hub overwrite; atomic writes are **fsync'd** (power-loss safe) | -| 🧹 **Safe GC** | mark-and-sweep from every live head — never frees a chunk a share still needs, even if refcounts are off | -| 🚪 **DoS bounds** | request-body caps (256 MiB blob / 8 MiB JSON → `413`) + server read/idle timeouts | -| 🆔 **Daemon** | single-instance pidfile with a **PID-reuse guard** (start-time token) so `stop` never signals a stranger | - -
-🔬 how the integrity + path guards chain - -```mermaid -flowchart LR - P["📥 pull"] --> G{"64-hex
blob key?"} - G -->|no| X1["🚫 404 — no traversal"] - G -->|yes| F["⬇️ fetch blob"] - F --> H{"BLAKE3
matches key?"} - H -->|no| X2["🚫 integrity fail"] - H -->|yes| C{"path inside
mount?"} - C -->|no| X3["🚫 refuse escape"] - C -->|yes| W["⚛️ atomic write + fsync"] - style X1 fill:#5a1e1e,stroke:#ff6b6b,color:#fff - style X2 fill:#5a1e1e,stroke:#ff6b6b,color:#fff - style X3 fill:#5a1e1e,stroke:#ff6b6b,color:#fff - style W fill:#1e5a2e,stroke:#51cf66,color:#fff -``` -
- ---- - -## 🗺️ Roadmap - -> 🔮 **Looking ahead:** the full **[v2 design spec](docs/V2-SPEC.md)** — multi-owner teams + ACLs, -> client-side E2E encryption (convergent, keeps dedup), LAN peer chunk-exchange + hub HA, 3-way merge, -> and a TUI — sequenced M8→M11 by dependency. **M8 foundations are landing now**; M9–M11 stay -> demand-driven (build E2E when an untrusted-hub user exists, P2P when the uplink hurts, the TUI when asked). - -```mermaid -flowchart LR - M6["M6 🕰️\nVersioning"] --> M65["M6.5 🚢\nDeploy"] - M65 --> M7["M7 🛡️\nHardening\n+ M7.5/7.6 audit"] - M7 --> M8["M8 🏗️\nv2 Foundations\nmigration · teams · control socket"] - M8 --> M9["M9 🔐\nTrust + HA\nACL · E2E · S3"] - M9 --> M10["M10 🤝\nCluster + merge\nP2P · resolver"] - M10 --> M11["M11 ✨\nPolish\nTUI · power"] - style M6 fill:#1e5a2e,stroke:#51cf66,color:#fff - style M65 fill:#1e5a2e,stroke:#51cf66,color:#fff - style M7 fill:#1e5a2e,stroke:#51cf66,color:#fff - style M8 fill:#1e5a2e,stroke:#51cf66,color:#fff - style M9 fill:#0d1117,stroke:#4F9CF9,color:#fff - style M10 fill:#0d1117,stroke:#4F9CF9,color:#fff - style M11 fill:#0d1117,stroke:#4F9CF9,color:#fff -``` - -| | Milestone | Deliverable | -|:---:|---|---| -| ✅ | **M0 — Skeleton** 🦴 | cobra CLI, `devbox join`, keypair, machine config | -| ✅ | **M1 — Watch + secrets** 👀 | fsnotify, `.devignore`, secret-guard, FastCDC+BLAKE3 chunking, content-addressed manifests | -| ✅ | **M2 — Hub + push** 🛰️ | shares, join tokens, CAS, `publish`, HTTP upload, snapshots, bearer auth, `/metrics` — deployed on `.10`, verified cross-machine | -| ✅ | **M3 — Two-way sync** 🔄 | SSE event fan-out, `mount`, pull + atomic apply, per-file 3-way conflict copies, live `start` daemon — **two Macs sync live through the hub** | -| ✅ | **M4 — Read-only + bw** 🔒 | server-enforced read-only bit, **sub-path mounts** (`mount proj/app /dir`), bandwidth cap — fleet-verified | -| ✅ | **M5 — Hooks** 🪝 | bash (+`.ps1`) lifecycle runner, env injection, 60s timeout, `pre-*` veto — `post-pull` fired on a fleet node | -| ✅ | **M6 — Versioning** 🕰️ | `devbox log` (full snapshot ids) / `restore` (revert any file) / hub `gc` — fleet-verified | -| ✅ | **M6.5 — Deploy** 🚀 | `devbox deploy ` — apply a snapshot without pushing, `[pinned]` mount; fleet-verified blue/green | -| ✅ | **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). 👀 read side (`GET /v1/members` + `devbox members`) · ✉️ **device-facing invites** (`POST /v1/invite` + `devbox invite`, privilege **attenuation** via pure `meta.MayGrant`, self-seed on the legacy→explicit flip) — **cross-machine fleet-verified on arm64 Pis** · 🛟 **`restore` preserves uncommitted edits** (never-lose-a-byte on revert). **M8's justified-now scope is complete** — the conflict sidecar moves to M10 (only its resolver consumes it) and read-side ACL gating is M9 | - -
-🔮 still ahead in M8 / genuinely v2 - -Landed in M8 above: the migration runner, per-`(share,id)` snapshots, and the control socket. Still sequenced ahead: - -- 📝 **Conflict-copy on explicit `restore`/`deploy`** *(M8-3)* — needs base/ancestor awareness so it preserves only *uncommitted* edits without breaking restore-reproduces-snapshot; rides the conflict **sidecar**. -- 👥 **Principals / roles / invites + write enforcement** *(M8a)* — the membership layer E2E + P2P both need underneath them. -- 🔑 **Read-side ACL + deny-by-default writes** *(M9)* — only meaningful once shares span *multiple owners*; the genuinely new attack surface, staged after write-side. -- 🔢 **`snapshot_chunks` edge table** *(M9)* — a derived-refcount source for E2E/P2P; deferred until a consumer exists (the migration runner makes adding it a one-liner). - -
- -
-🔮 v2 backlog - -- 🤝 **LAN peer chunk-exchange** — co-located nodes swap chunks directly (Syncthing-style) -- 🎛️ **Interactive conflict resolver** — diff + keep-mine/theirs/both/edit -- 🔁 **Re-share / delegation** (the `s` permission) -- 🧬 **Content-level 3-way text merge** -- 🔋 **Laptop power sanity** — pause-on-metered / pause-on-battery / sync windows -- 🔏 **Client-side E2E chunk encryption** -- 🏰 **Hub clustering / HA** -- 🖼️ **Full TUI** dashboard - -
- ---- - -## ⚖️ License & Open-Core - -
- -**📜 AGPLv3 core** — self-host free, forever.  ·  **💼 Commercial license** for the hosted tier. - -
- -devbox is **open-core**: the entire hub + clients in this repo are AGPLv3 and fully -self-hostable. A future **hosted version** (signup, billing, provisioning) is a separate, closed -control plane that wraps the same single-tenant hub — designed for via clean seams (`BlobStore` -interface, config-driven limits, `/metrics`) but **not part of this OSS repo**. - -> Offering devbox as a hosted service? AGPLv3 means open your changes — or -> [grab a commercial license](#). 🤝 - ---- - -## 🙌 Contributing - -> ✅ v1 is feature-complete — the [spec](docs/superpowers/specs/2026-06-22-devbox-design.md) -> documents the full design, and `scripts/build-release.sh` cross-compiles every platform. - -1. 🍴 Fork & branch -2. 🧪 Keep it lazy-correct (smallest diff that works, tests for non-trivial logic) -3. 📝 Update the docs in the same PR — they get the **full flare treatment** 😎 -4. 🚀 Open a PR - -
-
- -### Made with 📦, ☕, and a healthy fear of `rm -rf` on the wrong machine. - -*“It's like Dropbox, but it actually respects that you're a developer.”* 💙 - -
+The hub and client are licensed under [AGPLv3](LICENSE). Self-host the core for +free. See dependency licenses for third-party components, including Tailscale. diff --git a/cmd/devbox-hub/main.go b/cmd/devbox-hub/main.go index ca496f9..fe6804f 100644 --- a/cmd/devbox-hub/main.go +++ b/cmd/devbox-hub/main.go @@ -88,14 +88,30 @@ func serveCmd() *cobra.Command { var dash, accessLog bool var gcEvery time.Duration var gcKeep int + var tailnet tailnetOptions cmd := &cobra.Command{ Use: "serve", Short: "🚀 run the hub server", RunE: func(cmd *cobra.Command, _ []string) error { + ctx, stop := signal.NotifyContext(cmd.Context(), os.Interrupt, syscall.SIGTERM) + defer stop() + // Validate before opening the database or starting background work. + if tailnet.Enabled { + if _, err := tailnetPort(listen); err != nil { + return err + } + } db, err := openDB(data) if err != nil { return err } + defer db.Close() + ln, closeNetwork, endpoint, err := listenHub(ctx, listen, data, tailnet) + if err != nil { + return err + } + defer closeNetwork() + defer ln.Close() store, err := blobstore.NewDisk(filepath.Join(data, "blobs")) if err != nil { return err @@ -159,8 +175,11 @@ func serveCmd() *cobra.Command { if dash { dashState = "on @" + dashAddr } - fmt.Fprintf(out, "🛰️ devbox-hub %s listening on %s (data: %s · dashboard: %s)\n", version, listen, data, dashState) - if !isLoopback(listen) { + fmt.Fprintf(out, "🛰️ devbox-hub %s listening on %s (data: %s · dashboard: %s)\n", version, endpoint, data, dashState) + if tailnet.Enabled { + fmt.Fprintln(out, "🔒 built-in Tailscale: tailnet-only API · encrypted transport · devbox join tokens required") + } + if !tailnet.Enabled && !isLoopback(listen) { fmt.Fprintf(out, "⚠️ API on %s serves PLAIN HTTP — bearer tokens travel in cleartext. Put it behind a TLS proxy or accept the risk.\n", listen) } // Explicit timeouts bound the slowloris surface (bare ListenAndServe @@ -183,12 +202,9 @@ func serveCmd() *cobra.Command { // timeout, since every connected client daemon holds a long-lived /v1/events stream. httpSrv.RegisterOnShutdown(srv.CloseEventStreams) - ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) - defer stop() - srvErr := make(chan error, 1) go func() { - if err := httpSrv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { + if err := httpSrv.Serve(ln); err != nil && !errors.Is(err, http.ErrServerClosed) { srvErr <- err } }() @@ -209,6 +225,10 @@ func serveCmd() *cobra.Command { } cmd.Flags().StringVar(&data, "data", "./devbox-hub-data", "hub data directory") cmd.Flags().StringVar(&listen, "listen", ":8080", "listen address") + cmd.Flags().BoolVar(&tailnet.Enabled, "tailscale", false, "join a tailnet using built-in Tailscale; API listens only on the tailnet") + cmd.Flags().StringVar(&tailnet.Hostname, "tailscale-hostname", "devbox-hub", "embedded Tailscale node name") + cmd.Flags().StringVar(&tailnet.StateDir, "tailscale-state-dir", "", "Tailscale identity directory (default: /tailscale)") + cmd.Flags().DurationVar(&tailnet.StartupTimeout, "tailscale-start-timeout", 2*time.Minute, "maximum time to join the tailnet, including first-run authentication") cmd.Flags().BoolVar(&dash, "dashboard", false, "serve the live web dashboard") cmd.Flags().StringVar(&dashAddr, "dashboard-addr", "127.0.0.1:8099", "dashboard listen address (loopback by default — unauthenticated)") cmd.Flags().StringVar(&dashToken, "dashboard-token", "", "require this token to view the dashboard (recommended for non-loopback binds)") diff --git a/cmd/devbox-hub/tailscale.go b/cmd/devbox-hub/tailscale.go new file mode 100644 index 0000000..f41e42c --- /dev/null +++ b/cmd/devbox-hub/tailscale.go @@ -0,0 +1,110 @@ +package main + +import ( + "context" + "fmt" + "log" + "net" + "os" + "path/filepath" + "strconv" + "strings" + "time" + + "tailscale.com/ipn/ipnstate" + "tailscale.com/tsnet" +) + +type tailnetOptions struct { + Enabled bool + Hostname string + StateDir string + StartupTimeout time.Duration +} + +type tailnetServer interface { + Up(context.Context) (*ipnstate.Status, error) + Listen(string, string) (net.Listener, error) + Close() error +} + +// tailnetPort restricts embedded listeners to this node's own tailnet addresses. +func tailnetPort(address string) (string, error) { + host, port, err := net.SplitHostPort(address) + if err != nil { + return "", fmt.Errorf("Tailscale listen address: %w", err) + } + if host != "" && host != "0.0.0.0" && host != "::" { + return "", fmt.Errorf("--tailscale requires --listen :PORT, not an explicit host") + } + n, err := strconv.Atoi(port) + if err != nil || n < 1 || n > 65535 { + return "", fmt.Errorf("invalid Tailscale listen port %q", port) + } + return port, nil +} + +// listenHub opens either an ordinary TCP listener or a userspace Tailscale +// listener. Embedded mode never opens an API listener on the host network. +func listenHub(ctx context.Context, address, data string, opts tailnetOptions) (net.Listener, func(), string, error) { + return listenHubWithNode(ctx, address, data, opts, func(s *tsnet.Server) tailnetServer { return s }) +} + +func listenHubWithNode(ctx context.Context, address, data string, opts tailnetOptions, newNode func(*tsnet.Server) tailnetServer) (net.Listener, func(), string, error) { + if !opts.Enabled { + ln, err := net.Listen("tcp", address) + return ln, func() {}, address, err + } + port, err := tailnetPort(address) + if err != nil { + return nil, nil, "", err + } + if opts.StartupTimeout <= 0 { + return nil, nil, "", fmt.Errorf("--tailscale-start-timeout must be positive") + } + stateDir := opts.StateDir + if stateDir == "" { + stateDir = filepath.Join(data, "tailscale") + } + stateDir, err = filepath.Abs(stateDir) + if err != nil { + return nil, nil, "", err + } + if err := os.MkdirAll(stateDir, 0o700); err != nil { + return nil, nil, "", err + } + if err := os.Chmod(stateDir, 0o700); err != nil { + return nil, nil, "", err + } + node := newNode(&tsnet.Server{ + Dir: stateDir, Hostname: opts.Hostname, + UserLogf: log.Printf, + Logf: func(string, ...any) {}, + }) + cleanup := func() { _ = node.Close() } + upCtx, cancel := context.WithTimeout(ctx, opts.StartupTimeout) + defer cancel() + status, err := node.Up(upCtx) + if err != nil { + cleanup() + return nil, nil, "", fmt.Errorf("start embedded Tailscale: %w (authenticate using the logged URL or TS_AUTHKEY)", err) + } + ln, err := node.Listen("tcp", ":"+port) + if err != nil { + cleanup() + return nil, nil, "", err + } + host := "" + if status.Self != nil { + host = strings.TrimSuffix(status.Self.DNSName, ".") + } + if host == "" && len(status.TailscaleIPs) > 0 { + host = status.TailscaleIPs[0].String() + } + if host == "" { + ln.Close() + cleanup() + return nil, nil, "", fmt.Errorf("embedded Tailscale has no node address") + } + return ln, cleanup, "http://" + net.JoinHostPort(host, port), nil +} diff --git a/cmd/devbox-hub/tailscale_test.go b/cmd/devbox-hub/tailscale_test.go new file mode 100644 index 0000000..62e7cd3 --- /dev/null +++ b/cmd/devbox-hub/tailscale_test.go @@ -0,0 +1,108 @@ +package main + +import ( + "context" + "errors" + "net" + "net/netip" + "os" + "path/filepath" + "testing" + "time" + + "tailscale.com/ipn/ipnstate" + "tailscale.com/tsnet" +) + +func TestTailnetPort(t *testing.T) { + for _, address := range []string{":8080", "0.0.0.0:8080", "[::]:8080"} { + if port, err := tailnetPort(address); err != nil || port != "8080" { + t.Fatalf("%q: %q, %v", address, port, err) + } + } + for _, address := range []string{"127.0.0.1:8080", "100.64.0.1:8080", "host:8080", ":0", ":65536", ":http", "8080"} { + if _, err := tailnetPort(address); err == nil { + t.Errorf("accepted %q", address) + } + } +} + +type fakeTailnet struct { + status *ipnstate.Status + upErr, listenErr error + closed bool + address string +} + +func (f *fakeTailnet) Up(ctx context.Context) (*ipnstate.Status, error) { + if _, ok := ctx.Deadline(); !ok { + return nil, errors.New("missing startup deadline") + } + return f.status, f.upErr +} +func (f *fakeTailnet) Listen(network, address string) (net.Listener, error) { + f.address = address + if f.listenErr != nil { + return nil, f.listenErr + } + return net.Listen(network, "127.0.0.1:0") +} +func (f *fakeTailnet) Close() error { f.closed = true; return nil } + +func TestEmbeddedListener(t *testing.T) { + data := t.TempDir() + fake := &fakeTailnet{status: &ipnstate.Status{Self: &ipnstate.PeerStatus{DNSName: "devbox-hub.example.ts.net."}}} + ln, closeNode, endpoint, err := listenHubWithNode(context.Background(), ":8080", data, + tailnetOptions{Enabled: true, Hostname: "devbox-hub", StartupTimeout: time.Second}, + func(s *tsnet.Server) tailnetServer { + if s.Dir != filepath.Join(data, "tailscale") || s.Hostname != "devbox-hub" || s.Ephemeral { + t.Fatalf("bad persistent node config: %+v", s) + } + return fake + }) + if err != nil { + t.Fatal(err) + } + defer ln.Close() + closeNode() + if endpoint != "http://devbox-hub.example.ts.net:8080" || fake.address != ":8080" || !fake.closed { + t.Fatalf("endpoint=%s node=%+v", endpoint, fake) + } + st, err := os.Stat(filepath.Join(data, "tailscale")) + if err != nil { + t.Fatal(err) + } + if st.Mode().Perm() != 0o700 { + t.Fatalf("state directory permissions: %v", st.Mode()) + } +} + +func TestEmbeddedListenerFailureClosesNode(t *testing.T) { + for _, stage := range []string{"up", "listen", "address"} { + t.Run(stage, func(t *testing.T) { + fake := &fakeTailnet{status: &ipnstate.Status{TailscaleIPs: []netip.Addr{netip.MustParseAddr("100.64.0.1")}}} + if stage == "up" { + fake.upErr = errors.New("auth failed") + } + if stage == "listen" { + fake.listenErr = errors.New("listen failed") + } + if stage == "address" { + fake.status.TailscaleIPs = nil + } + ln, _, _, err := listenHubWithNode(context.Background(), ":8080", t.TempDir(), tailnetOptions{Enabled: true, StartupTimeout: time.Second}, func(*tsnet.Server) tailnetServer { return fake }) + if err == nil || ln != nil || !fake.closed { + t.Fatalf("err=%v node=%+v", err, fake) + } + }) + } +} + +func TestPlainListenerDoesNotStartTailnet(t *testing.T) { + ln, cleanup, _, err := listenHubWithNode(context.Background(), "127.0.0.1:0", t.TempDir(), tailnetOptions{}, func(*tsnet.Server) tailnetServer { t.Fatal("started Tailscale in plain mode"); return nil }) + if err != nil { + t.Fatal(err) + } + defer ln.Close() + cleanup() +} diff --git a/go.mod b/go.mod index b1640d0..91f0836 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/shoemoney/devbox -go 1.26 +go 1.27.4 require ( github.com/BurntSushi/toml v1.6.0 @@ -8,20 +8,62 @@ require ( github.com/jotfs/fastcdc-go v0.2.0 github.com/spf13/cobra v1.10.2 github.com/zeebo/blake3 v0.2.4 - golang.org/x/time v0.15.0 + golang.org/x/time v0.16.0 modernc.org/sqlite v1.53.0 + tailscale.com v1.106.1 ) require ( + filippo.io/edwards25519 v1.2.0 // indirect + github.com/akutz/memconn v0.1.0 // indirect + github.com/alexbrainman/sspi v0.0.0-20250919150558-7d374ff0d59e // indirect + github.com/coder/websocket v1.8.15 // indirect + github.com/creachadair/msync v0.10.1 // indirect + github.com/dblohm7/wingoes v0.0.0-20260526185140-fb298caac7ca // indirect github.com/dustin/go-humanize v1.0.1 // indirect + github.com/fxamacker/cbor/v2 v2.9.3 // indirect + github.com/gaissmai/bart v0.29.0 // indirect + github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3 // indirect + github.com/godbus/dbus/v5 v5.2.2 // indirect + github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect + github.com/google/btree v1.1.3 // indirect + github.com/google/go-cmp v0.7.0 // indirect github.com/google/uuid v1.6.0 // indirect + github.com/hdevalence/ed25519consensus v0.2.0 // indirect + github.com/huin/goupnp v1.3.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/klauspost/cpuid/v2 v2.0.12 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect + github.com/jsimonetti/rtnetlink v1.4.2 // indirect + github.com/klauspost/compress v1.20.2 // indirect + github.com/klauspost/cpuid/v2 v2.3.0 // indirect + github.com/mattn/go-isatty v0.0.24 // indirect + github.com/mdlayher/netlink v1.11.2 // indirect + github.com/mdlayher/socket v0.7.0 // indirect + github.com/mitchellh/go-ps v1.0.0 // indirect github.com/ncruces/go-strftime v1.0.0 // indirect + github.com/pires/go-proxyproto v0.15.0 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect - github.com/spf13/pflag v1.0.9 // indirect - golang.org/x/sys v0.44.0 // indirect + github.com/safchain/ethtool v0.7.0 // indirect + github.com/spf13/pflag v1.0.10 // indirect + github.com/tailscale/certstore v0.1.1-0.20260409135935-3638fb84b77d // indirect + github.com/tailscale/go-winio v0.0.0-20231025203758-c4f33415bf55 // indirect + github.com/tailscale/hujson v0.0.0-20260727124030-b80ff77dac4f // indirect + github.com/tailscale/peercred v0.0.0-20250107143737-35a0c7bd7edc // indirect + github.com/tailscale/web-client-prebuilt v0.0.0-20260917222731-e0ed2d0d0fea // indirect + github.com/tailscale/wireguard-go v0.0.0-20261121000637-a8c4fbf26d6c // indirect + github.com/x448/float16 v0.8.4 // indirect + go4.org/mem v0.0.0-20240501181205-ae6ca9944745 // indirect + go4.org/netipx v0.0.0-20260823151212-3075585bcbeb // indirect + golang.org/x/crypto v0.59.0 // indirect + golang.org/x/exp v0.0.0-20260908205506-85c1c2202aba // indirect + golang.org/x/net v0.62.0 // indirect + golang.org/x/oauth2 v0.37.0 // indirect + golang.org/x/sync v0.25.0 // indirect + golang.org/x/sys v0.50.0 // indirect + golang.org/x/term v0.48.0 // indirect + golang.org/x/text v0.44.0 // indirect + golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2 // indirect + golang.zx2c4.com/wireguard/windows v1.0.1 // indirect + gvisor.dev/gvisor v0.0.0-20261117040555-0303b2605d5e // indirect modernc.org/libc v1.73.4 // indirect modernc.org/mathutil v1.7.1 // indirect modernc.org/memory v1.11.0 // indirect diff --git a/go.sum b/go.sum index 309c0e3..bdc7bab 100644 --- a/go.sum +++ b/go.sum @@ -1,33 +1,219 @@ +9fans.net/go v0.0.8-0.20250307142834-96bdba94b63f h1:1C7nZuxUMNz7eiQALRfiqNOm04+m3edWlRff/BYHf0Q= +9fans.net/go v0.0.8-0.20250307142834-96bdba94b63f/go.mod h1:hHyrZRryGqVdqrknjq5OWDLGCTJ2NeEvtrpR96mjraM= +filippo.io/edwards25519 v1.2.0 h1:crnVqOiS4jqYleHd9vaKZ+HKtHfllngJIiOpNpoJsjo= +filippo.io/edwards25519 v1.2.0/go.mod h1:xzAOLCNug/yB62zG1bQ8uziwrIqIuxhctzJT18Q77mc= +filippo.io/mkcert v1.4.4 h1:8eVbbwfVlaqUM7OwuftKc2nuYOoTDQWqsoXmzoXZdbc= +filippo.io/mkcert v1.4.4/go.mod h1:VyvOchVuAye3BoUsPUOOofKygVwLV2KQMVFJNRq+1dA= github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk= github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/akutz/memconn v0.1.0 h1:NawI0TORU4hcOMsMr11g7vwlCdkYeLKXBcxWu2W/P8A= +github.com/akutz/memconn v0.1.0/go.mod h1:Jo8rI7m0NieZyLI5e2CDlRdRqRRB4S7Xp77ukDjH+Fw= +github.com/alexbrainman/sspi v0.0.0-20250919150558-7d374ff0d59e h1:4dAU9FXIyQktpoUAgOJK3OTFc/xug0PCXYCqU0FgDKI= +github.com/alexbrainman/sspi v0.0.0-20250919150558-7d374ff0d59e/go.mod h1:cEWa1LVoE5KvSD9ONXsZrj0z6KqySlCCNKHlLzbqAt4= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= +github.com/aws/aws-sdk-go-v2 v1.47.3 h1:HRoT/MkNi3bjO5xF4dCzLzvVmkvRGHj3/cLINDnJejk= +github.com/aws/aws-sdk-go-v2 v1.47.3/go.mod h1:xSl+OSI5ZUw6bSMupWc218zE5Pl+65MCCu3ySWFY99A= +github.com/aws/aws-sdk-go-v2/config v1.33.9 h1:Hv6bcQUJVnmuWaKjqD6Ot8sE75NrWsWV20oGT5aWle0= +github.com/aws/aws-sdk-go-v2/config v1.33.9/go.mod h1:ivowmrZNfBQLcg4QkaItgi5wae4Bzot9RzIdbY1hfTg= +github.com/aws/aws-sdk-go-v2/credentials v1.20.9 h1:SNO55PnWhaDafsOcv16lCA0kdoFMl/YlegWoVsU02s0= +github.com/aws/aws-sdk-go-v2/credentials v1.20.9/go.mod h1:+2reOTRtdD3VSBqpRDNwrZIYy8yMCYa7oK3WKTJ/I1I= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.3 h1:gr3b87OLB29jymWPzp/CAyXwQRJVE+sC4Wm0qBIKHsk= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.3/go.mod h1:BRjf4L/Yx2hY54o+ZibPbLJyMMeSwqYQXwcJfqW66a8= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.6 h1:CqL8NN3p4I0JTwwV5MEoatIl4Y2amZ2X9dRD+0hbRL0= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.6/go.mod h1:exdJ32hMqXl0Wyo6NwqEC5yIhtua3+PDaKE8P29m4qE= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.6 h1:FpBq24TG6WVSObTNhQOv7Q0088rounUUlwn3zlNItkM= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.6/go.mod h1:ONzdPVYC95oBOu0VWNEsKEntcoemP3xVKjT+qWml1s4= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.6 h1:Qmn60RWuk9+bd2ddvJJqwf3Cpac3VvGMOdbGemtUhX4= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.6/go.mod h1:h/YJhe4AVyQxEUMluph10iqV7mjajH7A9L+BHF5ppis= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.21 h1:e6YW5uME30TkrElR+4/xcY7NB6CCj2dcv7vtmGXhfhQ= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.21/go.mod h1:obpHAMP693+f3/A8PkLhIqfK1C+NWWn8zXzqD3OH520= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.6 h1:LHHdobjo5le1sjJdolitV7uVvYg3wkaeM1Ju2fDgeZQ= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.6/go.mod h1:CBGB0evAiaMD3Lk4wPO7LQCcCZLuhzL5Qf/wfEUHQ5w= +github.com/aws/aws-sdk-go-v2/service/signin v1.10.4 h1:tvpDjuUvgKURf3Yk4hOaGbZ4QdY+070OWcA5d6LUv2A= +github.com/aws/aws-sdk-go-v2/service/signin v1.10.4/go.mod h1:3ibVKg5Ng82Zby8++jELTD2nHxiPk2DJRLEeW/LKp8M= +github.com/aws/aws-sdk-go-v2/service/ssm v1.77.0 h1:JqKSBJlS68F4nxoPLwD7tB3lJ3gWEK9p+7eOiBE/lsM= +github.com/aws/aws-sdk-go-v2/service/ssm v1.77.0/go.mod h1:5TMMHmQGjCODMeIopSNfxkan11jG0SmFpyjcMvCLzHA= +github.com/aws/aws-sdk-go-v2/service/sso v1.38.4 h1:ChCtagixSFOxltv0o6E3NT8F7ksvZtZGPwUBynO5Nmk= +github.com/aws/aws-sdk-go-v2/service/sso v1.38.4/go.mod h1:+FEO9jrVMpc9oN3CdAxJbtlQEu3z8UddDPSedpeM3PY= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.43.4 h1:j6c+HA4AoS0EBEjArPjavFEBrucJEryfrQU0TffmACk= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.43.4/go.mod h1:RhghaXUk9q66VtOQUX1FdPddQuHnqQZzbB0fEYXmPRA= +github.com/aws/aws-sdk-go-v2/service/sts v1.51.4 h1:OKEfbf2tcfsF2pBk/S9QqNpo6alaAtiBs4hysCsBjPw= +github.com/aws/aws-sdk-go-v2/service/sts v1.51.4/go.mod h1:mCd6qGo9b8hTtfjgsmNkFlzwjyce4owd7HDVFnCLXhM= +github.com/aws/smithy-go v1.28.5 h1:OqbqKtzY9NUnr2yAe9+hiTdFb20tNaK/lI0PMOGXX9k= +github.com/aws/smithy-go v1.28.5/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= +github.com/axiomhq/hyperloglog v0.2.6 h1:sRhvvF3RIXWQgAXaTphLp4yJiX4S0IN3MWTaAgZoRJw= +github.com/axiomhq/hyperloglog v0.2.6/go.mod h1:YjX/dQqCR/7QYX0g8mu8UZAjpIenz1FKM71UEsjFoTo= +github.com/benbjohnson/immutable v0.4.3 h1:GYHcksoJ9K6HyAUpGxwZURrbTkXA0Dh4otXGqbhdrjA= +github.com/benbjohnson/immutable v0.4.3/go.mod h1:qJIKKSmdqz1tVzNtst1DZzvaqOU1onk1rc03IeM3Owk= +github.com/bradfitz/reco v0.0.0-20260929154613-b883fbd17e3f h1:jdXGSp5Ge5/kzikuxGOw9+6HSStUjkNBJZjGNtpItek= +github.com/bradfitz/reco v0.0.0-20260929154613-b883fbd17e3f/go.mod h1:oiCPXxBoDKSkb/RGEZwAZk8y/fwDlQ1vYlBbNRxPysw= +github.com/cilium/ebpf v0.22.0 h1:v2ktp0roffpMOj2MMf3idtCQZOsAoC4BJbAJN+ke2bY= +github.com/cilium/ebpf v0.22.0/go.mod h1:CDzZbe2hC5JjlDC+CY3KFCzlYwN4gbxppYM+Z10bQt4= +github.com/coder/websocket v1.8.15 h1:6B2JPeOGlpff2Uz6vOEH1Vzpi0iUz20A+lPVhPHtNUA= +github.com/coder/websocket v1.8.15/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg= +github.com/coreos/go-iptables v0.8.0 h1:MPc2P89IhuVpLI7ETL/2tx3XZ61VeICZjYqDEgNsPRc= +github.com/coreos/go-iptables v0.8.0/go.mod h1:Qe8Bv2Xik5FyTXwgIbLAnv2sWSBmvWdFETJConOQ//Q= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/creachadair/mds v0.31.0 h1:h4SXXgallvZfD8CFQnQNAOtBkUGpZjPwNBRQpHpHM/g= +github.com/creachadair/mds v0.31.0/go.mod h1:IZ3oLffgVNZ4O5WXTPxx7EX5ilSl1ypdv5FekYyynyI= +github.com/creachadair/msync v0.10.1 h1:14jT5Ujob64Zp2D3ZcUidayDMoXikhmYN8xBxEuPKPk= +github.com/creachadair/msync v0.10.1/go.mod h1:dFf4Z0cxE2nibFmAdq5OqTuGn++GgEqA9JuKH+7ceSA= +github.com/creachadair/taskgroup v0.14.4 h1:ttR8StLWmYA1O6x96YlTpQLXjKyRpO4RBo+OcO6W6C0= +github.com/creachadair/taskgroup v0.14.4/go.mod h1:uhCtIEsa7zpeMAFixddhCYjbJi7e4JMyU7OXUygkSsg= +github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s= +github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE= +github.com/dblohm7/wingoes v0.0.0-20260526185140-fb298caac7ca h1:h1Awca4lQOspNR/2eeo04Ricn5NixDX9mb17WSAgLhQ= +github.com/dblohm7/wingoes v0.0.0-20260526185140-fb298caac7ca/go.mod h1:2TGl1jRJrRpbzykmg7asHm3h08TqutUgQqY5v9k/g3c= +github.com/dgryski/go-metro v0.0.0-20250106013310-edb8663e5e33 h1:ucRHb6/lvW/+mTEIGbvhcYU3S8+uSNkuMjx/qZFfhtM= +github.com/dgryski/go-metro v0.0.0-20250106013310-edb8663e5e33/go.mod h1:c9O8+fpSOX1DM8cPNSkX/qsBWdkD4yd2dpciOWQjpBw= +github.com/digitalocean/go-smbios v0.0.0-20180907143718-390a4f403a8e h1:vUmf0yezR0y7jJ5pceLHthLaYf4bA5T14B6q39S4q2Q= +github.com/digitalocean/go-smbios v0.0.0-20180907143718-390a4f403a8e/go.mod h1:YTIHhz/QFSYnu/EhlF2SpU2Uk+32abacUYA5ZPljz1A= +github.com/djherbis/times v1.6.0 h1:w2ctJ92J8fBvWPxugmXIv7Nz7Q3iDMKNx9v5ocVH20c= +github.com/djherbis/times v1.6.0/go.mod h1:gOHeRAz2h+VJNZ5Gmc/o7iD9k4wW7NMVqieYCY99oc0= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho= github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo= +github.com/fxamacker/cbor/v2 v2.9.3 h1:oQBnFATpNdY8gJHTndDDv5Xl4QqNaz51G5LLEPhng3Q= +github.com/fxamacker/cbor/v2 v2.9.3/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= +github.com/gaissmai/bart v0.29.0 h1:wO6HGE8g9YE0Wm0bCpYxwRzfQ4+fbJKOhL64e5ACGCI= +github.com/gaissmai/bart v0.29.0/go.mod h1:GREWQfTLRWz/c5FTOsIw+KkscuFkIV5t8Rp7Nd1Td5c= +github.com/github/fakeca v0.1.0 h1:Km/MVOFvclqxPM9dZBC4+QE564nU4gz4iZ0D9pMw28I= +github.com/github/fakeca v0.1.0/go.mod h1:+bormgoGMMuamOscx7N91aOuUST7wdaJ2rNjeohylyo= +github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3 h1:UADEEmDKgfXbtnGJZ97beY5XLo9ZechG1nlU4KnRrkE= +github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3/go.mod h1:tphK2c80bpPhMOI4v6bIc2xWywPfbqi1Z06+RcrMkDg= +github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= +github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= +github.com/go4org/hashtriemap v0.0.0-20260925222741-44e5305f85d9 h1:J8S+Ms89nvHX1F9Ma2m3KhdTl41ZhbFKMyAJqvDA+iE= +github.com/go4org/hashtriemap v0.0.0-20260925222741-44e5305f85d9/go.mod h1:OGmRfY/9QEK2P5zCRtmqfbCF283xPkU2dvVA4MvbvpI= +github.com/go4org/plan9netshell v0.0.0-20250324183649-788daa080737 h1:cf60tHxREO3g1nroKr2osU3JWZsJzkfi7rEg+oAB0Lo= +github.com/go4org/plan9netshell v0.0.0-20250324183649-788daa080737/go.mod h1:MIS0jDzbU/vuM9MC4YnBITCv+RYuTRq8dJzmCrFsK9g= +github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ= +github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c= +github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ= +github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw= +github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= +github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/go-tpm v0.9.8 h1:slArAR9Ft+1ybZu0lBwpSmpwhRXaa85hWtMinMyRAWo= +github.com/google/go-tpm v0.9.8/go.mod h1:h9jEsEECg7gtLis0upRBQU+GhYVH6jMjrFxI8u6bVUY= +github.com/google/nftables v0.3.0 h1:bkyZ0cbpVeMHXOrtlFc8ISmfVqq5gPJukoYieyVmITg= +github.com/google/nftables v0.3.0/go.mod h1:BCp9FsrbF1Fn/Yu6CLUc9GGZFw/+hsxfluNXXmxBfRM= github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e h1:ijClszYn+mADRFY17kjQEVQ1XRhq2/JR1M3sGqeJoxs= github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= +github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc= +github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/insomniacslk/dhcp v0.0.0-20260901064844-234b97448fae h1:nXGg65fXsylSUTNNWwvHuQsXev7mhIzQTnZREPTbWzs= +github.com/insomniacslk/dhcp v0.0.0-20260901064844-234b97448fae/go.mod h1:tGfUTcnFYGYvVNCaZZhwlJySU/fQQxh9TmpsFzWXnnY= +github.com/jellydator/ttlcache/v3 v3.4.1 h1:bOdXmXiycyK6E6Qjyuj5vl+/vU3SCOoDs8a86NbHjAQ= +github.com/jellydator/ttlcache/v3 v3.4.1/go.mod h1:j7LO12PNghFg5+0v9budMAT4rDK4JY969jb9vOdOBBk= github.com/jotfs/fastcdc-go v0.2.0 h1:WHYIGk3k9NumGWfp4YMsemEcx/s4JKpGAa6tpCpHJOo= github.com/jotfs/fastcdc-go v0.2.0/go.mod h1:PGFBIloiASFbiKnkCd/hmHXxngxYDYtisyurJ/zyDNM= -github.com/klauspost/cpuid/v2 v2.0.12 h1:p9dKCg8i4gmOxtv35DvrYoWqYzQrvEVdjQ762Y0OqZE= -github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c= -github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= -github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/jsimonetti/rtnetlink v1.4.2 h1:Df9w9TZ3npHTyDn0Ev9e1uzmN2odmXd0QX+J5GTEn90= +github.com/jsimonetti/rtnetlink v1.4.2/go.mod h1:92s6LJdE+1iOrw+F2/RO7LYI2Qd8pPpFNNUYW06gcoM= +github.com/kamstrup/intmap v0.5.2 h1:qnwBm1mh4XAnW9W9Ue9tZtTff8pS6+s6iKF6JRIV2Dk= +github.com/kamstrup/intmap v0.5.2/go.mod h1:gWUVWHKzWj8xpJVFf5GC0O26bWmv3GqdnIX/LMT6Aq4= +github.com/klauspost/compress v1.20.2 h1:v5tiZvm1KGLyg5d5oXdXe3lsSPrbEUiKoXGia//I7Qo= +github.com/klauspost/compress v1.20.2/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= +github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y= +github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0= +github.com/kortschak/wol v0.0.0-20200729010619-da482cc4850a h1:+RR6SqnTkDLWyICxS1xpjCi/3dhyV+TgZwA6Ww3KncQ= +github.com/kortschak/wol v0.0.0-20200729010619-da482cc4850a/go.mod h1:YTtCCM3ryyfiu4F7t8HQ1mxvp1UBdWM2r6Xa+nGWvDk= +github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI= +github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A= +github.com/mdlayher/genetlink v1.4.0 h1:f/Xs7Y2T+GyX9b3dbiUhnLE9InGs5F9RxJ2JwBMl71o= +github.com/mdlayher/genetlink v1.4.0/go.mod h1:d1hrKr8fwZU2JkcAtQUAzeTrI7nbgQSl+5k1cC0biSA= +github.com/mdlayher/netlink v1.11.2 h1:HKh2jqe+omdSWcQ88nrT7INE61B0NXfiSPFdgL4YbNI= +github.com/mdlayher/netlink v1.11.2/go.mod h1:uT2Yc/QLaZubzDpZIBi9d4GoeLwtp3x1AMeqSRrK2sA= +github.com/mdlayher/sdnotify v1.0.0 h1:Ma9XeLVN/l0qpyx1tNeMSeTjCPH6NtuD6/N9XdTlQ3c= +github.com/mdlayher/sdnotify v1.0.0/go.mod h1:HQUmpM4XgYkhDLtd+Uad8ZFK1T9D5+pNxnXQjCeJlGE= +github.com/mdlayher/socket v0.7.0 h1:qVREPVwtUMg17pwvveQxpurq0PVisMxi3FGgpsorMYQ= +github.com/mdlayher/socket v0.7.0/go.mod h1:f7iKql2EK/rfsWYDKofKjk2Ig7I+6HQWdMIdn1tO4A4= +github.com/miekg/dns v1.1.73 h1:uhT8nJxmTrPJYClxVxTCX+CVn6qnzSiybRk72Z6DgrE= +github.com/miekg/dns v1.1.73/go.mod h1:RW2Obtfd5NZHvOFe3zYG0W8koWOQtAzyHaLo8vASBuQ= +github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc= +github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w= github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls= +github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ= +github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8= +github.com/pierrec/lz4/v4 v4.1.26 h1:GrpZw1gZttORinvzBdXPUXATeqlJjqUG/D87TKMnhjY= +github.com/pierrec/lz4/v4 v4.1.26/go.mod h1:EoQMVJgeeEOMsCqCzqFm2O0cJvljX2nGZjcRIPL34O4= +github.com/pires/go-proxyproto v0.15.0 h1:dTshmNbFm/D+0+sbrxUuddPOZ5Y0B7c5NhtsBkm6LqI= +github.com/pires/go-proxyproto v0.15.0/go.mod h1:OXsCrKwrK2tXS9YrI5tkHx5xaQlO8FH3lFW76orFh24= +github.com/pkg/sftp v1.13.11 h1:0N92SLTB8JqASJB14ZLHHzFnBV8mG9zw4K7jghEFWuE= +github.com/pkg/sftp v1.13.11/go.mod h1:uNkH9roSXglNJqM+glJJi+TQXQUm0fXFWqCFmT8hsN0= +github.com/prometheus/client_model v0.6.3 h1:O0jaTVAYNxTHYInEPFJt5I3+sN8zqBtVMPTB1qyxiEo= +github.com/prometheus/client_model v0.6.3/go.mod h1:gpN5P9S7Rr6Yr92PiQ+Ixvhf6JZEkF1dnxsYL2aPBEM= +github.com/prometheus/common v0.71.0 h1:9KDAKb7Mj3HEVKyFCK6Dc/HIwlBzZIN2l7/lrHl3KK8= +github.com/prometheus/common v0.71.0/go.mod h1:CLJ5H8TEsGX8bl31BdMkfhIZ+QmZ9tBPPotUxUbfcmk= github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE= github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= +github.com/rogpeppe/go-internal v1.16.0 h1:O9DK+vNMDVGLr2BeZqmpLeMjiMNkuXfcqntWbZV6S5g= +github.com/rogpeppe/go-internal v1.16.0/go.mod h1:DrUVZyrJU+txYW5/1kwtXQSMFio52ZOxX7yM1VHvnxs= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/safchain/ethtool v0.7.0 h1:rlJzfDetsVvT61uz8x1YIcFn12akMfuPulHtZjtb7Is= +github.com/safchain/ethtool v0.7.0/go.mod h1:MenQKEjXdfkjD3mp2QdCk8B/hwvkrlOTm/FD4gTpFxQ= github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= -github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY= github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/studio-b12/gowebdav v0.13.0 h1:OcwSg6IQHOFNdYHn3bPOHwSE8looG8N56Y5xTT1asqQ= +github.com/studio-b12/gowebdav v0.13.0/go.mod h1:bHA7t77X/QFExdeAnDzK6vKM34kEZAcE1OX4MfiwjkE= +github.com/tailscale/certstore v0.1.1-0.20260409135935-3638fb84b77d h1:JcGKBZAL7ePLwOhUdN8qGQZlP5GueEiIZwY7R62pejE= +github.com/tailscale/certstore v0.1.1-0.20260409135935-3638fb84b77d/go.mod h1:XrBNfAFN+pwoWuksbFS9Ccxnopa15zJGgXRFN90l3K4= +github.com/tailscale/gliderssh v0.3.4-0.20261026144310-31f7cf365d3a h1:LQfS++EBVN2Bk9/FbFjJmdP/CsebU0OupOX58tO4p04= +github.com/tailscale/gliderssh v0.3.4-0.20261026144310-31f7cf365d3a/go.mod h1:wn16Km1EZOX4UEAyaZa3dBwfFGOJ7neck40NcwosJUw= +github.com/tailscale/go-winio v0.0.0-20231025203758-c4f33415bf55 h1:Gzfnfk2TWrk8Jj4P4c1a3CtQyMaTVCznlkLZI++hok4= +github.com/tailscale/go-winio v0.0.0-20231025203758-c4f33415bf55/go.mod h1:4k4QO+dQ3R5FofL+SanAUZe+/QfeK0+OIuwDIRu2vSg= +github.com/tailscale/golang-x-crypto v0.0.0-20260720160339-c86ca1284b96 h1:m9EAsCu/afUkg9YkknXaRqMPl/omkUNRol5yB7hbG0Y= +github.com/tailscale/golang-x-crypto v0.0.0-20260720160339-c86ca1284b96/go.mod h1:NC3xRCu4UR+m4n6ix8b6oLLbHa820Y0StbOQEdWTDo0= +github.com/tailscale/hujson v0.0.0-20260727124030-b80ff77dac4f h1:9hiVElpCmKzsBKQHkBqZ8LGzt82iLfM8egxr4sew+Ys= +github.com/tailscale/hujson v0.0.0-20260727124030-b80ff77dac4f/go.mod h1:8/zr1Tv0+cKpVtGCEB/7YfRXr2TszsMxMXLaT8YuBgU= +github.com/tailscale/netlink v1.1.1-0.20240822203006-4d49adab4de7 h1:uFsXVBE9Qr4ZoF094vE6iYTLDl0qCiKzYXlL6UeWObU= +github.com/tailscale/netlink v1.1.1-0.20240822203006-4d49adab4de7/go.mod h1:NzVQi3Mleb+qzq8VmcWpSkcSYxXIg0DkI6XDzpVkhJ0= +github.com/tailscale/peercred v0.0.0-20250107143737-35a0c7bd7edc h1:24heQPtnFR+yfntqhI3oAu9i27nEojcQ4NuBQOo5ZFA= +github.com/tailscale/peercred v0.0.0-20250107143737-35a0c7bd7edc/go.mod h1:f93CXfllFsO9ZQVq+Zocb1Gp4G5Fz0b0rXHLOzt/Djc= +github.com/tailscale/web-client-prebuilt v0.0.0-20260917222731-e0ed2d0d0fea h1:ah5jt6ZnxMvNclt6kBBoLcMpLLjMA44PTsnov2y7gpU= +github.com/tailscale/web-client-prebuilt v0.0.0-20260917222731-e0ed2d0d0fea/go.mod h1:agQPE6y6ldqCOui2gkIh7ZMztTkIQKH049tv8siLuNQ= +github.com/tailscale/wf v0.0.0-20240214030419-6fbb0a674ee6 h1:l10Gi6w9jxvinoiq15g8OToDdASBni4CyJOdHY1Hr8M= +github.com/tailscale/wf v0.0.0-20240214030419-6fbb0a674ee6/go.mod h1:ZXRML051h7o4OcI0d3AaILDIad/Xw0IkXaHM17dic1Y= +github.com/tailscale/wireguard-go v0.0.0-20261121000637-a8c4fbf26d6c h1:hLTbcmifu309AoHUdjK+x5mFv/rp2kC01JHkdhCS48A= +github.com/tailscale/wireguard-go v0.0.0-20261121000637-a8c4fbf26d6c/go.mod h1:Hl7pyu83xNjc1LY5e9apq2mWm8Hl76wRtJbwZ2XISqY= +github.com/tailscale/xnet v0.0.0-20240729143630-8497ac4dab2e h1:zOGKqN5D5hHhiYUp091JqK7DPCqSARyUfduhGUY8Bek= +github.com/tailscale/xnet v0.0.0-20240729143630-8497ac4dab2e/go.mod h1:orPd6JZXXRyuDusYilywte7k094d7dycXXU5YnWsrwg= +github.com/tc-hib/winres v0.3.1 h1:CwRjEGrKdbi5CvZ4ID+iyVhgyfatxFoizjPhzez9Io4= +github.com/tc-hib/winres v0.3.1/go.mod h1:C/JaNhH3KBvhNKVbvdlDWkbMDO9H4fKKDaN7/07SSuk= +github.com/u-root/u-root v0.16.0 h1:wY40O83MBVks97+Is0WlFlOPSwKQMIrWP9R1IsrExg8= +github.com/u-root/u-root v0.16.0/go.mod h1:yL/XdSSW27PdGLgUh4MNRBy54mKM+TBLzpwiB4nwj90= +github.com/u-root/uio v0.0.0-20240224005618-d2acac8f3701 h1:pyC9PaHYZFgEKFdlp3G8RaCKgVpHZnecvArXvPXcFkM= +github.com/u-root/uio v0.0.0-20240224005618-d2acac8f3701/go.mod h1:P3a5rG4X7tI17Nn3aOIAYr5HbIMukwXG0urG0WuL8OA= +github.com/vishvananda/netns v0.0.5 h1:DfiHV+j8bA32MFM7bfEunvT8IAqQ/NzSJHtcmW5zdEY= +github.com/vishvananda/netns v0.0.5/go.mod h1:SpkAiCQRtJ6TvvxPnOSyH3BMl6unz3xZlaprSwhNNJM= +github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= +github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/zeebo/assert v1.1.0 h1:hU1L1vLTHsnO8x8c9KAR5GmM5QscxHg5RNU5z5qbUWY= github.com/zeebo/assert v1.1.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= github.com/zeebo/blake3 v0.2.4 h1:KYQPkhpRtcqh0ssGYcKLG1JYvddkEA8QwCM/yBqhaZI= @@ -35,18 +221,52 @@ github.com/zeebo/blake3 v0.2.4/go.mod h1:7eeQ6d2iXWRGF6npfaxl2CU+xy2Fjo2gxeyZGCR github.com/zeebo/pcg v1.0.1 h1:lyqfGeWiv4ahac6ttHs+I5hwtH/+1mrhlCtVNQM2kHo= github.com/zeebo/pcg v1.0.1/go.mod h1:09F0S9iiKrwn9rlI5yjLkmrug154/YRW6KnnXVDM/l4= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= -golang.org/x/mod v0.36.0 h1:JJjpVx6myfUsUdAzZuOSTTmRE0PfZeNWzzvKrP7amb4= -golang.org/x/mod v0.36.0/go.mod h1:moc6ELqsWcOw5Ef3xVprK5ul/MvtVvkIXLziUOICjUQ= -golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= -golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ= -golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U= -golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= -golang.org/x/tools v0.45.0 h1:18qN3FAooORvApf5XjCXgsuayZOEtXf6JK18I3+ONa8= -golang.org/x/tools v0.45.0/go.mod h1:LuUGqqaXcXMEFEruIVJVm5mgDD8vww/z/SR1gQ4uE/0= +go4.org/mem v0.0.0-20240501181205-ae6ca9944745 h1:Tl++JLUCe4sxGu8cTpDzRLd3tN7US4hOxG5YpKCzkek= +go4.org/mem v0.0.0-20240501181205-ae6ca9944745/go.mod h1:reUoABIJ9ikfM5sgtSF3Wushcza7+WeD01VB9Lirh3g= +go4.org/netipx v0.0.0-20260823151212-3075585bcbeb h1:XBM4hvfwGAttkkiTIFfeigdfcL1xIfdKXqFdgiHGtDs= +go4.org/netipx v0.0.0-20260823151212-3075585bcbeb/go.mod h1:PLyyIXexvUFg3Owu6p/WfdlivPbZJsZdgWZlrGope/Y= +golang.org/x/crypto v0.59.0 h1:xS2jhqYbzNrpvkWP2YTDf4TJwBy3ykR03i8vFDxEc7c= +golang.org/x/crypto v0.59.0/go.mod h1:veDyUwATGs3c+vN3VfTbzViMGXeTBk3WyhBOkn+F/4U= +golang.org/x/exp v0.0.0-20260908205506-85c1c2202aba h1:Ck8QetSgk912qxWLMCKxd0in+aiyBQyDSMae6e/xmpU= +golang.org/x/exp v0.0.0-20260908205506-85c1c2202aba/go.mod h1:50RgIsmK7OwqzTTeqcSXQW8SswW0o8fRcDxmqGluJ8E= +golang.org/x/exp/typeparams v0.0.0-20260811152304-ee035b5b010f h1:+lI8cDJ4uceLipg2f1ODay7fEuLkk0BIHXd6PB8icxo= +golang.org/x/exp/typeparams v0.0.0-20260811152304-ee035b5b010f/go.mod h1:PqrXSW65cXDZH0k4IeUbhmg/bcAZDbzNz3byBpKCsXo= +golang.org/x/image v0.46.0 h1:b1+oYj0Jbp6K5MDT4i4/eZpYlk3V8SJhhDKh6LBHAyQ= +golang.org/x/image v0.46.0/go.mod h1:3B3W05VGVQyuXucLINLjXKrqISASfi4Xj+iCVkLMwew= +golang.org/x/mod v0.43.0 h1:MFuq5J6s35W9D3IjkwyWc9vHh0nENOrt5K8Iof4ofmg= +golang.org/x/mod v0.43.0/go.mod h1:4ec1JnuyBz5+FIVhg86UsA39YG8BpnrZdJYSNHmGzHY= +golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY= +golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/oauth2 v0.37.0 h1:JUlcxA8oAtauLfiH8FX2/FkAWHAdi0QtGCGc+hofE98= +golang.org/x/oauth2 v0.37.0/go.mod h1:IxwZNxUULJmpBFf9K/9NTMSIfZZuvuTy1gGxhigP/58= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.25.0 h1:dJnifr0nMV8/SBnBvdo4eSGGnrc3O4FFx6IqvtLcmRs= +golang.org/x/sync v0.25.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= +golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs= +golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/term v0.48.0 h1:G6UU1eiSB8nl3DzeUGt7Mg+2SctI8tPS6Z5/mBt6cOk= +golang.org/x/term v0.48.0/go.mod h1:BRDLHCZr2SUjIeBHHpRyQeC9xzSAVbzY2rvKgafnHf4= +golang.org/x/text v0.44.0 h1:YItdp/mQNGnsmrgpcdA5yQ3bnRxCfo/Tj/iByGW9GGo= +golang.org/x/text v0.44.0/go.mod h1:S4FR1waQ9LbjQTls97SyRjDaUUVkaM+cXwwuG/G+MwY= +golang.org/x/time v0.16.0 h1:vMb6ptszcQMkcwiRTAuNNU50gom6++Q/6gY2hDM6VDE= +golang.org/x/time v0.16.0/go.mod h1:rVKOqvZeKvrDKTQiAHJ7wmwP0RzleSphoEA9RcdLA0s= +golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs= +golang.org/x/tools v0.52.0/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs= +golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2 h1:B82qJJgjvYKsXS9jeunTOisW56dUokqW/FOteYJJ/yg= +golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2/go.mod h1:deeaetjYA+DHMHg+sMSMI58GrEteJUUzzw7en6TJQcI= +golang.zx2c4.com/wireguard v0.0.0-20260522210424-ecfc5a8d5446 h1:cqHQ3AycTHvM2R7ikgyX57D+XvtcSnGylsLkOVhta/w= +golang.zx2c4.com/wireguard v0.0.0-20260522210424-ecfc5a8d5446/go.mod h1:rpwXGsirqLqN2L0JDJQlwOboGHmptD5ZD6T2VmcqhTw= +golang.zx2c4.com/wireguard/windows v1.0.1 h1:eOxiDVbywPC+ZQqvdCK7x+ZwWXKbYv50TtH8ysFIbw8= +golang.zx2c4.com/wireguard/windows v1.0.1/go.mod h1:+fbT3FFdX4zzYDLwJh5+HPEcNN/3HyNdzhNSVsQM+zs= +google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= +google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gvisor.dev/gvisor v0.0.0-20261117040555-0303b2605d5e h1:C8oki8tmVQV5lF7v9bLrdxu4q5Q1tpybmOtQNUmRiHQ= +gvisor.dev/gvisor v0.0.0-20261117040555-0303b2605d5e/go.mod h1:AGCFHJ8yer01MsPbOE1JJtEOoLx79kr4ranU2wAm67k= +honnef.co/go/tools v0.8.1 h1:+JKf3xJ1ni4CwrhVg4/pqsfPGP6vNAXcKbMXJodYx3w= +honnef.co/go/tools v0.8.1/go.mod h1:XA+OnlRA9EDh/ukGvXMNSZNKGwFQJ+5dER0ioUkOxks= +howett.net/plist v1.0.0 h1:7CrbWYbPPO/PyNy38b2EB/+gYbjCe2DXBxgtOOZbSQM= +howett.net/plist v1.0.0/go.mod h1:lqaXoTrLY4hg8tnEzNru53gicrbv7rrk+2xJA/7hw9g= modernc.org/cc/v4 v4.28.4 h1:Hd/4Es+MBj+/7hSdZaisNyu6bv3V0Dp2MdllyfqaH+c= modernc.org/cc/v4 v4.28.4/go.mod h1:OnovgIhbbMXMu1aISnJ0wvVD1KnW+cAUJkIrAWh+kVI= modernc.org/ccgo/v4 v4.34.4 h1:OVnSOWQjVKOYkFxoHYB+qQmSHK5gqMqARM+K9DpR/Ws= @@ -75,3 +295,7 @@ modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0= modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A= modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y= modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= +software.sslmate.com/src/go-pkcs12 v0.7.3 h1:JBQD3FDqYjTeyDAeZQklj2ar88ykBLtALloPJHyAauU= +software.sslmate.com/src/go-pkcs12 v0.7.3/go.mod h1:Qiz0EyvDRJjjxGyUQa2cCNZn/wMyzrRJ/qcDXOQazLI= +tailscale.com v1.106.1 h1:MEOYydLTNoxRsrI3X7v6fdtFZO+ZZjBkZc23cYPjvhc= +tailscale.com v1.106.1/go.mod h1:eVHgu17wdbpt5GNukZWlvV1YKlBt3rn0lguCyab6+t8=