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:
parent
a70710dc7d
commit
2a6b0ee00a
1 changed files with 720 additions and 69 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue