goat

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.

Star on GitHubPick a roleTry it

HOST SITEACCESSEDGEYOUR OWNBOUNDARYcoreobsphoneyour ownrolebreak-glassjump boxgoat-processorsfederationboundarysimpleboundaryocto-podBillie nodescapegoatvendorgatewayfirst-bitenetworktap

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-node today, release 0.7.3
  • 34services goatbuilder deploy can 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.

Host site
Your own
Access
Processing
Boundary
Edge

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.

The design and ADR 1257, under review

# 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: required

At 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 sensor that sends
another sensor
a sensor that waits to be spoken to
a wire you cannot change
kiddecode, map
kiddecode, map
scapegoatspeaks first, so the sensor sends
first-bitelistens on a tap, decodes
Open Billie platformfor the kids: one translator (CoT, ASTERIX CAT062, SAPIENT), local Zenoh, mTLS to the fabric

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

zenoh-routerportalnetbird-mgmtspireid-admin-consolegrant-keydfabric-crawlerfabric-healthmesh-healthtime-healthpresence-healthpeer-healthnode-net-healthntp-health-pubcrypto-postureconsistency-healthconsistency-consoleconsistency-aggregatoraudit-subscribere2e-canarygoat-fed-republisherkratos-selfservice-uionboard-runnermgmt-host-bootstrapgoat-getgoat-docs

Deployed today, with goatstuff layered in

panoscopestethoscopeflashlightnetvismicroscopegoat-topologyherdherd-connector

herd and herd-connector have no public image; you build your own.

Designed: software that ships as a signed file

goat-processors-runnergoat-xf-pipe-zenohgoat-feeds

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.

systemsystemnetwork tapa copy

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.

systemsystemnetwork tapevery frame passes through it

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.

  1. 1reach the machine
  2. 2seed the SSH key
  3. 3config and clock checks
  4. 4quiet apt
  5. 5host baseline
  6. 6WireGuard modules
  7. 7the right CA
  8. 8where it enrolls
  9. 9enrollment preflight
  10. 10enroll it
  11. 11modules again
  12. 12record its mesh address
  13. 13install the role
  14. 14restore apt
  15. 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 …

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

Baseline and joinHardening, WireGuard modules, a single-use setup key, the mesh address recorded. Built.
Install the roleThe role's services, deployed over the mesh. Built for five roles.
Prove itAcceptance checks that must pass, never “unknown”, written to the machine's own ledger. Built; the break-glass and jump box checks are designed.
a reachable Ubuntu host with an SSH key

Below the line, it guides and checks

On known hardwaregoatbuilder image <model> runs that model's builder: numbered steps from blank media, each proving its result. Designed.
On anything elseWritten directions that state the intent and the end state, for a capable person to follow. Designed.
Either waygoatbuilder doctor --target <type> reads the host, changes nothing, and names what to fix on the machine. Designed.
Hardware familyRunsStatus
host-classcore, obs, goat-processors; boundaries, octo-pod, first-bite and network tap where load or resilience calls for itimage builders exist for Karbon and Jetson Orin; goatbuilder does not call them yet
cloudcore, obsAWS EC2 image builder exists; Azure and Google Compute Engine listed
small computerbreak-glass, network-gear jump box, Billie node, vendor gateway; boundaries, octo-pod, first-bite and network tapproposed, Raspberry Pi 5 first
phonea full core joinerbuilt 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.0

Real 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.

Foundation. The role and hardware-family files and their reader, the base check of doctor --target, and the CI harness that builds on virtual machines.
Host sitecore and obs read from type files; standup with no manual step
Boundaryfederation boundary, simple boundary
Processinggoat-processors, accepted when its engines reproduce their conformance vectors
Small computerthe builder first, then break-glass, jump box, Billie node, octo-pod, vendor gateway, first-bite, network tap

A fifth lane, services, starts with software that ships as a signed file instead of an image.

Numbers

Where each number comes from.

WhatNumberHow to check it
Roles in the design13The target type table in goatcore #1091, section 3.2
Roles built by join-node5goatbuilder join-node --help, --class
Phases with the same steps14 of 15Phase 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 deploys3426 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
Rehearsal0.05 sThe last lines of the standup command above: 5 components on 4 machines in 48 ms, 14 checks, on an Apple laptop