hyperhive/nix/host-modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 27932ec631 types: let nix own the reserved-name blacklist
One list, in nix/reserved-names.nix, handed to everything that needs it
as HIVE_RESERVED_NAMES. Keeping it current becomes a config change
rather than a rebuild, and hive names and agent names -- one namespace
going forward -- are checked against the same file: swarm-otel.nix's
hand-written reservedOwners is gone.

Whitespace-separated rather than JSON, deliberately, unlike the
structured env vars beside it. Every entry is an Ident ([a-z0-9-]), so
whitespace cannot occur inside a name and the encoding is provably
lossless; JSON would mean either a parser dependency in a crate whose
purpose is to have none, or a copy of the parse in every consumer.

An UNSET variable is not "nothing is reserved". Both creation sites log
an error and return a warning saying the check did not run, so a
misconfigured deployment says so instead of silently accepting every
name. A blank value folds into unset: nix always renders a non-empty
list, so present-but-empty is a rendering fault, not a declaration.

Two guards whose subject moved out of their own file now assert their
own case is still in it, because a guard that can be retired by an edit
elsewhere is not a guard:

- swarm-otel.nix asserts reserved-names.nix still contains its
  swarmTierName.
- hive-sh4re's sentinel drift test PANICS when the variable is missing
  rather than skipping -- a drift test that quietly does nothing still
  reports green. checks.nix and devshell.nix both export it so CI and a
  local cargo test agree. Verified as a pair: with the variable set, 8
  tests pass; with it unset, exactly the 4 drift tests fail and the
  unrelated ones still pass.
2026-08-27 16:36:42 +02:00
..
hive-c0re types: let nix own the reserved-name blacklist 2026-08-27 16:36:42 +02:00
hive-forge gateway: dial swarm services by name over verified TLS 2026-08-27 16:36:03 +02:00
hive-gateway gateway: dial swarm services by name over verified TLS 2026-08-27 16:36:03 +02:00
lib fix(#3527): a missing source must report as zero, not as empty 2026-08-19 20:27:00 +02:00
swarm-grafana/dashboards swarm-grafana: provision log store and metrics store dashboards 2026-08-26 21:37:31 +02:00
default.nix feat(swarm-victorialogs): a log store for the swarm 2026-08-24 16:36:18 +02:00
hive-ci.nix ci: let the runner execute what it builds 2026-08-27 14:48:47 +02:00
hive-matrix.nix forge, matrix: SSO is not optional 2026-08-24 23:06:25 +02:00
hive-network.nix docs(network): drop the otel reasoning instead of restating it 2026-08-19 02:04:57 +02:00
hive-priv.nix fix(#2573): also add /etc/tmpfiles.d to hive-priv ReadWritePaths (same EROFS class) 2026-07-18 16:39:20 +02:00
hive-tls.nix fix(#3462): apply the name check in the unit that runs on the deploy 2026-08-18 21:54:38 +02:00
hyperhive.nix refactor(nix): a hive's domain comes out of the swarm directory 2026-08-05 22:43:17 +02:00
local-defaults.nix fix(#3343): move the all-local queue derivations into the deployment mode 2026-08-16 19:37:49 +02:00
otel.nix otel: give host metrics a host identity via resourcedetection 2026-08-27 10:49:30 +02:00
stylix-theme.nix swarm-ui: apply the operator's stylix theme, same as the dashboard already does 2026-08-24 14:28:25 +02:00
swarm-authelia.nix swarm-authelia: stop answering machine callers with a 200 error page 2026-08-27 14:04:18 +02:00
swarm-ca.nix swarm-otel: collect only the units the swarm's services declare 2026-08-24 22:05:45 +02:00
swarm-container-resolver.nix fix(#3363): swarm containers write their own resolver file 2026-08-17 17:30:15 +02:00
swarm-controller.nix types: let nix own the reserved-name blacklist 2026-08-27 16:36:42 +02:00
swarm-grafana.nix swarm-grafana: provision log store and metrics store dashboards 2026-08-26 21:37:31 +02:00
swarm-nats.nix swarm-nats: manual callout needs all four keys, not two 2026-08-24 23:06:59 +02:00
swarm-otel.nix types: let nix own the reserved-name blacklist 2026-08-27 16:36:42 +02:00
swarm-peers-removed.nix docs+nix: fix stale certFingerprint/HYPERHIVE_PEERS references (hyperhive#3294) 2026-08-15 19:56:11 +02:00
swarm-required-services.nix feat(swarm): start the log store with the other required services 2026-08-24 17:00:38 +02:00
swarm-snapshot-store.nix refactor(#2862): keep the option at services.hyperhive.snapshotStore 2026-07-31 19:03:24 +02:00
swarm-ui.nix gateway: dial swarm services by name over verified TLS 2026-08-27 16:36:03 +02:00
swarm-victorialogs.nix gateway: dial swarm services by name over verified TLS 2026-08-27 16:36:03 +02:00
swarm-victoriametrics.nix swarm-otel: collect only the units the swarm's services declare 2026-08-24 22:05:45 +02:00
swarm-wireguard.nix docs+nix: fix stale certFingerprint/HYPERHIVE_PEERS references (hyperhive#3294) 2026-08-15 19:56:11 +02:00
swarm.nix swarm: publish an authenticated gateway vhost for VictoriaLogs 2026-08-24 18:43:26 +02:00