Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/nix/host-modules/lib/swarm-bao-shared.nix
Author SHA1 Message Date
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