hyperhive/nix/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 4f3f6522d2 feat(tls): embed hive CA into agent flakes for self-signed trust
Wire agents to trust the gateway's self-signed leaf at build time. When
the gateway runs self-signed TLS, hive-tls sets HIVE_TLS_CA_PATH in
hive-c0re's service env pointing at the host hive CA cert. The meta flake
renderer reads it and, when present, writes the public CA cert next to
flake.nix as hive-ca.pem and emits security.pki.certificateFiles so every
agent's system trust store includes the hive CA.

Build-time embedding (rather than a runtime bind-mount + bundle service)
keeps trust robust: the CA travels with the flake source, lands in the
standard NixOS trust store, and needs no per-process SSL_CERT_FILE
plumbing. Only the public CA certificate is embedded; the CA private key
never leaves the host. The cert is re-embedded and re-committed on CA
rotation even when the flake is otherwise byte-identical; when self-signed
TLS is off the embedded cert is dropped so the flake stays buildable.

Covers OpenSSL-based tools (git, curl) directly. A follow-up switches the
hive-forge reqwest client to native roots so it picks up the same store.
2026-06-17 19:42:15 +02:00
..
hive-c0re.nix nix(tls): host hive-CA + gateway leaf for self-signed mode 2026-06-17 19:04:52 +02:00
hive-ci.nix fix(ci): resolve the forge domain to loopback in the hive-ci runner 2026-06-15 13:32:01 +02:00
hive-forge.nix nix(forge): drop tracker tag from ROOT_URL comment 2026-06-17 18:32:21 +02:00
hive-gateway.nix nix(tls): host hive-CA + gateway leaf for self-signed mode 2026-06-17 19:04:52 +02:00
hive-matrix.nix nix: remove the non-isolated (shared-netns) mode 2026-06-17 15:29:52 +02:00
hive-network.nix nix: remove the non-isolated (shared-netns) mode 2026-06-17 15:29:52 +02:00
hive-tls.nix feat(tls): embed hive CA into agent flakes for self-signed trust 2026-06-17 19:42:15 +02:00