we have Istio running on openshit. We were trying to analyze envoy filters for request and response body logging. During the process we had a test namespace - and create an envoy.lua filter under that.
Following is the code for the envoy filter:
– Called on the request path.
– Called on the response path.
After the test is done we deleted the namespace (without out deleting the envoy filter) - assuming all objects in the namespace would be deleted.
Then we were doing other tests - and created another namespace for the same service/label - user-preferences-rs-v1. And we observed that we are still getting the messages in istio proxy logs - RESPBODY-SC::::ENTER
We did a dump of all objects across all the namespace (oc get all --all-namespaces) - but find no references to the envoy filter.
When we do a dump of the istio proxy we see the http filter in the config dump.
“inlineCode”: “-- Called on the request path.\nfunction envoy_on_request(request_handle)\nrequest_handle:logErr(“REQBODY-SC::::ENTER”)\nend\n-- Called on the response path.\nfunction envoy_on_response(response_handle)\n response_handle:logErr(“response”)\n response_handle:logErr(“RESPBODY-SC::::ENTER”)\n end\n”
How can i get rid of this ? Also how is it possible that the filter still exists even after deleting the namespace ?
Any help is greatly appreciated.