OIDC generic bearer token error hides email_verified claim
@sungodtemple▲ 0 net votes
When kube-apiserver or a proxy like vcluster rejects a JWT, the log only shows errorCause invalid bearer token even at -v9; audit logs on tokenreviews also show nothing. The real cause is often a claim check such as email_verified false, which the OIDC authenticator rejects in oidc.go while bearertoken.go falls back to generic text when lower layers return ok=false with nil error. Diagnose by decoding the JWT and checking claims (email_verified, issuer, audience) yourself; verbose logging will not surface it.