You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/book/admin/access_control.rst
+60-60Lines changed: 60 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -111,13 +111,13 @@ Privileges
111
111
112
112
The privileges granted to a user determine which operations the user can perform, for example:
113
113
114
-
* The ``read`` and ``write`` privileges granted to the ``space`` :ref:`object <access_control_concepts_objects>` allow a user to read or modify data in the specified space.
115
-
* The ``create`` privilege granted to the ``space`` object allows a user to create new spaces.
116
-
* The ``execute`` privilege granted to the ``function`` object allows a user to execute the specified function.
117
-
* The ``session`` privilege granted to a user allows connecting to an instance over IPROTO.
114
+
* The ``read`` and ``write`` permissions granted to the ``space`` :ref:`object <access_control_concepts_objects>` allow a user to read or modify data in the specified space.
115
+
* The ``create`` permission granted to the ``space`` object allows a user to create new spaces.
116
+
* The ``execute`` permission granted to the ``function`` object allows a user to execute the specified function.
117
+
* The ``session`` permission granted to a user allows connecting to an instance over IPROTO.
118
118
119
119
Note that some privileges might require read and write access to certain system spaces.
120
-
For example, the ``create`` privilege granted to the ``space`` object requires ``read`` and ``write`` privileges to the :ref:`_space <box_space-space>` system space.
120
+
For example, the ``create`` permission granted to the ``space`` object requires ``read`` and ``write`` permissions to the :ref:`_space <box_space-space>` system space.
121
121
Similarly, granting the ability to create functions requires ``read`` and ``write`` access to the :ref:`_func <box_space-func>` space.
122
122
123
123
.. NOTE::
@@ -286,7 +286,7 @@ Granting privileges to a user
286
286
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
287
287
288
288
To grant the specified privileges to a user, use the :ref:`box.schema.user.grant() <box_schema-user_grant>` function.
289
-
In the example below, ``testuser`` gets read privileges to the ``writers`` space and read/write privileges to the ``books`` space:
289
+
In the example below, ``testuser`` gets read permissions to the ``writers`` space and read/write permissions to the ``books`` space:
@@ -534,7 +534,7 @@ To get information about privileges granted to a role, call :ref:`box.schema.rol
534
534
- books
535
535
--]]
536
536
537
-
If a role has the ``execute`` privilege to other roles, this means that these roles are :ref:`granted to this parent role <access_control_roles_granting_role>`:
537
+
If a role has the ``execute`` permission to other roles, this means that these roles are :ref:`granted to this parent role <access_control_roles_granting_role>`:
538
538
539
539
.. code-block:: lua
540
540
@@ -594,21 +594,21 @@ For example, the ``box.schema.user.grant()`` signature looks as follows:
* ``username``: the name of the user that gets the specified privileges.
600
-
* ``privileges``: a string value that represents :ref:`privileges<access_control_list_privileges>` granted to the user. If there are several privileges, they should be separated by commas without a space.
601
-
* ``object-type``: a type of :ref:`object <access_control_list_objects>` to which privileges are granted.
602
-
* ``object-name``: the name of the object to which privileges are granted.
603
-
An empty string (``""``) or ``nil`` provided instead of ``object-name`` grants the specified privileges to all objects of the specified type.
600
+
* ``permissions``: a string value that represents :ref:`permissions<access_control_list_privileges>` granted to the user. If there are several permissions, they should be separated by commas without a space.
601
+
* ``object-type``: a type of :ref:`object <access_control_list_objects>` to which permissions are granted.
602
+
* ``object-name``: the name of the object to which permissions are granted.
603
+
An empty string (``""``) or ``nil`` provided instead of ``object-name`` grants the specified permissions to all objects of the specified type.
604
604
605
605
.. NOTE::
606
606
607
-
``object-name`` is ignored for the following combinations of privileges and object types:
607
+
``object-name`` is ignored for the following combinations of permissions and object types:
608
608
609
-
* Any privilege granted to ``universe``.
610
-
* The ``create`` and ``drop`` privileges for the following object types: ``user``, ``role``, ``space``, ``function``, ``sequence``.
611
-
* The ``execute`` privilege for the following object types: ``lua_eval``, ``lua_call``, ``sql``.
609
+
* Any permission granted to ``universe``.
610
+
* The ``create`` and ``drop`` permissions for the following object types: ``user``, ``role``, ``space``, ``function``, ``sequence``.
611
+
* The ``execute`` permission for the following object types: ``lua_eval``, ``lua_call``, ``sql``.
612
612
613
613
614
614
.. _access_control_grant_creating_any_obj:
@@ -678,8 +678,8 @@ In the example below, ``testuser`` gets privileges allowing them to create :ref:
@@ -1015,58 +1015,58 @@ Object types and privileges
1015
1015
* ``session``: Allows a user to connect to an instance over IPROTO.
1016
1016
* ``usage``: Allows a user to use their privileges on database objects (for example, read, write, and alter space).
1017
1017
* ``create``: Allows creating users, roles, functions, spaces, and sequences.
1018
-
This privilege requires read and write access to certain system spaces.
1018
+
This permission requires read and write access to certain system spaces.
1019
1019
* ``drop``: Allows creating users, roles, functions, spaces, and sequences.
1020
-
This privilege requires read and write access to certain system spaces.
1020
+
This permission requires read and write access to certain system spaces.
1021
1021
* ``alter``: Allows altering user settings or space objects.
1022
1022
* - ``user``
1023
1023
- * ``alter``: Allows modifying a user description, for example, change the password.
1024
1024
* ``create``: Allows creating new users.
1025
-
This privilege requires read and write access to the ``_user`` system space.
1025
+
This permission requires read and write access to the ``_user`` system space.
1026
1026
* ``drop``: Allows dropping users.
1027
-
This privilege requires read and write access to the ``_user`` system space.
1027
+
This permission requires read and write access to the ``_user`` system space.
1028
1028
* - ``role``
1029
1029
- * ``execute``: Indicates that a role is assigned to the user or another role.
1030
1030
* ``create``: Allows creating new roles.
1031
-
This privilege requires read and write access to the ``_user`` system space.
1031
+
This permission requires read and write access to the ``_user`` system space.
1032
1032
* ``drop``: Allows dropping roles.
1033
-
This privilege requires read and write access to the ``_user`` system space.
1033
+
This permission requires read and write access to the ``_user`` system space.
1034
1034
* - ``space``
1035
1035
- * ``read``: Allows selecting data from a space.
1036
1036
* ``write``: Allows modifying data in a space.
1037
1037
* ``create``: Allows creating new spaces.
1038
-
This privilege requires read and write access to the ``_space`` system space.
1038
+
This permission requires read and write access to the ``_space`` system space.
1039
1039
* ``drop``: Allows dropping spaces.
1040
-
This privilege requires read and write access to the ``_space`` system space.
1040
+
This permission requires read and write access to the ``_space`` system space.
1041
1041
* ``alter``: Allows modifying spaces.
1042
-
This privilege requires read and write access to the ``_space`` system space.
1042
+
This permission requires read and write access to the ``_space`` system space.
1043
1043
1044
-
If a space is created by a user, they can read and write it without granting explicit privileges.
1044
+
If a space is created by a user, they can read and write it without granting explicit permission.
1045
1045
* - ``function``
1046
1046
- * ``execute``: Allows calling a function.
1047
1047
* ``create``: Allows creating a function.
1048
-
This privilege requires read and write access to the ``_func`` system space.
1048
+
This permission requires read and write access to the ``_func`` system space.
1049
1049
1050
-
If a function is created by a user, they can execute it without granting explicit privileges.
1050
+
If a function is created by a user, they can execute it without granting explicit permission.
1051
1051
* ``drop``: Allows dropping a function.
1052
-
This privilege requires read and write access to the ``_func`` system space.
1052
+
This permission requires read and write access to the ``_func`` system space.
1053
1053
* - ``sequence``
1054
1054
- * ``read``: Allows using sequences in ``space_obj:create_index()``.
1055
1055
* ``write``: Allows all operations for a sequence object.
1056
1056
1057
-
``seq_obj:drop()`` requires a write privilege to the ``_priv`` system space.
1057
+
``seq_obj:drop()`` requires a write permission to the ``_priv`` system space.
1058
1058
* ``create``: Allows creating sequences.
1059
-
This privilege requires read and write access to the ``_sequence`` system space.
1059
+
This permission requires read and write access to the ``_sequence`` system space.
1060
1060
1061
-
If a sequence is created by a user, they can read/write it without explicit privilege.
1061
+
If a sequence is created by a user, they can read/write it without explicit permission.
1062
1062
* ``drop``: Allows dropping sequences.
1063
-
This privilege requires read and write access to the ``_sequence`` system space.
1063
+
This permission requires read and write access to the ``_sequence`` system space.
1064
1064
* ``alter``: Has no effect.
1065
-
``seq_obj:alter()`` and other methods require the ``write`` privilege.
1065
+
``seq_obj:alter()`` and other methods require the ``write`` permission.
1066
1066
* - ``lua_eval``
1067
1067
- * ``execute``: Allows executing arbitrary Lua code using the IPROTO_EVAL request.
1068
1068
* - ``lua_call``
1069
1069
- * ``execute``: Allows executing any user-defined function using the IPROTO_CALL request.
1070
-
This privilege doesn't allow a user to call built-in Lua functions (for example, ``loadstring()`` or ``box.session.su()``) and functions defined in the ``_func`` system space.
1070
+
This permission doesn't allow a user to call built-in Lua functions (for example, ``loadstring()`` or ``box.session.su()``) and functions defined in the ``_func`` system space.
1071
1071
* - ``sql``
1072
1072
- * ``execute``: Allows executing arbitrary SQL expression using the IPROTO_PREPARE and IPROTO_EXECUTE requests.
0 commit comments