Skip to content
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

Grant runtime access to Lua functions via configuration #4552

Open
Tracked by #4505
TarantoolBot opened this issue Sep 25, 2024 · 0 comments
Open
Tracked by #4505

Grant runtime access to Lua functions via configuration #4552

TarantoolBot opened this issue Sep 25, 2024 · 0 comments
Labels
3.2 access Related with the granting of rights, the access config

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Sep 25, 2024

Product: Tarantool
Since: 3.2
Root document:

SME: @ mandesero @ Totktonada

Details

To be done together with #4462.

It is now possible to grant execution privileges for Lua functions
through the declarative configuration, even when the database is in
read-only mode or has an outdated schema version.

You can specify function permissions using the lua_call option in
the configuration, for example:

credentials:
  users:
    alice:
      privileges:
        - permissions: [execute]
          lua_call: [my_func]

This grants the alice user permission to execute the my_func Lua
function, regardless of the database's mode or status. The special option
lua_call: [all] is also supported, granting access to all global Lua
functions except built-in ones, bypassing database restrictions.

Privileges will still be written to the database when possible to
maintain compatibility and consistency with other privilege types.
Requested by @mandesero in tarantool/tarantool@38c6b0d.

@p7nov p7nov added 3.2 config access Related with the granting of rights, the access labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2 access Related with the granting of rights, the access config
Projects
None yet
Development

No branches or pull requests

2 participants