issue with http.send #206
Replies: 2 comments 2 replies
-
Hi @karthik-phl 👋 That's weird! Could you try and add |
Beta Was this translation helpful? Give feedback.
-
Hi @anderseknert, Thanks for getting back to me. I tried that but, unfortunately, it didn't work. I have modified the ext-authz EnvoyFilter to include a timeout (found this while trawling some old posts in GitHub)
and modified the metadata function to have a 1s timeout. This seems to work now - I'm guessing that the grpc timeout was closing the connection between Istio and OPA sidecars causing the channel responsible for http.Send(...) to be discarded? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm running a policy bundle within an OPA sidecar that processes allow decisions sent by the Istio Envoy. The policy bundle tries to call the Azure AD tenant metadata endpoint to retrieve the JWKS URL. I can see that the policy is trying to call the endpoint, but
http.send(...)
doesn't seem to return - can't see any failures in the log even in "debug" mode. The policy query evaluates to "null", so I'm guessing some exception happened?The OPA sidecar container image is pulled from "openpolicyagent/opa:latest-istio"
The metadataRequest function is:
This function and the policy query works fine when I run it via
opa eval
Would appreciate some help with this. Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions