# What the secret store's pod login and the pods' manifests agree on, in one # place: the auth mount, the audience, and where the projected token is # mounted. ../swarm-bao.nix writes the mount and its roles from it and # ../k8s/render.nix renders the pods from it. `DEFAULT_JWT_FILE` in # swarm-secret-client/src/client.rs is `tokenFile`. # # Pure attrset — NOT a NixOS module. { # Named in ../bao-bootstrap-policy.hcl, which is a static file. mount = "jwt-k8s"; # The `aud` the pods ask the API server for and the roles require, so a token # minted for the Kubernetes API is no use here. audience = "bao"; tokenDir = "/var/run/secrets/hyperhive/bao"; tokenFile = "/var/run/secrets/hyperhive/bao/token"; }