Watch
0
0
Fork
You've already forked hyperhive
0

k8s: pods log in to the secret store with their ServiceAccount token

The store gets a listener for the pods that asks for no client certificate,
open on the pod network's interfaces only, and a jwt auth mount with one
role per in-cluster service. The rendered pods run under a ServiceAccount
with a projected token in place of their client certificate.
This commit is contained in:
atlas 2026-11-21 14:03:28 +01:00 • committed by maia
commit 2a6b0ee00a
2 changed files with 720 additions and 69 deletions

View file

@ -9,11 +9,13 @@ holds the store's mechanics.
**Store secrets stay off disk.** A process pulls a value from the store at
runtime and holds it in memory only.
**The mTLS client certificate is the only credential on disk.** Each
**The mTLS client certificate is the only credential you place on disk.** Each
identity (an agent, a hive, a swarm-level service) has one. It's what logs a
principal in to the store, so you place a hive's or service's certificate by
hand. The nix option for it takes a path to the certificate, never its bytes,
because a literal in a nix expression lands in the world-readable nix store.
because a literal in a nix expression lands in the world-readable nix store. A
service that runs in the cluster has no certificate: its pod logs in with a
ServiceAccount token that the cluster projects into it, so you place nothing.
A hive hands each agent its certificate; the agent pulls everything else
itself.

View file

@ -104,8 +104,8 @@ every interface, and `deploy.bao.openFirewall` together with
on the addresses it listens on. Both default to off. Each exposes a service
beyond the agent bridge, which is the operator's decision. The queue requires TLS and
its `auth_callout` refuses every client it can't identify. The store requires a
client certificate on every listener, and evaluation fails when you
set `deploy.bao.openFirewall` without `deploy.bao.clientCaFile`. Point
client certificate on every listener that port reaches, and evaluation fails
when you set `deploy.bao.openFirewall` without `deploy.bao.clientCaFile`. Point
`nats.<swarm.domain>` and `bao.<swarm.domain>` in your upstream DNS at the
address the other hives reach.