Skip to content
corvadPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

warpstack

Control plane for my anycast network (AS401144), loosely modeled on Borg. Every node runs corticald, which handles BGP, DNS, the websites, NTP/NTS/Roughtime, STUN, a WireGuard mesh between nodes, and containers.

corticald

Each piece runs as its own systemd unit off the same binary.

bgpd, netd    GoBGP; peers and prefixes come from the cluster config
dnsd          authoritative DNS for deploy/*/zones
httpd         static sites (custom 404.html, Cache-Control, gzip), redirects, proxies, /api/metrics.json; ACME HTTP-01
ntpd          NTP off chrony's clock, eBPF XDP fast path (DRV/SKB), recvmmsg batching, per-client limits
nts           NTS-KE on 4460 and authenticated NTP (RFC 8915)
roughtime     Google, IETF drafts 01-19 and RFC 10049, ports 2002 and 5319
stund         STUN on 3478
mesh          WireGuard between every node
gossipd       ships releases, TLS certs, and external sites over the mesh
sites         signed external static site deploys (site-scoped Ed25519 keys) via deploy.corvaglianetworks.com
sysupdate     automated weekly OS package upgrades and staggered, BGP-drained, mesh-gated reboots
drone         containers with containerd and gVisor
sickbay       health checks; pulls BGP routes when a local service fails

Running it

make check              vet, tests, gofmt
make release            build, sign, canary, promote
make rollout            install or rejoin every node
make deploy IP=x.x.x.x  join one node

secrets.local, release.key, nodes.local and mesh.local stay out of git.

Live

Todo

  • queen: job placement by region and affinity
  • topology: pick mesh edges from RTT and loss
  • transporter: edge proxy over the backbone
  • CLI and web UI

License

A lot of what is in this repo is specific to running an anycast network, but if you'd like to reuse any of the code it is licensed under the MIT License in the LICENSE file.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages