-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
3
-
False
-
-
False
-
-
Unset
-
No
-
-
-
Platform A&M Sprint 57, Platform A&M Sprint 58
Currently, in our middleware when we process the response [1] we check to see if the request is internal, and if so we'll short-circuit and return out of process_response. What follows is the actual logging, which we don't get for internal requests.
We should add similar logging to the internal middleware process_response method [2] to ensure we're capturing these requests in pod logs as well as in Kibana.
We should avoid duplication where possible, and abstract anything reusable out into a shared module (if it makes sense).
[1] https://github.com/RedHatInsights/insights-rbac/blob/master/rbac/rbac/middleware.py#L277-L286
[2] https://github.com/RedHatInsights/insights-rbac/blob/master/rbac/internal/middleware.py#L66