hyperhive/nix/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas dacd83f278 fix: wait for forge-core-token in prefetch instead of bailing early
On first boot (or after a wipe) hive-c0re writes forge-core-token only
after the forge container starts and the admin is provisioned. This
lags hive-c0re.service becoming active. The previous code bailed
immediately with TOKEN=placeholder if the token file was absent,
causing the runner to fail registration with 'token not found'.

Fix: merge both waits (core-token file appearance + forge API ready)
into a single 60s retry loop. The early-bail path is removed; the
script only exits cleanly if .runner is valid (writes placeholder)
or a fresh registration token is obtained.

When .runner exists but core-token is absent after 60s, we keep the
existing credentials (safe — the runner holds valid creds; next boot
will validate properly).

Closes #1224 (which tracks #1221).
2026-06-03 22:50:01 +02:00
..
hive-c0re.nix feat(#1184): make agent CPU quota and memory limit configurable 2026-06-03 21:39:14 +02:00
hive-ci.nix fix: wait for forge-core-token in prefetch instead of bailing early 2026-06-03 22:50:01 +02:00
hive-forge.nix fix(#981): enable Forgejo Actions so runner registration token API works 2026-06-01 18:38:44 +02:00
hive-gateway.nix fix(#1155): enable recommendedTlsSettings + recommendedGzipSettings in gateway nginx 2026-06-03 16:48:33 +02:00
hive-matrix.nix fix(#1061): suppress tuwunel default displayname suffix 2026-06-02 11:18:38 +02:00
hive-network.nix fix: assert gateway.enable when isolateContainers + forge.enable 2026-06-03 16:33:10 +02:00