trivy icon indicating copy to clipboard operation
trivy copied to clipboard

k8s can't scan gke container version 1.25

Open josedonizetti opened this issue 2 years ago • 0 comments

trivy k8s -n tracee-system all --report=summary
2022-07-26T11:08:03.844-0300	FATAL	failed getting k8s cluster: The gcp auth plugin has been removed.
Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.

This is because GKE is changing how authentication is done. Check https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke

josedonizetti avatar Jul 26 '22 14:07 josedonizetti

There is nothing to change in trivy. Due to the change on k8s explained on google post linked to the issue description, it is required to install a plugin for the authentication, and people on old versions (past 1.25) need to recreated there credentials after:

export USE_GKE_GCLOUD_AUTH_PLUGIN=True

feel free to reopen the issue if you think differently. :)

josedonizetti avatar Sep 02 '22 13:09 josedonizetti