zagros-moon-pod

>_ sudo bash moon_pod_setup.sh

zagros-moon-pod

A small bundle you run on your own host to exchange data with a goat fabric, both ways.

A Zenoh router with mutual TLS that may write only your slot, an observe-only audit sink, and a mesh client on the host. Today it is for learning: rung 2 of the goat learner ladder, joined to the zagros sandbox, not in operational use.

$ cd zagros-moon-pod && sudo bash moon_pod_setup.sh
2containers: router and audit sinkservices in compose/docker-compose.yml
6allow rules over a default denyaccess_control.rules in host/zenoh-router.json5.tmpl
6client SDK languagesls clients/connect
7requirements at the boundarydocs/partner-contract.md

What it is

Used only to learn. A moon-pod joins an environment someone else runs. That environment's owner controls enrollment, the access rules, and what data may leave the pod.

It is not a sovereignty guarantee. A party that needs sovereignty runs its own environment and federates with others across a boundary.

You run it

On your own hardware, Apache-2.0, yours to read, log and fork. The mesh client runs on the host for kernel WireGuard and boot persistence; the router and the audit sink run in a small compose bundle on host networking.

It writes only your slot

Enrollment mints a slot, an mTLS identity and a single-use setup key in one act. The router's access control is default-deny: your apps publish and subscribe under <slot>/**, and the fabric sends you data on your inbound prefix.

Everything that crosses is observed

The audit sink subscribes to your namespace and exposes metrics, observe-only. A durable local log on your encrypted volume is the designed next step; until then retention is a step you own.

On a host you run, your applications publish and subscribe through a Zenoh router with mTLS that may write only your slot, watched by an observe-only audit-sink; the router publishes your slot to the zagros sandbox fabric and receives your inbound prefix over a WireGuard mesh, while the environment owner mints the slot, identity and setup key and controls what data may leave the pod.
Drawn by docs/figures/make-figures.py from compose/docker-compose.yml and clients/connect/.

The contract at the boundary

What a pod meets where it touches the fabric, written self-contained in docs/partner-contract.md, with the custody floor and how the goat side receives a pod's data.

zagros is a sandbox goatnet for rapid onboarding. None of the sandbox shape is the production shape; zagros-vs-production.md lists the differences.

#Requirement
1Identity assurance from a standards-compliant identity provider
2Transport encryption with keys neither side delegates; WireGuard preferred
3Data in and out at well-known Zenoh keys under the pod's namespace
4The partner keeps 90 or more days of access logs
5Every published topic declares its schema
6Custody floor: data, identity and audit stay on the partner's side
7Reversible: move to your own plane without re-onboarding

Getting started

The reference host is Ubuntu 24.04 LTS. The setup script is one re-runnable menu: bring-up, stand-up and verify. Nothing runs until you confirm, and the setup key is never put on a command line.

git clone https://github.com/USAREUR-AF/zagros-moon-pod
cd zagros-moon-pod
sudo bash moon_pod_setup.sh     # choose "Configure inputs", then Part 1, 2 or 3

Partner run guide · Host bring-up · Client SDKs · Architecture