hyperhive/nix/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 61bd0b604d feat(#1933): weekly hive-tls-resign timer — dedicated resign service, no hive-tls-ca bounce
The parked PR (#1934) triggered re-sign by restarting hive-tls-ca
(a RemainAfterExit oneshot), which mara flagged as a hack.  This
replaces that with a dedicated hive-tls-resign.{service,timer}:

- hive-tls-ca unchanged — still handles boot-time CA generation +
  initial leaf signing; RemainAfterExit, runs before the gateway.
- hive-tls-resign.service — runs the leaf re-sign directly (openssl
  in its own PATH); does NOT touch hive-tls-ca.  Re-signs only when
  the leaf is within half its validity of expiry, so the weekly timer
  catches short-lived (30d default) leaves well before they lapse.
  Checks sha256 before/after; if the leaf rotated it propagates into
  the running gateway via systemctl -M hive-gateway (mirroring how
  hive-c0re reloads the gateway after agents.conf writes — the
  documented correct approach; an inotify path unit inside the
  container does not work across the nspawn mount-namespace boundary).
  || true on the propagation calls so a stopped gateway never fails
  the unit (its next boot imports the already-rotated leaf).
- hive-tls-resign.timer — OnCalendar=weekly, Persistent=true (fires a
  missed run on next boot so a host that was off on the scheduled day
  catches up rather than letting the leaf lapse silently).
- leafValidityDays doc updated to reflect automatic renewal.

Closes #1933.
2026-07-10 19:37:08 +02:00
..
hive-c0re.nix fix(#1868): use HIVE_FORGE_URL for internal forge calls 2026-07-09 00:45:13 +02:00
hive-ci.nix fix(hive-ci): static bridge IP instead of DHCP (no DHCP server on the bridge) 2026-07-10 18:38:17 +02:00
hive-forge.nix chore(docs,nix): fix stale 'localhost via shared netns' claims in forge/matrix 2026-07-04 22:54:38 +02:00
hive-gateway.nix chore(nix): remove stale 'privsep phase 2' labels from comments 2026-07-04 21:04:18 +02:00
hive-matrix.nix chore(docs,nix): fix stale 'localhost via shared netns' claims in forge/matrix 2026-07-04 22:54:38 +02:00
hive-network.nix chore(nix): trim stale body from deprecated isolateContainers option doc 2026-07-04 21:57:26 +02:00
hive-tls.nix feat(#1933): weekly hive-tls-resign timer — dedicated resign service, no hive-tls-ca bounce 2026-07-10 19:37:08 +02:00