Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/nix/module-eval
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 33fdd5205e swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back
The credentials of an agent's backend (ANTHROPIC_API_KEY and the like) move to their own leaf, swarm/agents/<agent>/backend-secrets, written through new PUT, GET and DELETE routes on /api/hives/{hive}/agents/{agent}/backend-secrets. GET says only whether any are stored. The backend environment at backend-env now reads back as stored through GET on its route, so it holds configuration only.

The agent's hive-agent-backend-env unit now runs on every agent with a store, reads both leaves and writes the configuration and then the secrets into the one file the harness and the subagent daemon load, so a secret wins over a variable of the same name. It removes the file when the store holds neither. The harness counts an agent whose environment holds ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN as API-billed, so it tries the key instead of waiting for a Claude login; a real 401 still sets needs-login. The controller's policy may delete the new leaf.

Tests: the secret-client path, the controller routes, the script test of the unit with a stub bao, the module-eval cases and the harness's mode check. Docs: the swarm UI routes, the credentials reference and the API-key provider page.
2026-11-20 20:36:33 +01:00
..
agent-android-dev.nix android-dev archetype: ship the Android SDK and nix-ld so a Gradle build runs 2026-11-20 19:35:47 +01:00
agent-forge-bao.nix agent ssh connections: declare per agent, render into the agent's ssh config 2026-11-20 03:10:41 +01:00
agent-github-bao.nix agents keep their github token in /run, fetched on every start, not in the state dir 2026-11-15 14:08:57 +01:00
agent-icon.nix nix: split module-eval into per-subsystem checks 2026-09-20 04:25:54 +02:00
agent-matrix.nix back off the matrix daemon's restarts so a homeserver outage can't flood the store with logins 2026-11-01 11:36:55 +01:00
agent-memory.nix bash tasks are the OOM killer's first victims: score 1000, subagent runs 900, MemoryHigh on the bash daemon 2026-11-19 08:03:07 +01:00
agent-otel.nix otel: collectors drop their own export-failure lines instead of shipping them 2026-11-15 01:20:18 +01:00
agent-plugins.nix module-eval: drop 18 redundant cases and merge assertion-only hosts 2026-10-17 08:00:29 +02:00
agent-queue-bao.nix containers reach network-online only with a dhcp lease, and bao users wait for it 2026-11-01 11:06:41 +01:00
agent-rea.nix add rea agent module and reverse-engineer archetype 2026-10-27 11:33:04 +01:00
agent-runtime.nix swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back 2026-11-20 20:36:33 +01:00
agent-ssh-target.nix add an ssh ca to bao, agent ssh certificates and a target module 2026-11-16 20:31:18 +01:00
agent-user.nix move nixBuilds into its own agent module, and have the vm test's agent import it 2026-11-06 09:18:42 +01:00
bao-basics.nix outlast openbao's cold restart in the agent ca unit's start limit 2026-11-01 15:09:13 +01:00
bao-controller.nix the operator's bao works on a store host without a hive 2026-11-11 09:10:50 +01:00
bao-grants.nix swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back 2026-11-20 20:36:33 +01:00
bao-matrix-reader.nix containers reach network-online only with a dhcp lease, and bao users wait for it 2026-11-01 11:06:41 +01:00
bao-otel-collector.nix nats and bao can listen on a routable address, opt-in 2026-11-09 17:42:20 +01:00
boot-wait.nix sum the boot-wait budgets of units that start one after another in a container, and check it 2026-11-02 17:22:37 +01:00
builder.nix ship the cache's init units' journal from a host with no collector, with the cache's own client 2026-11-18 09:43:57 +01:00
ci-metrics.nix keep authelia's oidc client secrets in the store, not on disk 2026-10-30 16:57:58 +01:00
core-toggle.nix gateway reaches the controller over tls with its own client leaf when the tcp listener is on 2026-11-20 19:24:20 +01:00
forge-placement.nix ci-runner: warn when the host has no nix store gc 2026-11-11 20:34:11 +01:00
grafana.nix docs: drop the turn-stats sqlite section and stale mentions, point the grafana check at the daemon 2026-11-18 20:53:12 +01:00
hive-otel.nix otel: collectors drop their own export-failure lines instead of shipping them 2026-11-15 01:20:18 +01:00
hive-tls.nix swarm-archive: back up every agent's state to an append-only restic repository per agent 2026-11-10 07:49:49 +01:00
journald-severity.nix module-eval: assert the severity table once, not once per tier 2026-09-20 14:23:56 +02:00
lib.nix module-eval: give the Grafana stand-in a mainProgram, so upstream's getExe stops warning 2026-11-05 09:55:53 +01:00
matrix-core.nix hive-matrix: prefill the chat client with the server name, not the hive domain 2026-11-11 00:31:20 +01:00
name-guards.nix the operator's bao works on a store host without a hive 2026-11-11 09:10:50 +01:00
nats-authelia.nix swarm-nats: the units the responder requires uphold it 2026-11-19 12:26:13 +01:00
nats-tls.nix remove the swarm wireguard mesh; tombstone its options 2026-11-15 02:17:44 +01:00
secret-publisher.nix module-eval: give the Grafana stand-in a mainProgram, so upstream's getExe stops warning 2026-11-05 09:55:53 +01:00
semi-spread.nix swarm-stt: the deploy module (deploy.stt.*, sandboxed container, store leaf, queue grants) and its docs 2026-11-12 12:18:32 +01:00
shared.nix move links, adminSync.ignoreUsers and scrapeTargets under their service's deploy namespace 2026-11-01 20:47:23 +01:00
swarm-otel-core.nix otel: collectors drop their own export-failure lines instead of shipping them 2026-11-15 01:20:18 +01:00
swarm-otel-identity.nix swarm-victorialogs: own network namespace, gateway over a unix socket 2026-11-18 19:17:58 +01:00
swarm-services-switch.nix swarm-victorialogs: own network namespace, gateway over a unix socket 2026-11-18 19:17:58 +01:00