trivy
trivy copied to clipboard
k8s can't scan gke container version 1.25
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
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. :)