hyperhive/nix
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 74a90fd7d6 nix(tls): host hive-CA + gateway leaf for self-signed mode
Replace the gateway's bare in-container self-signed leaf with a leaf
signed by a host-held hive CA. A bare self-signed leaf is its own trust
anchor, so every regeneration is a fresh anchor every consumer would have
to re-trust, and a runtime-generated in-container leaf cannot be wired
into an agent's build-time trust store at all. A stable CA fixes both: a
single anchor that agents and federation peers trust once, surviving leaf
rotation.

New hive-tls module: a host oneshot generates a long-lived CA (default
~20y) under services.hyperhive.tls.stateDir and signs a gateway leaf
(default ~10y, SAN covering the bare domain, forge., matrix. and the
wildcard). It is ordered before the gateway container so the leaf exists
when nginx starts. Active only when the gateway uses self-signed TLS
(default) and a domain is set; inert under operator-cert or ACME modes.

Gateway: bind-mount the host CA dir read-only at /run/hive-ca; the
existing in-container cert unit now imports the host leaf into nginx's
state dir (copy as root, key left root:nginx 0640 for the pre-start
config test) instead of generating one. Cert/key paths nginx serves are
unchanged.

Foundational step toward agent + federation trust of self-signed hives;
no behaviour change for agents yet (they still reach the forge over plain
http on port 80). Eval-proven across self-signed, certDir and the inert
default paths.
2026-06-17 19:04:52 +02:00
..
docs refactor(gateway): make the gateway unconditional — remove gateway.enable 2026-06-09 00:11:10 +02:00
forge-theme forge: use branding/hyperhive.svg for logo and favicon 2026-05-21 17:50:46 +02:00
modules nix(tls): host hive-CA + gateway leaf for self-signed mode 2026-06-17 19:04:52 +02:00
packages docs: drop stale hive-m1nd references (single hive binary) 2026-06-10 19:52:19 +02:00
templates harness: assert matrixAccounts tokenFile basenames start with matrix-token (#1702 BE-3) 2026-06-17 15:13:17 +02:00
assets.nix docs/gotchas.md: extract nix/{assets,docs,templates/weston-vnc} prose (#718 batch 3) 2026-05-31 15:24:39 +02:00
frontend.nix refactor(frontend): move ST4TS to its own /stats.html page (#1464 step 2) 2026-06-09 00:11:43 +02:00