Watch
0
0
Fork
You've already forked hyperhive
0

keep the operator matrix admin grant record in nats kv, not on disk

This commit is contained in:
atlas 2026-11-22 23:33:40 +01:00
commit 28d847cb7e

View file

@ -126,8 +126,10 @@ The swarm's control plane. The swarm UI and `swarmctl` are its clients.
→ [`docs/4-implementation/swarm/credentials-reference.md`](../docs/4-implementation/swarm/credentials-reference.md).
It reads its configuration once at startup, from the environment the nix module
sets. It keeps the webhook HMAC secret in the secret store and
`operator-matrix-admins.json` in its state directory.
sets. It keeps the webhook HMAC secret in the secret store and the
operator admin sync's granted set in the `operator-matrix-admins` KV bucket,
which this daemon alone reads and writes. Its state directory holds only files
it can rebuild.
The job graph lives in memory; hive status and wanted state live in the swarm
queue, so both survive a restart.