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
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