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
|
|
@ -34,6 +34,12 @@ path "sys/auth/oidc" {
|
|||
capabilities = ["create", "update", "sudo"]
|
||||
}
|
||||
|
||||
# The pods' login with a ServiceAccount token. Enabled only on a host that runs
|
||||
# the cluster node; the stanza costs nothing elsewhere.
|
||||
path "sys/auth/jwt-k8s" {
|
||||
capabilities = ["create", "update", "sudo"]
|
||||
}
|
||||
|
||||
# The granter's own policy and role, and nothing it may write.
|
||||
path "sys/policies/acl/bao-granter" {
|
||||
capabilities = ["create", "update"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue