]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/lua: add configurable runtime limit for the lua state 61282/head
authorOshrey Avraham <oshrey16@gmail.com>
Sun, 19 Jan 2025 00:23:36 +0000 (02:23 +0200)
committerOshrey Avraham <oshrey16@gmail.com>
Sun, 19 Jan 2025 01:05:51 +0000 (03:05 +0200)
commit3e3cb156fc58c3a73fbe334c3b93ae5f773bb826
tree0172bad229a01c61040510f4357b09cb9fc095c9
parentd6d49c93e68ae117365c9779f6e27805bd1cca45
rgw/lua: add configurable runtime limit for the lua state

These changes improve the robustness and reliability of Lua script execution in the RADOS Gateway by enforcing configurable limit on execution time.

- Enhanced `lua_state_guard` to support configurable runtime limits for Lua scripts.
- Updated rgw.yaml.in to include new configuration options for Lua runtime limits.
- Added tests in `test_rgw_lua.cc` to verify Lua script execution with different runtime constraints.
- Updated Lua scripting documentation to reflect the new runtime limit configuration.

Signed-off-by: Oshry Avraham <oshryabiz@gmail.com>
doc/radosgw/lua-scripting.rst
src/common/options/rgw.yaml.in
src/rgw/rgw_lua.cc
src/rgw/rgw_lua_background.cc
src/rgw/rgw_lua_data_filter.cc
src/rgw/rgw_lua_request.cc
src/rgw/rgw_lua_utils.cc
src/rgw/rgw_lua_utils.h
src/test/rgw/test_rgw_lua.cc