hyperhive/nix/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas edad6f863c feat(#1886): trust a peer hive's root CA hive-wide for self-signed federation
Add swarm.peers.<domain>.caCert (path to a peer hive's root CA PEM),
trusted everywhere the hive's own internal CA is — so a self-signed
peer hive can federate (matrix) and any in-hive consumer validates its
certs.

Mechanism (reuses the existing hive-CA embedding): the meta-flake
renderer embeds a LIST of CA files next to each agent's flake —
hive-ca.pem (the hive's own self-signed CA, when active) plus each peer
caCert as peer-ca-<N>.pem — and emits them all in
security.pki.certificateFiles, so every agent trusts them at build
time. The matrix container trusts the same peer CAs for federation TLS.
Nothing is installed in the host trust store; the certs live in the nix
store (no mutable host file).

- meta.rs: embedded_ca_files() = hive CA + peer CAs (from new
  HIVE_PEER_CA_PATHS env); ca_embed_state() tracks the list (content +
  add/remove); sync_agents materialises + stages the list; render emits
  the multi-entry certificateFiles. Tests cover hive-only / hive+peers
  / peers-only / none.
- hive-c0re.nix: HIVE_PEER_CA_PATHS service env (colon-joined caCerts);
  caCert / certFingerprint option docs updated to the hive-wide scope.
- hive-matrix.nix + docs/swarm.md: scope + comment updates.

certFingerprint stays the c0re-only leaf-pin path.
2026-06-22 16:54:44 +02:00
..
hive-c0re.nix feat(#1886): trust a peer hive's root CA hive-wide for self-signed federation 2026-06-22 16:54:44 +02:00
hive-ci.nix hive-ci: build locally when a remote builder is unreachable 2026-06-21 21:48:53 +02:00
hive-forge.nix nix(gateway): self-signed TLS as the implicit default, deprecate the toggle 2026-06-17 21:14:05 +02:00
hive-gateway.nix feat(#1843): static-serve the dashboard via the gateway, hive-c0re API-only 2026-06-22 01:18:01 +02:00
hive-matrix.nix feat(#1886): trust a peer hive's root CA hive-wide for self-signed federation 2026-06-22 16:54:44 +02:00
hive-network.nix nix: remove the non-isolated (shared-netns) mode 2026-06-17 15:29:52 +02:00
hive-tls.nix nix(gateway): factor the self-signed condition into a shared option 2026-06-18 01:03:55 +02:00