Closed pat-s closed 4 months ago
Got it working after multiple days now by using kubernetes_host="https://kubernetes.default.svc/"
for the kubernetes auth config.
VSO is still operating through the public route via defaultVaultConnection.address: https://my-domain.org
.
So in the end it was caused by a connection issue of Vault itself due to the kubernetes_host
setting.
@pat-s Would you be able to share values file? I am struggling with same issue.
@harshalk91tg This is not a config within values.yaml
, for me the issue was resolved by changing the "Kubernetes Host" setting in the "Kubernetes Auth" engine in Vault. It was related to Vault in the end, not to VSO. Check my previous comment again.
Describe the bug I am not sure if this is a VSO issue but solving this might be helpful for users of Vault and VSO.
I am trying desperately for multiple days now to get VSO (via helm chart) working in a new cluster (I had it working once in another one but cannot replicate the config).
To Reproduce Steps to reproduce the behavior:
serviceaccount.createSecret.true
(to be able to use the token astoken_reviewer_jwt
auth/kubernetes/login
I am applying the config via
kubernetes
auth engine (NB: leavingaud
out to make life easier)VaultAuth
VaultStaticSecret
Expected behavior The secret is created by VSO and everything works.
Actual behavior
VSO (and the API) tell me the following:
Environment
Additional context
I read the docs about configuring kubernetes auth as well as followed the VSO tutorial.
For VSO, I've tried setting
defaultVaultConnection.address
to both the internal connection athttp://vault.vault.svc.cluster.local:8200
and the external one athttps://vault.mydomain.xyz
. Same problem.I verified that the SA has a token and has a Clusterrole assigned which allows
system:auth-delegator
to be able to act as a JWT reviewer.Besides trying to use the Use the Vault client's JWT as the reviewer JWT I also tried Use local service account token as the reviewer JWT but without any difference.
I might be overlooking something obvious. Can someone point me to it or tell me what I am doing wrong?