Project

General

Profile

Actions

Feature #55640

closed

make lua scripting optional

Added by Moritz Roehrich almost 2 years ago. Updated 20 days ago.

Status:
Rejected
Priority:
Normal
Target version:
-
% Done:

30%

Source:
Tags:
lua
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

- Make Lua scripting, the runtime- and the compiletime-dependency optional
- Introduce a compile-time flag for enabling/disabling it via the build system
- Make sure disabling Lua scripting automatically also disables Lua packages, but not vice versa
- Keep backwards-compatible defaults

The RGW supports executing Lua scripts on either the pre-request hook or the post-request hook.
Optionally, it can also support loading Lua packages in addition to what the Lua standart library supports
for use in these Lua scripts, but this feature must be enabled at compile time.
There are however also benefits to making the entire Lua scripting feature optional, enabled or disabled by compile time flags.
For one, the minimum requirements to build the RGW in any capacity shrink a bit. Also the runtime requirement of the Lua runtime
can be removed, if desired. In high-security environments, the Lua feature may be a problem and last but not least, reducing the
minimal requirements for building and developing ceph may help the community.

Actions

Also available in: Atom PDF