Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/nix
Author SHA1 Message Date
atlas
d6f0b07ff1 k8s: deploy.swarm-controller.runtime moves the controller between its unit and the cluster 2026-11-27 21:29:37 +01:00
atlas
ed6b8b6f81 vm-tests: k8s-runtime-switch moves the review classifier and the claude login minter with the router 2026-11-27 21:29:37 +01:00
atlas
0bc7dba379 module-eval: the claude daemons' units, host-mode containers, pods, jwt roles and refusals 2026-11-27 21:29:37 +01:00
atlas
b5c7240442 k8s: deploy.review-classifier.runtime and deploy.claude-login.runtime move the claude daemons between their containers and the cluster 2026-11-27 21:29:37 +01:00
atlas
b0f81028c2 vm-tests: k8s-runtime-switch moves the CI run poller with the router and the speech-to-text service 2026-11-27 21:29:37 +01:00
atlas
cd1fe02b1f k8s: deploy.ci-metrics.runtime moves the CI run poller between its timer and the cluster 2026-11-27 21:29:36 +01:00
atlas
e1c1bad51a k8s: a pod's requests are explicit, so its limits cap and reserve nothing 2026-11-27 21:29:36 +01:00
atlas
aa9b7d80a0 vm-tests: k8s-runtime-switch moves the speech-to-text service with the router 2026-11-27 21:29:36 +01:00
atlas
49f5e70e3f docs: the speech-to-text service's runtime, limits and cache volume 2026-11-27 21:29:36 +01:00
atlas
68580a8725 k8s: deploy.stt.runtime moves the speech-to-text service between its container and the cluster 2026-11-27 21:29:36 +01:00
atlas
38adddaf4a vm-tests: k8s-runtime-switch moves the router between its container and the cluster and back 2026-11-27 21:29:36 +01:00
atlas
30567ad28f k8s: deploy.notify-router.runtime moves the router between its container and the cluster 2026-11-27 21:29:36 +01:00
atlas
40519f9123 k8s: a pod's public CA files come from a ConfigMap, not a Secret 2026-11-27 21:29:36 +01:00
atlas
5ad353d417 vm-tests: k8s-bao-login runs a pod's ServiceAccount login against the real store 2026-11-27 21:29:36 +01:00
atlas
7fff98687c k8s: pods log in to the secret store with their ServiceAccount token
The store gets a listener for the pods that asks for no client certificate,
open on the pod network's interfaces only, and a jwt auth mount with one
role per in-cluster service. The rendered pods run under a ServiceAccount
with a projected token in place of their client certificate.
2026-11-27 21:29:36 +01:00
atlas
a5046c767e vm-tests: a running collector keeps its cursor when it switches to the static user 2026-11-27 21:29:36 +01:00
atlas
4ec7513b1b k8s: pod logs and metrics reach the hive collector 2026-11-27 21:29:36 +01:00
atlas
42bc6e7f2a vm-tests: k8s-node pod reaches the hive bridge's listeners by swarm name 2026-11-27 21:29:36 +01:00
atlas
21ea65af1b k8s: pods resolve the swarm names of host-run services to the hive bridge 2026-11-27 21:29:36 +01:00
atlas
2c416db049 vm-tests: k8s-node boots a node through deploy.k8s.enable 2026-11-27 21:29:36 +01:00
atlas
53e43a990d k8s: deploy.k8s.enable runs a single-node k3s that holds the service images 2026-11-27 21:29:36 +01:00
atlas
d2acf3080a k8s: render the in-cluster services' manifests from their units
services.hyperhive.k8s.enable renders a Deployment (swarm-controller,
swarm-notify-router) or CronJob (swarm-ci-metrics) per service this host
deploys into system.build.k8sManifests. The renderer reads each evaluated
unit: its environment, LoadCredential ids, state and runtime directories,
ExecStart and timer. Files the unit names are mounted at the same paths, so
the environment carries over as it is. Secrets are referenced by name only.

No unit changes. checks: k8s-manifests-all-local (kubeconform -strict,
offline schemas) and module-eval-k8s; the allLocal fixture turns the
rendering on.
2026-11-27 21:29:36 +01:00
atlas
5a884a8d09 vm-tests: a k3s node harness, and the swarm images boot as pods 2026-11-27 21:29:36 +01:00
atlas
352af3ea59 swarm-controller: move the deploy concern into its own module
Refs #6897
2026-11-27 21:25:28 +01:00
atlas
05e59c1e8c hive-matrix: the fallocate probe works inside tuwunel's sandbox
Refs #6885
2026-11-27 20:38:14 +01:00
atlas
8f7c45d40f add a default archetype, preselected by the clients 2026-11-27 19:40:19 +01:00
maia
26ac7acb25 deploy: drop the rename shims of controller.links, adminSync.ignoreUsers and otel.scrapeTargets
The three `swarm.*` options moved under their service's deploy namespace on
2026-11-01, so their `mkRenamedOptionModule` shims are past the four-week
window. The `core-toggle` eval case that sets the old names on purpose printed
`Obsolete option ... is used` in every `nix flake check` log, from the shim of
`swarm.otel.scrapeTargets`.

The shims go, and so do the case's settings, assertions and rename-warning
entries for these three. The case keeps the other nine renames. The
`swarm-otel-identity` checks read `scrapeTargets` through the old
`swarm.otel` path, which only the shim provided, so they now read
`deploy.swarm-otel.scrapeTargets`. No config, example or doc names the old
paths.

Closes #6929
2026-11-27 18:14:39 +01:00
atlas
6d0c0dc391 swarm-controller: move the secrets concern into its own module
Refs #6897
2026-11-27 17:35:19 +01:00
atlas
7c7c94d184 hive-matrix: turn off tuwunel's log preallocation on btrfs and zfs
Refs #6885
2026-11-27 17:35:04 +01:00
damocles
82710f4fa8 memory-cap: give claude a heap ceiling of at most 3 GiB instead of 75% of the container cap 2026-11-27 17:22:17 +01:00
iris
dd17b20dac grafana: draw the forge change-size panels as bars that follow the time range
Average change size and the lines added and deleted panels drew one-line spikes:
the counters only exist while a repo is active and the rate over the short
rate interval left a gap everywhere else, so isolated pushes were hairlines, and
one repo's bulk import set the scale for the rest. They now draw bars of at most
40 buckets that follow the time range, and the average is the bucket's lines over
its merges on a logarithmic axis. No docs change: observability.md documents the
metrics, not the panels.
2026-11-27 17:03:29 +01:00
atlas
a9df331469 swarm-controller: move the forge concern into its own module
Refs #6897
2026-11-27 16:45:16 +01:00
atlas
cd8feedf73 swarm-controller: move the observability concern into its own module
Refs #6897
2026-11-27 14:21:35 +01:00
atlas
9b2ba275d8 swarm-controller: move the accounts concern into its own module
Refs #6897
2026-11-27 13:13:28 +01:00
atlas
237cdaffaa swarm-controller: move the review concern into its own module
Refs #6897
2026-11-27 12:17:26 +01:00
maia
b56fbaed39 egress: say the forward-chain comment's agent_allow also holds the swarm endpoints
Closes #6902
2026-11-27 11:45:43 +01:00
maia
ecfc21b962 egress: let every agent reach the swarm's own endpoints under forward reject
With the egress intercept on, the forward chain rejects what `agent_allow`
does not hold, and `agent_allow` only held an agent's ssh connections. An
agent whose secret store, queue, logs or metrics endpoint is not on the
bridge was refused, so no agent started on a hive away from the swarm host.

hive-c0re's egress worker now also renders a `* <ipv4> <port>` line for each
endpoint URL it hands to agents (HIVE_AGENT_BAO_ADDR, HIVE_AGENT_LOGS_QUERY_URL,
HIVE_AGENT_METRICS_URL, HIVE_AGENT_NATS_URL), resolved like the ssh hosts.
`hive-priv egress-pin` expands a `*` line to the MAC of every agent port. An
older hive-priv skips the line, as it skips any unknown name.

Closes #6902
2026-11-27 11:45:43 +01:00
damocles
e77758d0d0 matrix-ctl: restart the homeserver when it loaded another registration, not when the file is newer, and never while it starts 2026-11-27 08:29:56 +01:00
damocles
897f8af77d subagent and bash daemons: the runs' memory ceiling sits on their cgroup node, not on the unit 2026-11-26 14:23:34 +01:00
iris
928fe568dd grafana: make the hive degraded alert name the critical warning
The alert read the per-hive degraded gauge, so it could not say which warning
raised it and sent the operator to a second alert. It now reads the critical
warning series, one instance per kind, and the summary names the kind. The
docs and the module-eval check follow. The message text is not in the alert,
only in the hive-c0re log.
2026-11-25 18:51:10 +01:00
maia
56423beef7 store_list: pin the mount-refusal and unreachable-store answers too
The script test's stub gains the two remaining rows of bao's table: a
token with no access to the mount (403 on the preflight) and a store that
is not there. Both end with status 2 and an error on stderr, and both must
be errors, not an empty list.
2026-11-24 18:21:43 +01:00
maia
df9cd8c7e6 archive: an empty prefix lists as no users, not as a failure
swarm-archive-users and hive-archive-backup read "No value found" on
stderr to tell a prefix that holds nothing from an error. With
`kv list -format=json`, bao answers such a prefix with status 2, `{}` on
stdout and nothing on stderr, so on a swarm whose archive has no users
yet the unit failed every 30 seconds forever, and every switch reported
it.

store_list, in the shared store helper, prints the names as a JSON array
and `[]` for a prefix that holds nothing: failed, empty stderr, stdout
`{}`. It is not decided on status 2 alone, which a refused token, a
sealed store and an unreachable store end with as well (their error is on
stderr). The two scripts use it. The script test runs it against a stub
that answers as bao does, with controls for a refusal, a sealed store and
a warning beside an empty answer, and the archive VM test's stub no
longer prints the table format's message for a JSON list. full-setup
waits for the users file to be rendered on a fresh swarm.

Closes #6840
2026-11-24 18:19:26 +01:00
maia
912b2d9570 swarm-otel: a timer starts the receiver-socket check again while it is failed
swarm-otel-sockets probes once at activation. On a fresh swarm the
collector opens its sockets only after authelia answers, which is after
the operator unseals the store, so the probe failed and stayed failed
after ingest worked: the only red unit on the swarm.

swarm-otel-sockets-recheck.timer now starts it again each minute, and
only while it is failed (an ExecCondition on systemctl is-failed), with
a restart that does not block. The check itself gets no Restart: a
oneshot's start job stays pending through an automatic restart, so a
switch would wait on it for as long as the collector is down, and the
failed check is what the switch reports. full-setup waits for the check
to be active after the collector has recovered, and the module-eval case
pins the timer, the condition and the absence of a Restart.

Closes #6836
2026-11-24 16:41:04 +01:00
atlas
870a0a6697 swarmctl bao init: save bao's raw output before parsing, and accept null key lists 2026-11-24 15:38:31 +01:00
atlas
cd040afa0e swarmctl login: find the sso provider from the gateway's published metadata 2026-11-23 23:19:45 +01:00
maia
c1851f37cc swarm-bao: move the agent PKI and SSH CA units out
swarm-bao-agent-pki (the agent PKI mount, its root and role, and the
listener's trust in it, with the restart of openbao) and
swarm-bao-agent-ssh-policy (the agent SSH CA mount and its role) are
their own module, with the bindings only they use. The mount names, the
cached agent CA, the listener bundle and the unit timeouts the host
module also reads join lib/swarm-bao-shared.nix.

Refs #6820
2026-11-23 22:40:45 +01:00
maia
e8a6a4dfdb swarm-bao: point the moved leaf comments at ../ files 2026-11-23 22:05:10 +01:00
maia
a5a0b4a489 swarm-bao: move the per-principal reader policy units out
The 17 swarm-bao-*-policy units that write a service's own policy and
cert-auth role (Grafana, the collector, the queue and store responders,
the CI runner and poller, the classifier, the builder, the cache, the
archive, the claude login minter, the notification router, stt and the
forge publisher) are their own module, with the reader lists and the unit
shape they use. The stanzas, leaves and unit helpers the host module also
reads join lib/swarm-bao-shared.nix.

Refs #6820
2026-11-23 21:59:17 +01:00
maia
5dacfdb320 swarm-bao: move the operator viewer login and the shared bindings out
swarm-bao.nix held 5,146 lines in one module. Move two pieces out, with
no change to what it renders:

- lib/swarm-bao-shared.nix: the bindings more than one concern reads
  (the TLS directory, the granter's login and unit shape, the leaves
  several grants name, the CLI wrapper). swarm-bao.nix and the sibling
  modules import it and inherit what they use.
- swarm-bao-operator-viewer.nix: the store's browser-UI login (the
  operator viewer policy, the oidc auth config and its role), gated as it
  was on the store and its server certificate.

Refs #6820
2026-11-23 21:54:32 +01:00
maia
dad288d555 swarm-otel, swarm-grafana: a delivery unit fails on no value yet
The collector's and Grafana's OIDC delivery units exited 0 when the store
held no value, so systemd did not retry them. On a fresh swarm authelia's
mint writes the secret about 30 s after the first read, and only the
refresh timer, ten minutes on, read it again. Both units now exit 75, and
the store retry they already carry asks every 30 s until the mint lands.

Closes #6790
2026-11-23 12:43:37 +01:00