Using Istio 1.2… I see in 1.5 envoy can be setup to read the JWT token and inspect/match the value of a claim. Is this possible in Istio 1.2?
AuthorizationPolicy eaxmple here (step 8) https://istio.io/docs/tasks/security/authorization/authz-jwt/ is what I am looking to do. I have a SSO token coming in the request and want to limit access based on role defined in the JWT.
[2020-05-28 13:24:51.357][26][debug][filter] [src/envoy/http/mixer/filter.cc:154] Called Mixer::Filter : setDecoderFilterCallbacks
[2020-05-28 13:24:51.358][26][debug][filter] [src/envoy/http/jwt_auth/jwt_authenticator.cc:82] Jwt authentication starts
[2020-05-28 13:24:51.358][26][debug][filter] [src/envoy/http/jwt_auth/jwt_authenticator.cc:243] Jwt authentication completed with: OK
[2020-05-28 13:24:51.358][26][debug][filter] [src/envoy/http/jwt_auth/jwt_authenticator.cc:246] The value of allow_missing_or_failed in AuthFilterConfig is: true
[2020-05-28 13:24:51.358][26][debug][filter] [src/envoy/http/jwt_auth/http_filter.cc:61] JwtVerificationFilter::onDone with status OK
[2020-05-28 13:24:51.358][26][debug][filter] [src/envoy/http/authn/filter_context.cc:81] No dynamic_metadata found for filter jwt-auth
[2020-05-28 13:24:51.358][26][debug][filter] [src/envoy/http/authn/origin_authenticator.cc:85] Origin authenticator failed
Here is my policy and logs. Also I have tested within the envoy sidecar that it can curl to the issuer and jwksUri, though I did us curl -k (insecure) and the side car can get valid responses from the keycloak server. Below is showing that I don’t think I even have the JWT setup correctly, ultimately I want to use Istio 1.2 RBAC to check claims in the JWT. But I am failing at the first step…