envoyproxy/envoy

Running Lua filter as fail closed

Open

#14.980 aperta il 8 feb 2021

Vedi su GitHub
 (9 commenti) (3 reazioni) (0 assegnatari)C++ (5373 fork)batch import
area/luahelp wanted

Metriche repository

Star
 (27.997 star)
Metriche merge PR
 (Merge medio 8g) (378 PR mergiate in 30 g)

Descrizione

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?

Guida contributor