mistgate

module
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: AGPL-3.0

README

Mistgate is a lightweight, self-hosted panel for your own VPN fleet: one Go binary for the panel, one for the node agent, no Docker. Hysteria2 and AmneziaWG live side by side, in one subscription, in one admin UI. The panel keeps users, profiles and nodes; the agent on each node runs the protocols and keeps the host in the state the panel asks for.

Install with an AI agent. Claude Code, Codex CLI or any agent that can run ssh on your computer can install the panel for you: copy the install prompt from the AI agent guide. It asks before every change and hands you the setup link; you create the owner account yourself.

Why another panel

  • Light. SQLite, systemd, two static binaries. No Docker, no database server. The panel's memory target at idle is 80 MB (a target for now, not a benchmark).
  • AmneziaWG users are not a blind spot. Every AmneziaWG device is a peer the panel knows about: who is online, traffic per user and per device.
  • A doctor that knows hosters. Disk and journals filling up, a resolver that cannot resolve, clock drift, port conflicts, network settings that drifted from the baseline (fq, BBR). Found, explained in plain words, fixed with one confirmed click where that is safe.
  • Looked at from the client's side. The panel connects to every profile on every node the way a real client does (Hysteria2 and AmneziaWG), so a node is green only if traffic really flows.
  • Hidden by default. The public listener serves a decoy site (built-in or your own directory). The admin lives under a secret path prefix, a secret host or a separate listener, and unknown subscription tokens get the same decoy.
  • Made for AI agents too. API tokens and an MCP server, with plan / apply and owner approvals for anything risky; ready prompts for installing and running the fleet.

What is inside

The fleet Access and tooling
  Hysteria2 and AmneziaWG
Hysteria2 on the official core with Salamander; AmneziaWG 2.0 / 3.1, userspace by default or the kernel module per node. Several profiles per node. Protocols are plugins with a schema-driven editor.
  Subscriptions
One link per person. Each app gets the format it reads, chosen by User-Agent rules: a URI list for apps such as Happ, a Mihomo YAML profile for kl!ck, the desktop app Mistgate recommends, Clash Verge or FlClash. A browser gets the person's page; AmneziaVPN gets a vpn:// key per device. See Client apps.
  WARP egress
Send a profile's traffic out through Cloudflare WARP. If the WARP link drops, the profile fails closed instead of leaking direct.
  Users and devices
Groups, one peer per device, traffic limits, DNS presets per user or group. A user page with instructions per platform, a QR code, traffic and term, behind its own password; people can add their own AmneziaWG devices there if you allow it.
  Fleet doctor
Node self-checks with safe fixes, client-eye checks, alerts with a full lifecycle, and per-node torrent protection that blocks recognized BitTorrent in the kernel without logging addresses.
  Admin UI
Russian and English, dark and light. Sign-in with a passkey or a password plus an authenticator code, optional Cloudflare Turnstile, an audit log.
  Install over SSH
Confirm the host key, type the password, watch the node connect. The panel checks the server first, prepares an active host firewall and keeps the SSH access encrypted, with a verified password change.
  Encrypted backups
Scheduled backups to your Cloudflare R2 bucket, encrypted to an offline recovery key before they leave the panel, with retention and an offline restore.
  Signed updates
Node agents and the panel install only releases signed with the release key. Update a node now or on a schedule, with a health gate and automatic rollback.
  Agent access
Scripts use the same Connect API as the admin with readonly, operator and admin tokens. AI agents use the built-in MCP server; changes go through plan / apply, the risky ones wait for the owner.

Status

Mistgate is in early releases; the current one is v0.1.15. It runs in production for its author, but the API, stored settings and node protocol may still change before 1.0. Linux binaries for amd64 and arm64 are on GitHub Releases; build from source for other targets.

Stage What
Done Panel and node agent over mTLS · Hysteria2 · AmneziaWG 2.0 / 3.1 · WARP egress · subscriptions and the user page · DNS presets · health doctor, client-eye checks, alerts · per-node torrent protection · SSH installation from the admin and through MCP with owner approval · saved SSH access with verified password change · encrypted Cloudflare R2 backups and restore · signed node updates, now or scheduled, with health gate and rollback · panel self-update from signed releases · reproducible, offline-signed releases · API tokens and MCP server · admin UI in ru / en
Now Field testing of v0.1.15 in production: torrent protection, SSH installation and recovery, signed panel and node releases
Next Telegram bot for the whole fleet · more subscription formats (Xray JSON, sing-box) and subscription mirrors · a one-line installer
Later VLESS REALITY as the first external protocol plugin

Details and the known limits: Status and roadmap. Some defaults lean towards users in Russia (Yandex DNS for nodes in Russia, the control domains of the node doctor, split-DNS presets); all of them are settings.

Quick start

You need a Linux server with systemd and a domain pointing at it (here panel.example.com), with TCP 80 and 443 free. On the server, as root:

ARCH=amd64    # arm64 on an ARM server
for f in "mistgate-linux-$ARCH" SHA256SUMS; do
  curl -fsSLO "https://github.com/Mistgate/mistgate/releases/latest/download/$f"
done
sha256sum --check --ignore-missing SHA256SUMS
install -m 0755 "mistgate-linux-$ARCH" /usr/local/bin/mistgate
mistgate setup --public-url https://panel.example.com
#   prints the admin URL (https://panel.example.com/<secret prefix>/) and a one-time setup link
mistgate serve --listen :443 --acme-domain panel.example.com    # a first run in the foreground

Then run serve under systemd with the unit from Install the panel, open the setup link and create the owner (a passkey, or a password with an authenticator code). The install page also covers what the checksum does and does not prove, the secret admin host or separate listener (setup --admin-host, --admin-listen), your own certificate (--tls-cert, --tls-key) and your own decoy site (--decoy-dir). mistgate serve -h lists every flag, each with a MISTGATE_* environment fallback.

Add nodes in Nodes → Add node:

  • Install automatically over SSH: enter the server's address, confirm its host key, type the password; the panel checks the server, installs the agent and waits for it. See Install a node over SSH.
  • Get a manual install command: copy mistgate-node to the server and run the one-time command as root. See Add a node.
chmod +x /root/mistgate-node && /root/mistgate-node enroll --panel panel.example.com:443 --sni <secret name> \
  --ca-sha256 <fingerprint> --token <one-time token> && /root/mistgate-node install

Then create a profile, put it on the node, give it to a group and create users; the first-run checklist on the Overview walks through it (First users).

Note: in the API the subscription way is the enum value HAPP (and access.happ, users.apps.happ). It means "by the subscription link", whatever app opens it; AMNEZIA means "by an AmneziaWG key".

Documentation

The full documentation is at mistgate.app (Russian: mistgate.app/ru); its source is docs/, which reads the same on GitHub. Good places to start:

Coding agents should start with AGENTS.md; the published site also has llms.txt.

