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-backend-env-fake-bao.sh
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-backend-env.nix
fetch the agent's backend env file from the store, seeded from the existing file
2026-10-28 01:24:29 +01:00
agent-backend-env.sh
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-bao-fetch.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-bao-fetch.sh
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-hive-facts.nix
hand agents the dashboard port, pinned claude and otel labels at container start
2026-10-22 07:11:46 +02:00
agent-hive-facts.sh
send agent traffic through squid once its hive announces it
2026-10-28 17:24:34 +01:00
agent-memory-cap.nix
agents: hand over the kept drop-in's cap, warn at boot without one
2026-10-12 10:59:12 +02:00
agent-memory-cap.sh
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-ssh-cert.nix
sign ssh certificates on demand from ssh itself, warn before setup, say what to do when a host key changes
2026-11-16 20:31:18 +01:00
agent-ssh-cert.sh
run the ssh cert script test under bash
2026-11-16 20:31:18 +01:00
archive-metrics.nix
swarm-archive: check each agent's restic repository weekly
2026-11-14 11:53:27 +01:00
archive-metrics.sh
swarm-archive: check each agent's restic repository weekly
2026-11-14 11:53:27 +01:00
attic-init.nix
run swarm-attic in its own network namespace
2026-11-03 07:42:10 +01:00
attic-init.sh
attic-init: replace the stored public key with the one the cache reports
2026-11-07 10:40:07 +01:00
attic-root-facts.nix
nix trusts the swarm's root through its own CA bundle, so root's nix clients reach the cache
2026-11-08 18:37:34 +01:00
attic-root-facts.sh
nix trusts the swarm's root through its own CA bundle, so root's nix clients reach the cache
2026-11-08 18:37:34 +01:00
cache-pull-substitute.nix
hive-priv: fetch the swarm signature from attic before verifying a locally valid closure
2026-11-08 11:49:51 +01:00
cache-pull-substitute.sh
hive-priv: fetch the swarm signature from attic before verifying a locally valid closure
2026-11-08 11:49:51 +01:00
database-size-push.nix
matrix: report homeserver up, latency and database size through existing collectors
2026-11-05 08:30:06 +01:00
database-size-push.sh
matrix: report homeserver up, latency and database size through existing collectors
2026-11-05 08:30:06 +01:00
grafana-secret-key.nix
read grafana's datasource key from the store into /run, seeding an empty store from the old file
2026-10-30 16:59:07 +01:00
grafana-secret-key.sh
read grafana's datasource key from the store into /run, seeding an empty store from the old file
2026-10-30 16:59:07 +01:00
granter-login-fake-bao.sh
report the real error when the granter role's bootstrap step fails, and retry on a standby store
2026-11-05 08:57:10 +01:00
granter-login.nix
report the real error when the granter role's bootstrap step fails, and retry on a standby store
2026-11-05 08:57:10 +01:00
granter-login.sh
report the real error when the granter role's bootstrap step fails, and retry on a standby store
2026-11-05 08:57:10 +01:00
nats-render-config.nix
swarm-nats: take the callout issuer and user keys from the store
2026-10-06 14:53:33 +02:00
nats-render-config.sh
swarm-nats: take the callout issuer and user keys from the store
2026-10-06 14:53:33 +02:00
oidc-client-secrets.nix
run authelia's digest under a real shell, not the service user's nologin
2026-11-09 15:50:23 +01:00
oidc-client-secrets.sh
run authelia's digest under a real shell, not the service user's nologin
2026-11-09 15:50:23 +01:00
otlp-gauges.nix
archive: push restic backup and prune metrics, and add a backups dashboard
2026-11-14 11:08:57 +01:00
otlp-gauges.sh
archive: push restic backup and prune metrics, and add a backups dashboard
2026-11-14 11:08:57 +01:00
refresh-consumer.nix
swarm-bao-agent-pki: decide openbao's restart on the shared locale-independent compare
2026-10-13 17:00:56 +02:00
refresh-consumer.sh
pull swarm closures through the nix daemon: substituters in the fragment, merged root-only netrc
2026-11-08 11:06:28 +01:00
retry-in-job.nix
agent trust bundle: retry the root fetch inside its start job so a dns blip at boot queues the harness instead of failing it
2026-11-01 13:35:01 +01:00
retry-in-job.sh
agent trust bundle: retry the root fetch inside its start job so a dns blip at boot queues the harness instead of failing it
2026-11-01 13:35:01 +01:00
store-seeded-secret.nix
fetch the secrets unit's store leaves concurrently and log how long each phase takes
2026-11-04 17:04:35 +01:00
store-seeded-secret.sh
fetch the secrets unit's store leaves concurrently and log how long each phase takes
2026-11-04 17:04:35 +01:00