• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 11032491917
88%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2024 12:08PM UTC
Jobs 1
Files 514
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Sep 2024 11:56AM UTC coverage: 87.307% (+0.02%) from 87.292%
11032491917

push

github

Totktonada
config: grant runtime access to lua_call from config

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

Users can specify  `lua_call: [<func_name>]`, enabling the execution of
specified Lua functions (e.g., `failover:execute()` when all instance
are in read-only mode). The `lua_call: [all]` option is also supported,
allowing access to all global Lua functions except built-in ones,
regardless of database mode or status.

Privileges are still written to the database when possible for consistency
and compatibility.

Closes tarantool#10310

@TarantoolBot document
Title: Grant runtime access to Lua functions via configuration

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:

```yaml
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.

68972 of 122509 branches covered (56.3%)

101738 of 116529 relevant lines covered (87.31%)

2513567.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11032491917.1 25 Sep 2024 12:08PM UTC 0
87.31
GitHub Action Run
Source Files on build 11032491917
Detailed source file information is not available for this build.
  • Back to Repo
  • 38c6b0d3 on github
  • Prev Build on master (#11032458350)
  • Next Build on master (#11049846723)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc