3scale / 3scale-istio-adapter

Red Hat 3scale Istio Mixer Adapter - Add 3scale's API Management to the Service Mesh
Apache License 2.0
32 stars 19 forks source link

Backend caching returns 500 when apisonator is down #183

Open pehala opened 3 years ago

pehala commented 3 years ago

When Backend caching is enabled and apisonator is down, uncached credentials return always 500 regardless of BACKEND_CACHE_POLICY_FAIL_CLOSED. Cached credentials work as expected.

unleashed commented 3 years ago

Thoughts from a preliminary inspection:

So from a quick check I think this might need to change in the fail_closed case to return a 403 instead of relaying back the code that 3scale last failed with. The question about why this 503 -> 500 mapping is happening looks less important, and probably not worth getting into.