How to define a an lua module on lua Envoy Filter


I want to make a redis call inside the lua script in the Envoy Filter by using a lua redis client ( to translate a custom token to JWT token.

Since the code of Envoy Filter have to be inlined into the configuration how can I load a external lua module?



It’s the standard Envoy Lua filter that is invoked.

If you’re having difficulty using it, the Envoy community might be more helpful than us.

1 Like


As far as I can tell (I haven’t done this), you’ll need to compile a custom version of envoy. See the note on lua rocks here:

Then, you’ll need to get Istio to use your version of envoy.

1 Like