int128 / kubelogin

kubectl plugin for Kubernetes OpenID Connect authentication (kubectl oidc-login)
Apache License 2.0
1.65k stars 191 forks source link

adding certificate-data/key not working #1053

Open InsOpDe opened 6 months ago

InsOpDe commented 6 months ago

Describe the issue

I need to use a client-certificate and client-key. But when I try to add it to the config, Im getting

Error from server (Forbidden): pods is forbidden: User "system:anonymous" cannot list resource "pods" in API group "" in the namespace "xxx"

To reproduce

image

Your environment


It seems that, adding client-certificate or client-certificate-data skips the login with the plugin. This works: image

I understand that the "oidc-login" plugin does not provide a way to add these certificates, however client.authentication.k8s.io/v1beta1 has these within the state property. Is there a way to specify the certificate files or their contents within the kubelogin-plugin config?