by shigemk2

当面は技術的なことしか書かない

envoy lua filter

書き方チラチラ変わるのがちょっとした困りどころ http_filtersの下に書く

          - name: lua-custom-name
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
              default_source_code:
                inline_string: |
                  -- Called on the request path.
                  function envoy_on_request(request_handle)
                    -- Do something.
                  end
                  -- Called on the response path.
                  function envoy_on_response(response_handle)
                    -- Do something.
                  end

www.envoyproxy.io