box: disallow granting execute privilege on space
Closes #9277 @TarantoolBot document Title: Document `box_space_execute_priv` compatibility option Historically, it was possible to grant the `execte` privilege on a space although this action had no effect. Since Tarantool 3.0 it isn't allowed anymore. The new `compat` module option `box_space_execute_priv` was added to revert to the old behavior. Please create a documentation page for the new compatibility option at https://tarantool.io/compat/box_space_execute_priv Example: ``` tarantool> box.cfg{log_level = 'error'} --- ... tarantool> box.schema.user.create('alice') --- ... tarantool> box.schema.user.grant('alice', 'execute', 'space') --- - error: Unsupported space privilege 'execute' ... tarantool> require('compat').box_space_execute_priv = 'old' --- ... tarantool> box.schema.user.grant('alice', 'execute', 'space') --- ... ```
Showing
- changelogs/unreleased/gh-9277-space-execute-priv.md 7 additions, 0 deletionschangelogs/unreleased/gh-9277-space-execute-priv.md
- src/box/lua/load_cfg.lua 1 addition, 0 deletionssrc/box/lua/load_cfg.lua
- src/box/lua/schema.lua 29 additions, 4 deletionssrc/box/lua/schema.lua
- test/box-luatest/gh_9277_space_execute_priv_test.lua 37 additions, 0 deletionstest/box-luatest/gh_9277_space_execute_priv_test.lua
- test/box-py/iproto.result 3 additions, 3 deletionstest/box-py/iproto.result
- test/box-py/iproto.test.py 3 additions, 3 deletionstest/box-py/iproto.test.py
- test/box/access.result 4 additions, 4 deletionstest/box/access.result
- test/box/access.test.lua 3 additions, 3 deletionstest/box/access.test.lua
- test/box/access_misc.result 1 addition, 1 deletiontest/box/access_misc.result
- test/box/access_misc.test.lua 1 addition, 1 deletiontest/box/access_misc.test.lua
- test/box/access_sysview.result 2 additions, 2 deletionstest/box/access_sysview.result
- test/box/access_sysview.test.lua 2 additions, 2 deletionstest/box/access_sysview.test.lua
- test/box/net.box_field_names_gh-2978.result 2 additions, 2 deletionstest/box/net.box_field_names_gh-2978.result
- test/box/net.box_field_names_gh-2978.test.lua 2 additions, 2 deletionstest/box/net.box_field_names_gh-2978.test.lua
- test/box/net.box_get_connection_object.result 2 additions, 2 deletionstest/box/net.box_get_connection_object.result
- test/box/net.box_get_connection_object.test.lua 2 additions, 2 deletionstest/box/net.box_get_connection_object.test.lua
- test/sql/triggers.result 1 addition, 1 deletiontest/sql/triggers.result
- test/sql/triggers.test.lua 1 addition, 1 deletiontest/sql/triggers.test.lua
Loading
Please register or sign in to comment