Lua StringMatcher (proto)

This extension has the qualified name envoy.string_matcher.lua

Note

This extension is functional but has not had substantial production burn time, use only with this caveat.

This extension is intended to be robust against both untrusted downstream and upstream traffic.

Tip

This extension extends and can be used with the following extension category:

This extension must be configured with one of the following type URLs:

A Lua StringMatcher allows executing a Lua script to determine if a string is a match. The configured source code must define a function named envoy_match. If the function returns true, the string is considered a match. Any other result, including an execution error, is considered a non-match.

Example:

source_code:
  inline_string: |
    function envoy_match(str)
        -- Do something.
        return true
    end

extensions.string_matcher.lua.v3.Lua

[extensions.string_matcher.lua.v3.Lua proto]

{
  "source_code": {...}
}
source_code

(config.core.v3.DataSource, REQUIRED) The Lua code that Envoy will execute