EnvoyFilterUsesRelativeOperation

    How to resolve

    1. apiVersion: networking.istio.io/v1alpha3
    2. kind: EnvoyFilter
    3. metadata:
    4. namespace: bookinfo
    5. spec:
    6. workloadSelector:
    7. labels:
    8. app: reviews2
    9. configPatches:
    10. # The first patch adds the Lua filter to the listener/http connection manager
    11. match:
    12. context: SIDECAR_INBOUND
    13. listener:
    14. portNumber: 8080
    15. filterChain:
    16. filter:
    17. name: "envoy.filters.network.http_connection_manager"
    18. subFilter:
    19. name: "envoy.filters.http.router"
    20. operation: INSERT_BEFORE
    21. value: # Lua filter specification
    22. name: envoy.lua
    23. "@type": "type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua"
    24. inlineCode: |
    25. function envoy_on_request(request_handle)
    26. -- Make an HTTP call to an upstream host with the following headers, body, and timeout.
    27. local headers, body = request_handle:httpCall(
    28. "lua_cluster",
    29. {
    30. [":method"] = "POST",
    31. [":path"] = "/acl",
    32. [":authority"] = "internal.org.net"
    33. },
    34. "authorize call",
    35. 5000)