-
Notifications
You must be signed in to change notification settings - Fork 387
box: add runtime lua_call privileges #10358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
box: add runtime lua_call privileges #10358
Conversation
3ce1fa8
to
1c362cf
Compare
3b69301
to
a256b41
Compare
c044a6e
to
835bf72
Compare
835bf72
to
a08877e
Compare
edd3c19
to
7b0a233
Compare
no commit message yet [WIP]: This task depends on - tarantool#10304 (PR tarantool#10324) - tarantool#10306 (PR tarantool#10358) and uses commits from these PRs. Closes tarantool#10310 NO_DOC=yet NO_CHANGELOG=yet
no commit message yet [WIP]: This task depends on - tarantool#10304 (PR tarantool#10324) - tarantool#10306 (PR tarantool#10358) and uses commits from these PRs. Closes tarantool#10310 NO_DOC=yet NO_CHANGELOG=yet
7b0a233
to
fa28e6e
Compare
c05184f
to
f2e983a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patch and the updates!
I'm comfortable with the implementation. LGTM.
I've some ideas how to make this code more concise, but I think I shouldn't make this activity a part of the review process.
@locker Please, look over this patch if you have a spare time. I would appreciate your glance and suggestions. |
247410a
to
82516d2
Compare
82516d2
to
269ae36
Compare
This patch introduces a hash map that maps pairs of strings with their lengths to a pointer. Needed for tarantool#10306 NO_TEST=internal NO_DOC=internal NO_CHANGELOG=internal
This patch adds internal API methods for granting and revoking Lua function access. New internal API methods: - `box.internal.lua_call_runtime_priv_grant(<user-name>, <function-name>)` grants access to the specified function for the specified user. - `box.interal.lua_call_runtime_priv_grant(<user-name>, '')` grants universal access (excluding built-in functions) for the specified user. - `box.internal.lua_call_runtime_priv_reset()` revokes all previously granted function execution permissions for all users. Closes tarantool#10306 NO_DOC=internal NO_CHANGELOG=internal
269ae36
to
5e0e970
Compare
This patch adds internal API methods for granting and revoking Lua function access.
New internal API methods:
box.internal.lua_call_runtime_priv_grant(<user-name>, <function-name>)
grants access to the specified function for the specified user.box.internal.lua_call_runtime_priv_grant(<user-name>, '')
grants universal access (excluding built-in functions) for the specified user.box.internal.lua_call_runtime_priv_reset()
revokes all previously granted function execution permissions for all users.Closes #10306
Part of #10310