Requirements

  • Panel: Linux (amd64 or arm64) with systemd, a domain name, ports 443 (and 80 for Let's Encrypt). Data lives in SQLite under /var/lib/mistgate.
  • Nodes: Linux with systemd (Ubuntu 22.04+ or Debian 12+), root or passwordless sudo, a public address, the UDP ports of your profiles open. The agent dials the panel, so a node needs no inbound management port.
  • Building: Go 1.27 (the toolchain line in go.mod; GOTOOLCHAIN=auto fetches it), Node.js 22+, pnpm 10, make and a POSIX shell (Git Bash or WSL on Windows).

Development

cmd/mistgate/            panel: serve, setup, backup, auth, mcp (stdio proxy), release, version
cmd/mistgate-node/       node agent: enroll, install, run, cleanup-net, awg prepare-kernel, version
proto/mistgate/          admin API and panel <-> agent API (Connect-RPC)
gen/, web/src/gen/       generated from proto/ (never edit by hand)
internal/panel/          panel modules: store, vault, auth, fleet, access, subs, protocols, health, update, provision, backup, warp, mcp, httpserver ...
internal/node/           agent modules: agent, engine, hysteria2, awg, warp, hostctl, doctor, torrentguard, update ...
web/                     admin SPA (Vite, React, TypeScript, TanStack Router/Query, Tailwind) and the user page
docs/, site/             the documentation (en, ru) and the static site built from it
scripts/                 end-to-end tests

Linux-only code (nftables, netlink, AmneziaWG, systemd) sits behind //go:build linux with stubs, so go build ./..., go vet ./... and go test ./... work on Windows and macOS too.

make build                            # bin/mistgate-linux-{amd64,arm64}, bin/mistgate-node-linux-{amd64,arm64}
make dev                              # the panel in dev mode: decoy :8080, admin :8081, agent endpoint :8082, data in ./.data
cd web && pnpm install && pnpm dev    # Vite on http://localhost:5173 with hot reload, proxied to the admin on :8081
make test                             # go vet, go test, then pnpm typecheck, lint and vitest
make gen                              # buf lint + buf generate after editing proto/ (remote plugins: needs internet)
  • On first start the dev panel prints a one-time setup link (http://localhost:8081/setup#...). Reset everything by stopping it and deleting ./.data.
  • If 8081 is taken, run the panel with --admin-listen 127.0.0.1:<port> and Vite with MISTGATE_PANEL=http://127.0.0.1:<port> pnpm dev.
  • To try a node against the dev panel, run both in WSL (or a Linux VM): mistgate serve --dev, add the node in the admin, then mistgate-node enroll ... --state-dir /tmp/node and mistgate-node run --state-dir /tmp/node as root. The agent never dials private addresses, so test traffic against a public site.
  • A binary built without RELEASE_KEY cannot update itself or its nodes; see Releases and signing.

End-to-end tests:

  • scripts/e2e-wsl.sh [--keep] [--m3 | --awg | --warp | --mihomo | --m3-only | --old-node <path>]: the panel, a node, a real Hysteria2 client and self-update, optionally AmneziaWG clients, a fake WARP peer and a real mihomo. Runs as root in WSL in its own network namespace (wsl -d Ubuntu -u root -- bash scripts/e2e-wsl.sh from the repo root); needs go, curl, jq, python3 (with yaml for the tunnel steps), openssl, nft, ip, and internet access. 3 to 10 minutes.
  • scripts/e2e-mcp.sh [-mode listener|prefix|both] [-keep]: API tokens and MCP against a real panel on loopback, any OS, no internet, about a minute.

Warning: tests that need root (MG_ROOT_TESTS=1) and the e2e scripts change network state. Run them in WSL or on a disposable VM, never on a production node or panel.

See CONTRIBUTING.md for the conventions, and the contribute prompt if you work with a coding agent.

Releases

Every stable tag builds a draft release in GitHub Actions. A maintainer rebuilds the binaries from the tag on a machine that holds the offline release key, and mistgate release sign signs only binaries that rebuild byte for byte; the signed manifests are uploaded and the draft is published. Panels then download the signed node bundle by themselves and offer the panel update on the Updates page. The whole procedure, building with a key of your own and rotating the key: Releases and signing.

Security notes

  • Back up the panel's data directory (/var/lib/mistgate): it holds the database, the master key that encrypts the stored secrets, and the panel CA the nodes trust. Losing it means re-enrolling every node. Encrypted R2 backups do this on a schedule.
  • Keep the admin behind the secret prefix, a secret host or a separate listener; do not publish its address.
  • API tokens and the MCP endpoint never receive subscription links, device keys, page passwords or server passwords; still, give agents the narrowest profile that works.
  • Report vulnerabilities privately, see SECURITY.md.

License

Mistgate is free software under the GNU Affero General Public License v3.0 only. If you run a modified panel for others, its admin shows a "Source code" link (serve --source-url) that should point to your source.

Directories

Path Synopsis
cmd
mistgate command
Command mistgate is the panel: `serve` runs it, `setup` prepares a new installation.
Command mistgate is the panel: `serve` runs it, `setup` prepares a new installation.
mistgate-node command
Command mistgate-node is the node agent: `enroll` with a panel, `install` the systemd unit, `run` the agent, `version`.
Command mistgate-node is the node agent: `enroll` with a panel, `install` the systemd unit, `run` the agent, `version`.
gen
internal
buildinfo
Package buildinfo holds values stamped into the binaries at build time.
Package buildinfo holds values stamped into the binaries at build time.
decoy
Package decoy is the neutral static site shown to everyone who is not a Hysteria2 client (or an admin): HTTP/3 masquerade, HTTPS on TCP 443, later the panel's public listener.
Package decoy is the neutral static site shown to everyone who is not a Hysteria2 client (or an admin): HTTP/3 masquerade, HTTPS on TCP 443, later the panel's public listener.
dnsdefaults
Package dnsdefaults defines the resolvers the doctor checks and offers for the server's own resolver when the node has none configured.
Package dnsdefaults defines the resolvers the doctor checks and offers for the server's own resolver when the node has none configured.
node/agent
Package agent is the node agent core: it enrolls with the panel, keeps ONE AgentService.Connect stream open (reconnecting with backoff), applies the desired state to the protocol engines, reports traffic reliably (seq + ack), executes commands and serves its own log.
Package agent is the node agent core: it enrolls with the panel, keeps ONE AgentService.Connect stream open (reconnecting with backoff), applies the desired state to the protocol engines, reports traffic reliably (seq + ack), executes commands and serves its own log.
node/awg
Package awg is the node's AmneziaWG engine (engine.Engine).
Package awg is the node's AmneziaWG engine (engine.Engine).
node/awg/awgcfg
Package awgcfg is the pure data model of an AmneziaWG interface shared by the node engine, the wire clients (awgnl, awguapi) and the panel plugin: settings JSON, the strict validator and the peer types.
Package awgcfg is the pure data model of an AmneziaWG interface shared by the node engine, the wire clients (awgnl, awguapi) and the panel plugin: settings JSON, the strict validator and the peer types.
node/awg/awgnl
Package awgnl talks to the amneziawg kernel module over generic netlink (family "amneziawg", WG_GENL_VERSION 3, the AWG 3.0/3.1 encoding).
Package awgnl talks to the amneziawg kernel module over generic netlink (family "amneziawg", WG_GENL_VERSION 3, the AWG 3.0/3.1 encoding).
node/awg/awgtest
Package awgtest is the test harness for AmneziaWG on Linux: network namespaces with veth pairs, real amneziawg-go clients built from the pinned source (never a downloaded binary), and small probes (ping, a "who do you see me as" TCP server, iperf3).
Package awgtest is the test harness for AmneziaWG on Linux: network namespaces with veth pairs, real amneziawg-go clients built from the pinned source (never a downloaded binary), and small probes (ping, a "who do you see me as" TCP server, iperf3).
node/awg/awguapi
Package awguapi renders and parses the UAPI text protocol of amneziawg-go v3.1.x (device.IpcSet / IpcGet).
Package awguapi renders and parses the UAPI text protocol of amneziawg-go v3.1.x (device.IpcSet / IpcGet).
node/awgprep
Package awgprep puts the AmneziaWG kernel module on a node.
Package awgprep puts the AmneziaWG kernel module on a node.
node/certs
Package certs is the node's certificate source (engine.CertSource): ACME for a domain and a persisted self-signed certificate whose SHA-256 pin the panel puts into subscription URIs.
Package certs is the node's certificate source (engine.CertSource): ACME for a domain and a persisted self-signed certificate whose SHA-256 pin the panel puts into subscription URIs.
node/doctor
Package doctor is the node's self-diagnosis: sixteen host checks that each come from a real incident, and five safe fixes the panel may ask for.
Package doctor is the node's self-diagnosis: sixteen host checks that each come from a real incident, and five safe fixes the panel may ask for.
node/egress
Package egress is the node's direct outbound for Hysteria2 (engine.Egress).
Package egress is the node's direct outbound for Hysteria2 (engine.Egress).
node/hostctl
Package hostctl is the agent's view of the machine it runs on: host facts for Hello, host metrics for StatsBatch, and the only host state the agent owns: its own nftables table for port-hop redirects and the SSH brute-force guard, the fail-open torrent queue, exact UDP inbound rules in an active UFW firewall, the fq + bbr sysctl baseline and the journald size cap.
Package hostctl is the agent's view of the machine it runs on: host facts for Hello, host metrics for StatsBatch, and the only host state the agent owns: its own nftables table for port-hop redirects and the SSH brute-force guard, the fail-open torrent queue, exact UDP inbound rules in an active UFW firewall, the fq + bbr sysctl baseline and the journald size cap.
node/hysteria2
Package hysteria2 is the node's Hysteria2 engine (engine.Engine) on top of the hysteria core library (github.com/apernet/hysteria/core/v2).
Package hysteria2 is the node's Hysteria2 engine (engine.Engine) on top of the hysteria core library (github.com/apernet/hysteria/core/v2).
node/speedtest
Package speedtest measures how fast a node reaches the internet, for the panel's "network capacity" suggestion (agent.proto "BANDWIDTH TEST").
Package speedtest measures how fast a node reaches the internet, for the panel's "network capacity" suggestion (agent.proto "BANDWIDTH TEST").
node/torrentguard
Package torrentguard contains bounded, dependency-free parsers for plaintext BitTorrent protocol signatures.
Package torrentguard contains bounded, dependency-free parsers for plaintext BitTorrent protocol signatures.
node/update
Package update is the node agent's self-update: verify a release the owner signed, swap the executable, re-exec, and undo it if the new build does not come up.
Package update is the node agent's self-update: verify a release the owner signed, swap the executable, re-exec, and undo it if the new build does not come up.
node/warp
Package warp is the node's WARP egress.
Package warp is the node's WARP egress.
node/warp/cfapi
Package cfapi is the Cloudflare WARP registration client and the importer for wgcf profiles.
Package cfapi is the Cloudflare WARP registration client and the importer for wgcf profiles.
panel/access
Package access is the panel's access module: profiles and their inbounds, groups, users, devices and credentials, the user status rules (disabled > expired > limited > active), the effective-access rule that turns all of it into desired state for a node, and the data of the public subscription.
Package access is the panel's access module: profiles and their inbounds, groups, users, devices and credentials, the user status rules (disabled > expired > limited > active), the effective-access rule that turns all of it into desired state for a node, and the data of the public subscription.
panel/auth
Package auth signs panel admins in — with passkeys (WebAuthn) or, as the fallback chosen at setup, with password + authenticator code — and manages their sessions.
Package auth signs panel admins in — with passkeys (WebAuthn) or, as the fallback chosen at setup, with password + authenticator code — and manages their sessions.
panel/dns
Package dns is the panel's DNS preset module: built-in and custom presets, the DnsService admin API, and the rule that picks the preset that applies to a user (user, then group, then the instance default, then the built-in default).
Package dns is the panel's DNS preset module: built-in and custom presets, the DnsService admin API, and the rule that picks the preset that applies to a user (user, then group, then the instance default, then the built-in default).
panel/fleet
Package fleet is the panel side of the node fleet: the panel CA and the agent endpoint (mTLS), node enrollment, the agent stream (liveness, reliable stats/events ingestion), desired-state computation and push, and the admin NodeService / FleetService handlers backed by that data.
Package fleet is the panel side of the node fleet: the panel CA and the agent endpoint (mTLS), node enrollment, the agent stream (liveness, reliable stats/events ingestion), desired-state computation and push, and the admin NodeService / FleetService handlers backed by that data.
panel/health
Package health is the panel's health module: the synthetic checker (the panel dials every inbound as a client and probes through the tunnel), the alerts derived from node state, doctor reports and check results with their lifecycle, the storage and relay of the node doctor, and the retention jobs of all of it.
Package health is the panel's health module: the synthetic checker (the panel dials every inbound as a client and probes through the tunnel), the alerts derived from node state, doctor reports and check results with their lifecycle, the storage and relay of the node doctor, and the retention jobs of all of it.
panel/httpserver
Package httpserver wires the panel's HTTP surface: the public listener (decoy site, the admin UI/API when it is reached by secret host or secret path prefix, the secret public mounts such as subscriptions, and the agent endpoint selected by a secret TLS SNI name) and an optional separate admin listener.
Package httpserver wires the panel's HTTP surface: the public listener (decoy site, the admin UI/API when it is reached by secret host or secret path prefix, the secret public mounts such as subscriptions, and the agent endpoint selected by a secret TLS SNI name) and an optional separate admin listener.
panel/httpserver/ratelimit
Package ratelimit holds the in-memory, bounded-memory state behind the public surface's abuse protection: a keyed map that evicts its least recently used entry when full, and a token bucket limiter built on it.
Package ratelimit holds the in-memory, bounded-memory state behind the public surface's abuse protection: a keyed map that evicts its least recently used entry when full, and a token bucket limiter built on it.
panel/instance
Package instance holds the settings of this panel installation that are visible to its users: the brand (a two-part wordmark and an optional logo), the accent colour and the default language.
Package instance holds the settings of this panel installation that are visible to its users: the brand (a two-part wordmark and an optional logo), the accent colour and the default language.
panel/mcp
Package mcp is the panel's MCP server for agents: the tools of the token profiles over Streamable HTTP, and the stdio proxy that `mistgate mcp` runs.
Package mcp is the panel's MCP server for agents: the tools of the token profiles over Streamable HTTP, and the stdio proxy that `mistgate mcp` runs.
panel/pagepass
Package pagepass is the password of a user's page and the cookie that remembers it.
Package pagepass is the password of a user's page and the cookie that remembers it.
panel/protocols/awg
Package awg is the panel half of the AmneziaWG protocol plugin: the settings schema, a validator stricter than both implementations, the obfuscation generator with its mimicry presets, the translation of a profile into a node-side inbound, the per-device X25519 credentials and the three client formats (.conf, vpn://, Mihomo proxy).
Package awg is the panel half of the AmneziaWG protocol plugin: the settings schema, a validator stricter than both implementations, the obfuscation generator with its mimicry presets, the translation of a profile into a node-side inbound, the per-device X25519 credentials and the three client formats (.conf, vpn://, Mihomo proxy).
panel/protocols/awg/mimicry
Package mimicry builds and checks the I1..I5 "custom protocol signature" packets of AmneziaWG 2.0/3.x.
Package mimicry builds and checks the I1..I5 "custom protocol signature" packets of AmneziaWG 2.0/3.x.
panel/protocols/awg/vpnkey
Package vpnkey encodes and decodes the vpn:// connection key of AmneziaVPN.
Package vpnkey encodes and decodes the vpn:// connection key of AmneziaVPN.
panel/protocols/builtin
Package builtin builds the registry of the protocol plugins shipped with the panel.
Package builtin builds the registry of the protocol plugins shipped with the panel.
panel/protocols/hysteria2
Package hysteria2 is the panel half of the Hysteria2 protocol plugin: the settings schema, validation, translation of a profile into a node-side inbound spec, credential issuing and the hysteria2:// URI.
Package hysteria2 is the panel half of the Hysteria2 protocol plugin: the settings schema, validation, translation of a profile into a node-side inbound spec, credential issuing and the hysteria2:// URI.
panel/provision
Package provision contains the panel's SSH provisioning primitives.
Package provision contains the panel's SSH provisioning primitives.
panel/store
Package store owns the panel's SQLite database: one writer connection, a read pool, embedded goose migrations and the plain-SQL queries the other modules use.
Package store owns the panel's SQLite database: one writer connection, a read pool, embedded goose migrations and the plain-SQL queries the other modules use.
panel/subs
Package subs serves the public subscription endpoint: GET <prefix>/<token> returns base64 of the user's client lines (hysteria2:// URIs) with the headers Happ and other Xray/sing-box apps read, or, for a client the settings send to the Mihomo format, a Mihomo YAML profile (mihomo.go); a browser gets the user page.
Package subs serves the public subscription endpoint: GET <prefix>/<token> returns base64 of the user's client lines (hysteria2:// URIs) with the headers Happ and other Xray/sing-box apps read, or, for a client the settings send to the Mihomo format, a Mihomo YAML profile (mihomo.go); a browser gets the user page.
panel/subsettings
Package subsettings holds the subscription settings of the installation (SubscriptionService): names and texts, the apps the public user page recommends, the server-name template and the format rules.
Package subsettings holds the subscription settings of the installation (SubscriptionService): names and texts, the apps the public user page recommends, the server-name template and the format rules.
panel/update
Package update is the panel side of the node-agent updates: it reads the release bundle the owner signed and dropped into <data-dir>/dist, shows whether it is trusted, serves its files to the node agents (only through the agent mTLS endpoint, see fleet.Updates), runs owner-triggered node updates (with a health gate and automatic rollback) whose state lives in the database, and serves the admin UpdateService.
Package update is the panel side of the node-agent updates: it reads the release bundle the owner signed and dropped into <data-dir>/dist, shows whether it is trusted, serves its files to the node agents (only through the agent mTLS endpoint, see fleet.Updates), runs owner-triggered node updates (with a health gate and automatic rollback) whose state lives in the database, and serves the admin UpdateService.
panel/vault
Package vault encrypts secrets at rest (XChaCha20-Poly1305, AAD = record id) and provides a string type that never prints its value.
Package vault encrypts secrets at rest (XChaCha20-Poly1305, AAD = record id) and provides a string type that never prints its value.
panel/warp
Package warp is the panel side of the WARP egress: one Cloudflare WARP account per node, either registered by the panel at the owner's click (an anonymous device registration, the same call the 1.1.1.1 app makes, with the Cloudflare terms accepted on the owner's behalf) or imported from wgcf files, stored encrypted, turned into the node's WarpSpec, and shown (without secrets) in the admin WarpService.
Package warp is the panel side of the WARP egress: one Cloudflare WARP account per node, either registered by the panel at the owner's click (an anonymous device registration, the same call the 1.1.1.1 app makes, with the Cloudflare terms accepted on the owner's behalf) or imported from wgcf files, stored encrypted, turned into the node's WarpSpec, and shown (without secrets) in the admin WarpService.
qr
Package qr is a small QR Code encoder (ISO/IEC 18004, Model 2): byte mode, versions 1-40, error correction levels L/M/Q/H. It exists so the CLI can print a QR code to a terminal without a dependency.
Package qr is a small QR Code encoder (ISO/IEC 18004, Model 2): byte mode, versions 1-40, error correction levels L/M/Q/H. It exists so the CLI can print a QR code to a terminal without a dependency.
release
Package release is the format of a signed release bundle and the checks on it.
Package release is the format of a signed release bundle and the checks on it.
scripts
e2e/awgclient command
Command awgclient runs a real amneziawg-go process from an AmneziaVPN / AmneziaWG ".conf" file, for scripts/e2e-wsl.sh.
Command awgclient runs a real amneziawg-go process from an AmneziaVPN / AmneziaWG ".conf" file, for scripts/e2e-wsl.sh.
e2e/h3get command
Command h3get does one HTTP/3 GET with certificate verification off and prints the status line, the response headers (sorted) and the start of the body.
Command h3get does one HTTP/3 GET with certificate verification off and prints the status line, the response headers (sorted) and the start of the body.
e2e/mcpe2e command
Command mcpe2e drives a real panel (the `mistgate` binary, on loopback, a throwaway data dir) through the whole API-token and MCP surface: tokens of the three profiles made by an owner session with a step-up, a real go-sdk MCP client over Streamable HTTP and over the `mistgate mcp` stdio proxy, plan and apply, the owner's approval and rejection, a revoked token, the audit trail, the decoy on the public listener, and a scan of everything an agent can read for the secrets of the fixtures.
Command mcpe2e drives a real panel (the `mistgate` binary, on loopback, a throwaway data dir) through the whole API-token and MCP surface: tokens of the three profiles made by an owner session with a step-up, a real go-sdk MCP client over Streamable HTTP and over the `mistgate mcp` stdio proxy, plan and apply, the owner's approval and rejection, a revoked token, the audit trail, the decoy on the public listener, and a scan of everything an agent can read for the secrets of the fixtures.
e2e/signbundle command
Command signbundle signs a node bundle for scripts/e2e-wsl.sh without the rebuild check of `mistgate release sign`: the test signs binaries it patched and manifests that misstate the build time on purpose.
Command signbundle signs a node bundle for scripts/e2e-wsl.sh without the rebuild check of `mistgate release sign`: the test signs binaries it patched and manifests that misstate the build time on purpose.
Package web embeds the built admin SPA (web/dist) into the panel binary.
Package web embeds the built admin SPA (web/dist) into the panel binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL