Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/nix
Author SHA1 Message Date
atlas
fda9fff23f vm-tests: migrate status reports the state gate's answers 2026-11-30 22:17:17 +01:00
atlas
aa10e2e096 nix: render migrate.json and wrap swarmctl with kubectl 2026-11-30 22:17:17 +01:00
atlas
6c5b41f228 vm-tests: the state gate refuses an empty volume until the marker is written 2026-11-30 22:17:16 +01:00
atlas
42028e61bc module-eval: the state gate is every stateful pod's first init container 2026-11-30 22:17:16 +01:00
atlas
a1176c7a5e a pod with a state volume starts only on a migrated or fresh volume 2026-11-30 22:17:16 +01:00
atlas
d9323a9150 vm-tests: k8s-nats-switch moves the queue between its container and the cluster 2026-11-30 22:17:16 +01:00
atlas
adccef142c module-eval: the queue's pod, jwt roles, host units, exposure rules and store guard 2026-11-30 22:17:16 +01:00
atlas
df0b6e5117 nats: runtime k8s runs the queue and its auth callout as one pod 2026-11-30 22:17:16 +01:00
atlas
396c717e86 bao: the queue pod's two jwt roles share one ServiceAccount 2026-11-30 22:15:10 +01:00
atlas
ac86631a2f docs: the controller's runtime, hostPort hop, listener leaf, state and rev rollout 2026-11-30 22:15:10 +01:00
atlas
41e8900ecc vm-tests: k8s-controller-switch moves the controller between its unit and the cluster 2026-11-30 22:15:10 +01:00
atlas
42292d44ab module-eval: the controller's runtime, hostPort hop, listener leaf and rev rollout 2026-11-30 22:15:10 +01:00
atlas
f5babb35c2 k8s: deploy.swarm-controller.runtime moves the controller between its unit and the cluster 2026-11-30 22:15:10 +01:00
atlas
d7c69d54e8 vm-tests: k8s-runtime-switch moves the review classifier and the claude login minter with the router 2026-11-30 22:15:10 +01:00
atlas
89797cc392 module-eval: the claude daemons' units, host-mode containers, pods, jwt roles and refusals 2026-11-30 22:15:09 +01:00
atlas
5c8ae70745 k8s: deploy.review-classifier.runtime and deploy.claude-login.runtime move the claude daemons between their containers and the cluster 2026-11-30 22:15:09 +01:00
atlas
5729ed10b0 vm-tests: k8s-runtime-switch moves the CI run poller with the router and the speech-to-text service 2026-11-30 22:15:09 +01:00
atlas
a90b78b9ef k8s: deploy.ci-metrics.runtime moves the CI run poller between its timer and the cluster 2026-11-30 22:15:09 +01:00
atlas
57bf2dfac6 k8s: a pod's requests are explicit, so its limits cap and reserve nothing 2026-11-30 22:15:09 +01:00
atlas
be65670a87 vm-tests: k8s-runtime-switch moves the speech-to-text service with the router 2026-11-30 22:15:09 +01:00
atlas
754f6376df docs: the speech-to-text service's runtime, limits and cache volume 2026-11-30 22:15:09 +01:00
atlas
74ee890593 k8s: deploy.stt.runtime moves the speech-to-text service between its container and the cluster 2026-11-30 22:15:09 +01:00
atlas
cef00bb2ab vm-tests: k8s-runtime-switch moves the router between its container and the cluster and back 2026-11-30 22:15:09 +01:00
atlas
d750d848eb k8s: deploy.notify-router.runtime moves the router between its container and the cluster 2026-11-30 22:15:09 +01:00
atlas
31b938e084 k8s: a pod's public CA files come from a ConfigMap, not a Secret 2026-11-30 22:15:09 +01:00
atlas
f360efaf0c vm-tests: k8s-bao-login runs a pod's ServiceAccount login against the real store 2026-11-30 22:15:09 +01:00
atlas
6e59393830 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-30 22:15:09 +01:00
atlas
5e4544b729 vm-tests: a running collector keeps its cursor when it switches to the static user 2026-11-30 22:15:09 +01:00
atlas
75b65d6719 k8s: pod logs and metrics reach the hive collector 2026-11-30 22:15:09 +01:00
atlas
f1eca9f191 vm-tests: k8s-node pod reaches the hive bridge's listeners by swarm name 2026-11-30 22:15:09 +01:00
atlas
f55068db28 k8s: pods resolve the swarm names of host-run services to the hive bridge 2026-11-30 22:15:09 +01:00
atlas
874da3358a vm-tests: k8s-node boots a node through deploy.k8s.enable 2026-11-30 22:15:09 +01:00
atlas
8fe2be87e7 k8s: deploy.k8s.enable runs a single-node k3s that holds the service images 2026-11-30 22:15:09 +01:00
atlas
5a628a1edb 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-30 22:15:09 +01:00
atlas
b9033251ba vm-tests: a k3s node harness, and the swarm images boot as pods 2026-11-30 22:15:09 +01:00
maia
d5f5ee21be swarm-nats-auth: refuse a service client id that fits a hive or a second role 2026-11-30 21:59:38 +01:00
maia
7240c148f4 public-cache: build and push the cargo dependency closures 2026-11-30 21:47:55 +01:00
atlas
790cdd43c8 gateway: answer 503 for a store outage and 429 for the rate limit, and retry both in swarm-logs and swarm-metrics 2026-11-30 21:34:53 +01:00
maia
8717e68021 swarm-nats-auth: the responder refuses to start under a server callout timeout its lookup bound does not fit 2026-11-30 17:32:51 +01:00
maia
61636cfcc2 swarm-metrics-auth: remember a "no bearer stored" answer for the cache TTL
When the store answered that it holds no usable bearer, the cache was reset
to its default, which forgot that the answer had just been asked for. Every
request after that started its own bao login and read, one at a time (up to
5 s each), so anyone sending `Bearer <64 hex>` before Grafana's bearer exists
queued Grafana's real requests behind those lookups, on a route with no rate
limit because the responder was said to read the store at most once per TTL.

Remember the answer for the TTL, as a stored bearer is, and deny without a
lookup until it passes (`empty_until`). A bearer that arrives ends it. The
"at most once per cache TTL" comments in swarm-victorialogs.nix and
swarm-victoriametrics.nix now also say the failure case, one lookup per few
seconds while the store does not answer.
2026-11-30 17:08:38 +01:00
maia
564842d332 swarm-victorialogs, swarm-victoriametrics: the four responders' socket directories admit only the service and nginx 2026-11-30 17:06:32 +01:00
maia
93ccd11bf3 hive-matrix: tuwunel's database open logs RocksDB's own messages
tuwunel hands RocksDB's log to its own logger at `rocksdb_log_level = "error"`,
so the recovery and flush lines of a database open never reached the journal:
a replay that has run for hours looked the same as a wedged open. The module
sets `rocksdb_log_level = "info"` and `rocksdb_log_stderr = true`, which writes
them to stderr, past tracing's filter.

The comment on the unit's start limit said the 30 minutes bound the open.
They don't: tuwunel sends `EXTEND_TIMEOUT_USEC` every 15 s whether or not the
open advanced, so only a stop ends a wedged one. The comment and the handbook
say so.

Refs #6885
Closes #6981
2026-11-28 17:08:09 +01:00
maia
c12e231d32 fix(matrix): the deferred starter logs the state its boot ended in
A degraded guest still starts the services, and now the journal says so next
to the start. The VM test pins the line.
2026-11-28 09:48:50 +01:00
maia
3919de6358 fix(matrix): queue tuwunel's start after the guest's boot is over
The deferred starter was a oneshot that ran `systemctl start --no-block
tuwunel` inside the boot transaction. A --no-block start still queues a
start job, so the guest's job queue stayed non-empty for as long as
tuwunel's start took, and the container (Type=notify, --notify-ready=yes,
one minute) never reported ready and was killed at its limit.

The starter is now Type=simple, so its own start job ends at the fork. It
waits for `systemctl is-system-running --wait` and only then queues the
service. The VM test waits for the daemon to reach `activating` instead of
asserting it the moment the container's start ends.
2026-11-28 09:48:50 +01:00
atlas
19640f3bf8 container-deferred-start: assert the control unit's end state instead of reset-failed 2026-11-28 09:48:50 +01:00
atlas
ba0f9c6264 start tuwunel after the container is up, under its own 30 min limit 2026-11-28 09:48:50 +01:00
damocles
73ef63a5e5 matrix daemon: stay up when the primary account is down and say why in the tools 2026-11-28 09:46:56 +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