-
The public XMesh Sub hostname proxies only bearer subscription paths and the exact public assets; never expose Nexus admin routes.
-
Subscriber tokens are credentials. Never publish subscription links, requests, proxy logs, or tokens in monitoring.
-
All gateway-to-Nexus and agent-to-Nexus connections use TLS with normal certificate validation. Agent and enrollment requests reject ALL HTTP redirects, including same-origin redirects.
-
The management agent has only a fixed action: update. There is no inbound SSH/admin listener or Docker socket mounted in Caddy.
-
A one-time enrollment token is provided through stdin, not installer process arguments. Avoid saving the pasted install block in terminal recordings or issue comments; the code is valid for 60 minutes and can be claimed once.
-
The Sub VPS generates a root-owned Ed25519 private key at
/opt/xmesh-sub/agent-key.pem(0600) during one-time enrollment. Nexus stores only its public key. Each agent poll/report signs method, exact path, timestamp, random nonce, and SHA-256 of the raw JSON; Nexus rejects replay and old Bearer authentication. -
Theft of the private key still permits agent impersonation until re-enrollment; secure its root filesystem and backups. Strong identity is not a replacement for protecting the VPS.
-
Every remotely triggered update requires verifiable short-lived GitHub Actions OIDC provenance: exact immutable commit SHA, trusted main workflow identity, source ref, public repository and signed artifact digest. Verification uses the official GitHub CLI >=2.102. A failed attestation means no root execution.
-
The production release workflow runs only on pushes to protected main after tests, with narrowly scoped OIDC/attestation permissions. There is no long-lived release private key or manual signing on the VPS. Protect the workflow and branch: an attacker with release-publisher access can authorize malicious artifacts.
-
Backups are created under
/opt/xmesh-sub/backups(root-only) before managed updates. Failure triggers a best-effort rollback of the previous configuration and Caddy service; verify gateway health after a failure. Remote updates cannot guarantee rollback of package-manager or system-wide changes. -
The agent still needs host root privileges to operate Docker and update the installer. systemd restrictions reduce its ambient exposure but are not a privilege boundary against full root compromise.
-
Review upstream DNS, host firewall, CDN logs, and supply-chain changes independently. Validate a canary feed before migrating customer subscriptions.
-
The attested installer includes a private Unix-socket IP limiter with bounded concurrency. The direct Caddy TCP peer (not client-supplied
X-Forwarded-For) is its identity. On CDN deployments this may identify a CDN peer; separately authenticate the real edge and prevent bypass through direct Nexus origin routes. Verify actual Docker/IPv6/NAT behavior on a canary VPS before production.