envoyproxy/envoy

Running Lua filter as fail closed

Open

#14,980 opened on Feb 8, 2021

View on GitHub
 (9 comments) (3 reactions) (0 assignees)C++ (5,373 forks)batch import
area/luahelp wanted

Repository metrics

Stars
 (27,997 stars)
PR merge metrics
 (Avg merge 8d) (378 merged PRs in 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?

Contributor guide