2022-04-01T13:06:08.611Z WARN [PlainSaslServerMechanism] Exception when authenticating @@serviceaccount@@: java.lang.RuntimeException: Error performing POST on /apis/authentication.k8s.io/v1beta1/tokenreviews: 404, {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource","reason":"NotFound","details":{},"code":404} at io.enmasse.keycloak.spi.K8sServiceAccountCredentialProvider.authenticateToken(K8sServiceAccountCredentialProvider.java:101)
Checklist
[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[ ] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
Use tokenreview v1 when authenticating against service accounts (for kube 1.22 compatibility)
https://kubernetes.io/docs/reference/using-api/deprecation-guide/#tokenreview-v122
Type of change
Description
Checklist
./documentation/design