You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For cases where we want to make use of short-lived k8s service account tokens, it would make sense to pass also the token_reviewer_jwt as parameter to the login endpoint. So that we pass two tokens:
jwt = k8s service account token jwt for authenticating with vault (including an appropriate audience for vault)
token_reviewer_jwt = k8s service account token jwt for authenticating with kubernetes tokenreview api (including an appropriate audience for kubernetes)
For cases where we want to make use of short-lived k8s service account tokens, it would make sense to pass also the
token_reviewer_jwt
as parameter to the login endpoint. So that we pass two tokens:jwt
= k8s service account token jwt for authenticating with vault (including an appropriate audience for vault)token_reviewer_jwt
= k8s service account token jwt for authenticating with kubernetes tokenreview api (including an appropriate audience for kubernetes)see code for reference:
vault-plugin-auth-kubernetes/path_login.go
Line 92 in 6f9c733
vault-plugin-auth-kubernetes/path_login.go
Line 148 in 6f9c733
vault-plugin-auth-kubernetes/token_review.go
Lines 69 to 75 in 6f9c733
As an example this issue in cert-manager for reference:
cert-manager/cert-manager#6150 (comment)
Related cert-manager code
The text was updated successfully, but these errors were encountered: