envoyproxy/envoy

Running Lua filter as fail closed

開放

#14,980 建立於 2021年2月8日

 (9 則留言) (3 個反應) (0 位負責人)C++ (5,373 個分叉)batch import
area/luahelp wanted

倉庫指標

星標
 (27,997 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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?

貢獻者指南