No description
  • Go 33.7%
  • Python 32.3%
  • Nix 26.2%
  • CSS 4.2%
  • HTML 3%
  • Other 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam c0db5b45e4
All checks were successful
CI / Formatting, unit tests, and module evaluation (push) Successful in 3m16s
CI / ARM64 DNS packages (push) Successful in 25s
CI / Primary and secondary on separate hosts (push) Successful in 13s
CI / Isolated LAN primary and replicas (push) Successful in 12s
CI / Seven-VM DNS topology and canonical report (push) Successful in 1m3s
Merge pull request 'Wait for HTTPS readiness during DNS recovery validation' (#8) from codex/dns-recovery-readiness into main
2026-11-21 03:40:44 -05:00
.forgejo Use Large workers for Network Nix evaluation and VM checks 2026-11-20 14:58:10 -05:00
.github/workflows Add separate-host LAN DNS primary and secondary profiles 2026-09-29 10:54:53 -04:00
dns Bound SQLite startup contention and serialize schema migration 2026-10-21 17:55:33 -04:00
docs Bound SQLite startup contention and serialize schema migration 2026-10-21 17:55:33 -04:00
nix/dns Add separate-host LAN DNS primary and secondary profiles 2026-09-29 10:54:53 -04:00
site refactor: make network repository DNS-only 2026-09-07 21:44:00 -04:00
tests Wait for API readiness before the DNS recovery update 2026-11-21 02:09:12 -05:00
.gitignore initial checkin 2026-08-09 21:23:58 -04:00
CONTRIBUTING.md Port validation workflows to native Forgejo runners 2026-10-04 02:18:13 -04:00
flake.lock refactor: make network repository DNS-only 2026-09-07 21:44:00 -04:00
flake.nix refactor: make network repository DNS-only 2026-09-07 21:44:00 -04:00
go.work feat: authorize SPIFFE DNS workloads through fleet registry 2026-09-29 00:50:57 -04:00
README.md Stage Forgejo primary hosting and preserve pinned source revisions 2026-10-03 22:17:52 -04:00

Kaiba secure-device dynamic DNS

This repository contains the Kaiba dynamic DNS control-plane pilot. It gives devices stable DNS names without placing registrar credentials or hidden-origin topology on those devices.

Device software authenticates to the controller with mTLS and submits its complete public address set. The controller commits desired state to SQLite. A separate publisher projects that state to a writable hidden primary using RFC 2136 and TSIG, then verifies the result through redundant public authorities.

The opt-in two-host LAN profile places the writable primary on Ace and a read-only secondary on Mako, with a transfer-only runtime credential handoff. It retains the SPIFFE updater/controller authorization path and leaves public delegation and resolver settings unchanged. The earlier same-host qualification profile remains available for its isolated process-level tests.

Repository layout

  • dns/ contains the Go commands and private implementation packages.
  • nix/dns/ contains the standalone DNS flake and reusable NixOS modules.
  • tests/integration/ defines the seven-VM DNS topology.
  • tests/report/ renders and validates the deterministic evidence report.
  • site/ contains the static project site published with the latest report.
  • docs/ documents the DNS architecture and device-identity boundary.

Development

go test ./dns/...
nix --accept-flake-config fmt -- --ci
nix --accept-flake-config flake check --all-systems --no-build -L
nix flake check ./nix/dns --all-systems --no-build -L

Build the operator-facing DNS commands:

nix build .#kaiba-agent
nix build .#kaiba-controller
nix build .#kaiba-publisher

Run or build the integration topology:

nix run .#dns-test-driver
nix build .#dns-test-report -L
nix build .#dns-test-gate -L

Flake interface

The root flake is a convenience facade over nix/dns. Both expose:

  • packages: kaiba-agent, kaiba-controller, and kaiba-publisher;
  • NixOS modules for the device agent, update services, hidden primaries, hidden standbys, and public secondaries;
  • unit, module-evaluation, schema, security, topology, and report checks; and
  • the interactive dns-test-driver app on x86_64 Linux.

See the architecture for the control and data paths, and the device identity lifecycle for the platform-neutral credential contract.

Secure-device provisioning is maintained independently in PseudoDesign/kaiba-provisioning. This DNS repository does not import, re-export, build, test, or release its tools.