envoyproxy/envoy

Running Lua filter as fail closed

Open

#14.980 aberto em 8 de fev. de 2021

Ver no GitHub
 (9 comments) (3 reactions) (0 assignees)C++ (5.373 forks)batch import
area/luahelp wanted

Métricas do repositório

Stars
 (27.997 stars)
Métricas de merge de PR
 (Mesclagem média 8d) (378 fundiu PRs em 30d)

Description

Is there a way to run Lua filters as "fail closed"? I have observed that the requested resources are served normally if an error/exception occurs in the Lua script. I would rather see 503 (at least for some scripts, s.a. a Lua auth filter). Can this be done/configured, or do I need to be super defensive (paranoid) when writing the filter?

Guia do colaborador