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
|
|
@ -465,6 +465,11 @@ let
|
|||
clientCaPath = "${tlsDir}/client-ca.pem";
|
||||
|
||||
refreshConsumer = import ./refresh-consumer.nix { };
|
||||
|
||||
# The name both ends must agree on: the cert-auth role attaches this policy
|
||||
# by spelling it the same way, and is itself named after it.
|
||||
controllerPolicyName = "swarm-controller";
|
||||
|
||||
in
|
||||
{
|
||||
inherit
|
||||
|
|
@ -497,6 +502,7 @@ in
|
|||
controllerClientLeaf
|
||||
controllerForgeTokenLeaf
|
||||
controllerGrafanaTokenLeaf
|
||||
controllerPolicyName
|
||||
controllerWebhookSecretLeaf
|
||||
createStanza
|
||||
credentialMountPath
|
||||
|
|
|
|||
Loading…
Reference in a new issue