goatbuilder
One tool for every machine in a goatnet, from the core servers to the billie kids.
Declare what a machine is for. goatbuilder takes it from a reachable Ubuntu host to its role in the goatnet, then checks the result. Five roles build today. Eight more, from boundaries to processing to the network tap, are designed as target types, with a place for a role of your own.
one site plan, thirteen rolesselect a machine to read about it
- goatbuilder builds it today
- designed
- 13machine roles in one design; each becomes one data file that every verb reads
- 5of them built by
goatbuilder join-nodetoday, release 0.7.3 - 34services
goatbuilder deploycan put on those machines today
Roles
Pick what the machine is for.
A target type is the job a machine does. In the design, each is one file: the hardware it accepts, the encryption it requires, its plays in order, its services and its acceptance checks. A new role is a new file. It needs no new code in goatbuilder.
What a role looks like as data
The sketch from the design, for break-glass. It names a hardware family, never a model, so new hardware joins a family without touching any role.
Software with its own repository keeps its own installer. The type file names the repository and release, and goatbuilder calls that installer at a pinned, signed release and checks what it did.
# ops/goatbuilder/targets/breakglass.yaml (designed)
type: breakglass
families: [small-computer]
encryption: root
os:
- ubuntu: "24.04"
plays:
- play: mgmt-host-baseline.yml
- play: breakglass-nodes.yml
group: "{site}_breakglass_hosts"
services: [netbird-client, oob-overlay]
acceptance:
requires: [breakglass]
proof:
ci: vm
hardware: requiredAt the sensor
One kid per sensor, and a Billie node to run them.
A billie kid is one small package for one sensor. It decodes and maps that sensor's data. The Open Billie platform under it encodes, routes and secures what the kids produce, so a kid holds no fabric credentials.
A drawing of what one node can run. scapegoat and first-bite are optional services with their own outputs. Designed: the machine's declaration lists its sensors, and goatbuilder installs the platform at a pinned, signed release, then installs, configures and activates each sensor's kid with Open Billie's own commands. Today Open Billie's guided install does this, and first-bite and scapegoat have their own installers.
sudo billie kid install <bundle> sudo billie kid configure <id> sudo billie kid activate <id>
The same pattern holds for all three: a public core, and a private overlay for what cannot be public. A sensor owner's decoder, dictionary or protocol stays in their own repository.
Services
A machine has a role. Services run on it.
A role says what a machine is. A service says what runs there: a version, a play, a health check. goatbuilder deploy moves one service to one environment and is done only when every machine's own ledger names the declared version.
Deployed today, from goatcore
Deployed today, with goatstuff layered in
herd and herd-connector have no public image; you build your own.
Designed: software that ships as a signed file
The pin names the file, its digest and its signer. goatbuilder verifies it before any host is touched, and the host needs no internet.
The network tap
A tap must not break the link it listens to.
A small computer that bridges two network ports is in the link: when it stops, the link stops, and no software changes that. So the role makes every machine declare how it is connected.
listen: fails open
A passive copper tap, a bypass relay or a switch mirror port carries the link. If the machine stops, only the recording has a gap.
inline: fails closed
Built only when the declaration names who accepted that the link drops with the machine. doctor and status print it on that machine.
Designed, not built. The capture software is first-bite.
Your own
A private role needs no public change.
Put the type file in your overlay and the plays in your own repository. goatbuilder fetches them on your machine with your access, checks the pinned digest and signer, and holds them to the same checks as a public role. Public code, documents and releases never name it. Designed.
One path
Fifteen phases. One of them depends on the role.
Reaching the machine, hardening it, enrolling it and proving it take the same steps for a core server and for a break-glass box. Phase 13 installs the role.
- 1reach the machine
- 2seed the SSH key
- 3config and clock checks
- 4quiet apt
- 5host baseline
- 6WireGuard modules
- 7the right CA
- 8where it enrolls
- 9enrollment preflight
- 10enroll it
- 11modules again
- 12record its mesh address
- 13install the role
- 14restore apt
- 15prove it
Phase 13 · A · [core, joiner] pass 1 — bootstrap without Spock, the stack plays only (AutoMigrate creates the …Phase 13 · A · [core, joiner] the service deploys the seed needs (kratos/hydra schemas): oryPhase 13 · A · [core, joiner] pass 2 — seed-from-peer: data-only copy from founder alpha (fails loud if the …Phase 13 · A · [core, joiner] pass 3 — bootstrap with Spock: netbird subscriptions on both sides, polled to …Phase 13 · A · [core, joiner] the founder-side mirror on alpha_hosts, peer=gamma only (the same change, not a …Phase 13 · A · [core, joiner] the joiner's Spock wiring again, now that the founder's half exists: Ory …Phase 13 · GATE · [signal federation] the repo declares it on both sides: gamma_hosts and alpha_hosts crossed and …Phase 13 · SKIP · [signal federation] declared off at gamma (signal_federation_absent_reason in …Phase 13 · T · [certificates] mint the site's leaves from ops/enrollment/manifests/gamma-certs.yaml (idempotent: a …Phase 13 · A · [certificates] stage the service leaves the manifest carries onto the node (fabric-health, mesh-health)Phase 13 · A · [data router] the site's own Zenoh router (zenoh-deploy.yml), limited to the node: the site's …Phase 13 · A · [front door] the site's LAN TLS routes (lan-traefik-routes.yml, the internal-CA mgmt-identity …Phase 13 · SKIP · [health publishers] not deployed: the end-state model was not read …Phase 13 · GATE · [mesh DNS] the founder's management API token (ALPHA_NB_API_TOKEN) resolves, before anything …Phase 13 · A · [mesh DNS] a replica of the goatnet's zone (zagros.example.org, ops/dns/alpha/mesh-hosts) on the …
Phase 13 · A · [obs] observability host: baseline + LUKS (own nodes only)Phase 13 · SKIP · [obs, joiner] utility leg (Forgejo, the pub/sub state-of-record primary) not run: gamma joins a …Phase 13 · A · [obs] observability host: stack (Prometheus/Alertmanager/Grafana) — needs obs_scrape_targets
Phase 13 · A · [breakglass] break-glass node (ADR 1114 — the way in when mesh + control plane are both down)Phase 13 · A · [network-jump] network-jump host (ADR 1131 — reach to switch, router and out-of-band gear; …Real phase 13 headings from goatbuilder join-node --dry-run, release 0.7.3, for the third site of the join-node-third-site fixture in goatcore with each class declared there. Long headings are cut at …; commands are left out. The output scrolls sideways.
From the metal
It checks where a machine ends up, whatever path it took.
Above the line, goatbuilder builds
Below the line, it guides and checks
goatbuilder image <model> runs that model's builder: numbered steps from blank media, each proving its result. Designed.goatbuilder doctor --target <type> reads the host, changes nothing, and names what to fix on the machine. Designed.| Hardware family | Runs | Status |
|---|---|---|
| host-class | core, obs, goat-processors; boundaries, octo-pod, first-bite and network tap where load or resilience calls for it | image builders exist for Karbon and Jetson Orin; goatbuilder does not call them yet |
| cloud | core, obs | AWS EC2 image builder exists; Azure and Google Compute Engine listed |
| small computer | break-glass, network-gear jump box, Billie node, vendor gateway; boundaries, octo-pod, first-bite and network tap | proposed, Raspberry Pi 5 first |
| phone | a full core joiner | built into join-node; hardware runs are open gate rows |
Try it
Build a whole example site on your laptop.
The rehearsal uses a simulated set of machines and touches no network. It builds three roles: core, obs and break-glass.
git clone https://github.com/usareur-af/goatcore && cd goatcore OS="$(uname -s | tr '[:upper:]' '[:lower:]')"; ARCH="$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')" curl -fsSL -o goatbuilder "https://github.com/usareur-af/goatcore/releases/download/goatbuilder/v0.7.3/goatbuilder-$OS-$ARCH" chmod +x goatbuilder
WORK="$(mktemp -d)/zagros" cp -R ops/goatbuilder/fixtures/goatnet-from-scratch/01-founder "$WORK" ./goatbuilder standup zagros --site alpha --mock "$WORK" --ack "you" --yes ./goatbuilder status --env zagros --mock "$WORK"
Each release lists a SHA-256 checksum per binary in SHA256SUMS, signed with cosign. Next: a new goatnet, step by step, or the goatbuilder book.
$ ./goatbuilder status --env zagros --mock "$WORK"
Status: zagros
5 components on 4 machines. 8 of 8 converged, 0 pending, 0 unknown.
COMPONENT MACHINE STATE RUNNING DECLARED
breakglass-node alpha-breakglass-1 converged v0.3.0 v0.3.0
netbird-mgmt alpha-core-1 converged v0.30.0 v0.30.0
netbird-mgmt alpha-core-2 converged v0.30.0 v0.30.0
obs-stack alpha-obs-1 converged v2.0.1 v2.0.1
portal alpha-core-1 converged v1.4.0 v1.4.0
portal alpha-core-2 converged v1.4.0 v1.4.0
zenoh-router alpha-core-1 converged v1.9.0 v1.9.0
zenoh-router alpha-core-2 converged v1.9.0 v1.9.0Real output, release 0.7.3. The output scrolls sideways.
What is next
One foundation, then four lanes at once.
The design makes every role a requirement of goatbuilder 1.0. Every role must pass in CI, on a virtual machine started from a fresh cloud image. Where there is equipment, it must also pass a recorded run on hardware.
doctor --target, and the CI harness that builds on virtual machines.A fifth lane, services, starts with software that ships as a signed file instead of an image.
Numbers
Where each number comes from.
| What | Number | How to check it |
|---|---|---|
| Roles in the design | 13 | The target type table in goatcore #1091, section 3.2 |
| Roles built by join-node | 5 | goatbuilder join-node --help, --class |
| Phases with the same steps | 14 of 15 | Phase headings of join-node --dry-run compared across core, obs, breakglass and network-jump; only phase 13 differs. A phone also differs in phases 1 and 2 |
| Services goatbuilder deploys | 34 | 26 components with a play in goatcore and 8 with a play in goatstuff, of the 38 in ops/pins/fleet-pins.yaml; section 2.4 of the design |
| Rehearsal | 0.05 s | The last lines of the standup command above: 5 components on 4 machines in 48 ms, 14 checks, on an Apple laptop |