envoyproxy/envoy

Running Lua filter as fail closed

Open

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

在 GitHub 查看
 (9 留言) (3 反應) (0 負責人)C++ (5,373 fork)batch import
area/luahelp wanted

倉庫指標

Star
 (27,997 star)
PR 合併指標
 (平均合併 8天) (30 天內合併 378 個 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?

貢獻者指南