Part 11 of the GoWind series. Day-to-day ops across multiple machines usually lives scattered across SSH terminals, script folders, cron jobs, and chat logs — impossible to audit, worse to hand off. GoWind Ops consolidates it into one self-hosted platform: machines, projects, scripts, builds, and distribution — full-stack Go, MIT-licensed, with the audit trail designed in rather than bolted on.

The design decision everything hangs on: outbound-only agents

The Agent is an edge proxy with no UI, and it makes exactly one outbound MQTT connection to EMQX (TLS 8883). A managed node needs no inbound ports opened at all to join — which is both the security story and the deployment story behind NATs and firewalls.

The signaling layer is worth appreciating as a distributed-systems exercise:

  • Shared subscriptions on MQTT for horizontal scaling of the platform itself
  • QoS1 + idempotent deduplication — at-least-once delivery without duplicate execution
  • Command envelopes signed with HMAC-SHA256 — tamper-proof and replay-proof, with idempotent request_ids
  • Broker authentication callback hooked into platform admission: nodes join via TOFU (Trust On First Use) machine fingerprint, so unknown nodes stay out

Audit as a first-class citizen

Most ops tools treat history as a log file. GoWind Ops treats it as evidence:

  • Command ledger — every dispatch records its receipt, exit code, duration, and idempotent request id
  • Web terminal (xterm.js) — full session recording with read-only replay, one-time tickets, idle auto-disconnect; watch what actually happened on the box, security-camera style
  • Six audit log categories with a hash chain + ECDSA signatures, shipped with verification tools — tampering with history is detectable, not just discouraged
  • Operation approvals — sensitive operations create a ticket first; approval tickets expire on timeout
  • Maintenance windows — alert suppression during quiet periods, so 3 a.m. changes don't wake the whole channel

If you read the zero-trust post, the philosophy is the same: in environments where "who did what, when" is a compliance requirement, replayable evidence beats trust.

What you can actually do

Domain Capabilities
Nodes & projects fingerprint admission, 30s heartbeats with CPU/mem/disk trends, projects as node+directory+start/stop with change timelines, live WebSocket log tailing
Terminal & files web terminal with replay, online file editing, drag-and-drop + presigned direct upload, multi-host batch commands
Scripts → build → distribute versioned scripts (timeouts kill the process tree), AES-encrypted git repo storage, artifact builds with live-tailed logs, batched gray release, Zip-Slip-hardened zips, Docker tag injection
Config center template-rendered dispatch, configuration drift detection
Observability four alert types (project liveness / node thresholds / lost contact / process guard) with automatic RECOVERY flags; DingTalk/Feishu/WeCom/email channels; certificate expiry ledger; backup & one-click restore; inspection reports
Multi-cloud view Alibaba Cloud / Tencent Cloud / Huawei Cloud / AWS accounts — resource inventory, multi-currency cost ledger, bill import, budget & spike alerts
Platform surface OpenAPI with API keys, GitHub/GitLab/Gitea webhooks, environment promotion pipeline (same artifact, stage by stage), plugin commands, remote agent self-upgrade

The BUILD → SCRIPT → DISTRIBUTION pipeline is the workflow that replaces the "Friday deployment shell script in someone's home directory": build from source, artifact into object storage, batched gray rollout to node groups, every step ledgered.

Stack

Go 1.26+ on go-kratos (four services: core gRPC, admin BFF :18600, front BFF :18700, agent), EMQX for signaling, Ent + PostgreSQL/MySQL, Redis + Asynq, MinIO for artifacts and presigned uploads, Jaeger + OpenTelemetry for tracing. The admin frontend is React 19 + AntD 6. It shares the Admin console foundation — MFA TOTP + backup codes and OIDC SSO included.

Honest label

v1.0.0 is being finalized — Phases 1–10 are complete, and the repo is public now under MIT: github.com/tx7do/go-wind-ops · quick start. If you run a handful of servers and your ops workflow is "SSH + tmux + hope", this is exactly the tool whose feedback would be most useful — issues open.

That's the GoWind series so far: architecture · YAML assembly · plugins · zero-trust · CDC · Flutter kanban · Rust port · admin scaffold · analytics · game radar · ops.

GoWind: https://www.gowind.cloud · GitHub: https://github.com/tx7do