-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions on Vault auth with k8s #6987
Comments
Hi @JoeyLuffa,
What is the returned error output? I assume that Cheers, |
Hi @michelvocks , The returned error is:
|
Hi @JoeyLuffa, I'm a bit confused. I expected to see an error produced by Vault. Cheers, |
Hi @michelvocks Sorry, the error should be |
Hello
In your case, either the service account token used in the POD Vault has enough rights to do the verification, or the service account of the requester has enough rights to do it (that's why it works)
It is necessary to have a ClusterRoleBinding and not just a RoleBinding because the account service used to present itself to Vault (through vault-injector I guess) must be able to be used by all namespaces of the cluster and not just one namespace
This means that your clusterrole associated to the account service needed for the verification does not have enough rights
If it's OK for you could you close this case ? Best regards |
@goplusgo - is this relevant for you still? or are you now able to close this request? |
Due to the issue age and quiescence, I'm going to go ahead and close it now. Please feel free to re-open as needed, or visit our Discuss forums for community support. |
According to https://learn.hashicorp.com/vault/identity-access-management/vault-agent-k8s , in order to config k8s auth, we need to have configs as:
Is the
token_reviewer_jwt
mandatory? I tried with only thekubernetes_ca_cert
and it still works. Did I miss anything?Second, for the
vault-auth
account, we need to useClusterRoleBinding
. I tried withRoleBinding
and it didn't work. Can I know why we have to useClusterRoleBinding
?Thanks.
The text was updated successfully, but these errors were encountered: