DEV Community

fab
fab

Posted on

GitOps for Proxmox

Proxxx update released on GitHub ^_^

Who is this for?

Pick the row that matches you and jump straight to the right page.

If you are… …you'll care about Start here
Homelab solo running 1-3 nodes wizard, fast TUI, single binary, no daemons 5-min homelab quickstart
Platform / SRE on 10-50 nodes with on-call HITL Telegram gate, alert daemon, --format json for CI, --profile for multi-cluster Production checklist · HITL
DevOps scripting Proxmox in pipelines typed exit codes, deterministic JSON, pre-flight risk gate, batch ops with --yes CLI reference · Exit codes
LLM / agent integrator wiring Claude/Cursor to a cluster MCP server (stdio + Streamable HTTP), compile-time-fixed 25-tool registry, SHA-256 pinned for supply-chain audit LLM/MCP quickstart
Security / compliance evaluating before deploy typed errors, HITL replay protection, sigstore-signed releases, CycloneDX SBOM, gate on every commit THREAT_MODEL.md · SECURITY.md · Production checklist
EU-regulated ops (NIS2 / ISO 27001 / GDPR) append-only SQLite audit log with HMAC-SHA256 chain, proxxx audit verify, zero telemetry, fully self-hosted EU & compliance
Contributor sending a PR 8-stage commit gate (fmt + clippy + audit + cargo-deny + test+proptest + live cluster + mutation lifecycle), no-skip-flags policy ARCHITECTURE.md · CONTRIBUTING.md · Pre-commit gate

What you get

  • One binary — proxxx. CLI, TUI, MCP server, unified daemon (alerts + HITL + schedule) all in the same executable.
  • Cluster-wide read in a second — proxxx ls nodes, proxxx ls guests, fuzzy search across the whole cluster from /. --all-profiles fans the read across every configured cluster in parallel.
  • GitOps for Proxmox — proxxx state {export,diff,apply} produces a sorted TOML (only meta.exported_at changes between exports of an unchanged cluster) across ten state families (pools, ACL grants, storage definitions, backup jobs, cluster firewall, notification matchers, HA rules, HA resources, and PCI + USB device mappings — passthrough-as-code), diffs against live, converges via dispatched API calls. Pre-flight risk gates refuse Severe changes (non-empty pool delete, root-role ACL delete, shared-storage delete, HA-rule strict-flip, passthrough-mapping delete) unless --allow-risk; --interactive adds per-Severe [y/N] stdin prompts. The reconcile controller runs that loop continuously: reconcile run (CI-gateable drift check) and reconcile converge (push-mode apply, same safety gate), plus an opt-in unmanned auto_converge daemon that self-heals drift on a timer — and never auto-applies a Severe change (it alerts for human review instead).
  • Pipeline writes — start, stop, migrate, snapshot, clone, backup, patch, disk-move, with --format json for jq. migrate --stream shows live per-disk progress.
  • Pre-flight risk gate — both per-guest (Locked/Running/LongUptime/TaggedProd/ActiveNetTraffic/HaManaged + 5 more) and state-change (PoolDeleteNonEmpty/AclDeleteRootRole/StorageDeleteShared/BackupJobDelete/NotificationMatcherDelete/HaRuleDelete/HaRuleStrictChange/HaResourceDelete/HaResourceStateChange/BulkChangeCount) — refuses destructive ops without explicit override.
  • HITL — Telegram-mediated human approval gate, deny-on-timeout (120 s), policy-driven by tag / vmid / wildcard.
  • Incident lockdown — proxxx incident freeze --reason X --ttl 4h halts every mutation cluster-wide (POST/PUT/DELETE refuse with exit 8); thaw lifts it. Reads keep working for investigators.
  • Console handoff + recording — SSH/serial/SPICE/noVNC, all from proxxx <verb> <vmid>. proxxx serial --record writes asciinema cast v2; proxxx play-cast replays.
  • Cross-cluster — proxxx find <vmid> answers "which cluster owns this guest?" without manual profile-switching.
  • Fleet view — proxxx fleet aggregates every configured profile (clusters + standalone hosts, mixed) into one read-only TUI: per-cluster health summary + an aggregated guest table. ↑↓ select a cluster, Tab toggle the guest pane (selected vs whole fleet), Enter drill into a cluster's full TUI, q quit.
  • Read-only profiles — read_only = true on a profile makes proxxx refuse every mutation on it client-side (reads still work); pair with a PVEAuditor PVE token for a server-enforced lock too. Observe production safely, write only on your test cluster.
  • PBS browse + restore — REST browse plus proxmox-backup-client restore with kill_on_drop supervision. proxxx backup-verify does metadata-level integrity probing.
  • Observability — proxxx logs tail (cross-node journalctl fanout via SSH), proxxx heatmap (per-node API RTT), proxxx anomaly (z-score outliers), proxxx accounting --timeframe month (CPU-hours/GiB·h/net-GiB from per-guest RRD).
  • Upgrade pre-flight — proxxx upgrade-check --target 9.x scans cluster + config against bundled rules; exit code 1 on any block-severity finding (CI-gateable).
  • Bundled error knowledge base — proxxx explain <error-id> for every typed error proxxx can emit (15 entries; ships with the binary, no network needed).
  • Cluster digest for LLMs — proxxx describe --output llm-context emits a token-compact prose+key:value paste-pronto for AI chats.
  • MCP server — stdio JSON-RPC + HTTP/SSE for LLM agents, compile-time-fixed tool registry, surface SHA-256 pinned. Server-sent notifications/cluster-event on both transports (task lifecycle + freeze/thaw events). Security defaults: destructive tools are fail-closed — refused unless a matching [[policies]] entry routes them through HITL approval — and serve-http binds loopback-only, refusing a non-loopback bind unless mcp_token is set.
  • Verifiable releases — every tarball ships with three layers: SHA-256 sidecar, sigstore keyless cosign signature pinned to this exact workflow path (offline-verifiable; transparency-log inclusion proof embedded), and a CycloneDX SBOM generated from Cargo.lock. Audit with cosign verify-blob + grype / trivy.

Enjoy and contribute: https://github.com/fabriziosalmi/proxxx

Top comments (0)