ClickHouse/tests/testflows/rbac/requirements/requirements.py

6514 lines
216 KiB
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# These requirements were auto generated
# from software requirements specification (SRS)
# document by TestFlows v1.6.200917.1194158.
# Do not edit by hand but re-generate instead
# using 'tfs requirements generate' command.
from testflows.core import Requirement
RQ_SRS_006_RBAC = Requirement(
name='RQ.SRS-006.RBAC',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support role based access control.\n'
),
link=None
)
RQ_SRS_006_RBAC_Login = Requirement(
name='RQ.SRS-006.RBAC.Login',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only allow access to the server for a given\n'
'user only when correct username and password are used during\n'
'the connection to the server.\n'
),
link=None
)
RQ_SRS_006_RBAC_Login_DefaultUser = Requirement(
name='RQ.SRS-006.RBAC.Login.DefaultUser',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL use the **default user** when no username and password\n'
'are specified during the connection to the server.\n'
),
link=None
)
RQ_SRS_006_RBAC_User = Requirement(
name='RQ.SRS-006.RBAC.User',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creation and manipulation of\n'
'one or more **user** accounts to which roles, privileges,\n'
'settings profile, quotas and row policies can be assigned.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Roles = Requirement(
name='RQ.SRS-006.RBAC.User.Roles',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more **roles**\n'
'to a **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Privileges = Requirement(
name='RQ.SRS-006.RBAC.User.Privileges',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more privileges to a **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Variables = Requirement(
name='RQ.SRS-006.RBAC.User.Variables',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more variables to a **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Variables_Constraints = Requirement(
name='RQ.SRS-006.RBAC.User.Variables.Constraints',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning min, max and read-only constraints\n'
'for the variables that can be set and read by the **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_SettingsProfile = Requirement(
name='RQ.SRS-006.RBAC.User.SettingsProfile',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more **settings profiles**\n'
'to a **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Quotas = Requirement(
name='RQ.SRS-006.RBAC.User.Quotas',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more **quotas** to a **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_RowPolicies = Requirement(
name='RQ.SRS-006.RBAC.User.RowPolicies',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more **row policies** to a **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_AccountLock = Requirement(
name='RQ.SRS-006.RBAC.User.AccountLock',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support locking and unlocking of **user** accounts.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_AccountLock_DenyAccess = Requirement(
name='RQ.SRS-006.RBAC.User.AccountLock.DenyAccess',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL deny access to the user whose account is locked.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_DefaultRole = Requirement(
name='RQ.SRS-006.RBAC.User.DefaultRole',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning a default role to a **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_RoleSelection = Requirement(
name='RQ.SRS-006.RBAC.User.RoleSelection',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support selection of one or more **roles** from the available roles\n'
'that are assigned to a **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_ShowCreate = Requirement(
name='RQ.SRS-006.RBAC.User.ShowCreate',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the command of how **user** account was created.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_ShowPrivileges = Requirement(
name='RQ.SRS-006.RBAC.User.ShowPrivileges',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support listing the privileges of the **user**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role = Requirement(
name='RQ.SRS-006.RBAC.Role',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClikHouse] SHALL support creation and manipulation of **roles**\n'
'to which privileges, settings profile, quotas and row policies can be\n'
'assigned.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Privileges = Requirement(
name='RQ.SRS-006.RBAC.Role.Privileges',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more privileges to a **role**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Variables = Requirement(
name='RQ.SRS-006.RBAC.Role.Variables',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more variables to a **role**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_SettingsProfile = Requirement(
name='RQ.SRS-006.RBAC.Role.SettingsProfile',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more **settings profiles**\n'
'to a **role**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Quotas = Requirement(
name='RQ.SRS-006.RBAC.Role.Quotas',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more **quotas** to a **role**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_RowPolicies = Requirement(
name='RQ.SRS-006.RBAC.Role.RowPolicies',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning one or more **row policies** to a **role**.\n'
),
link=None
)
RQ_SRS_006_RBAC_PartialRevokes = Requirement(
name='RQ.SRS-006.RBAC.PartialRevokes',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support partial revoking of privileges granted\n'
'to a **user** or a **role**.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creation and manipulation of **settings profiles**\n'
'that can include value definition for one or more variables and can\n'
'can be assigned to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Constraints = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Constraints',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning min, max and read-only constraints\n'
'for the variables specified in the **settings profile**.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_ShowCreate = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.ShowCreate',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the command of how **setting profile** was created.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas = Requirement(
name='RQ.SRS-006.RBAC.Quotas',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creation and manipulation of **quotas**\n'
'that can be used to limit resource usage by a **user** or a **role**\n'
'over a period of time.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_Keyed = Requirement(
name='RQ.SRS-006.RBAC.Quotas.Keyed',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creating **quotas** that are keyed\n'
'so that a quota is tracked separately for each key value.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_Queries = Requirement(
name='RQ.SRS-006.RBAC.Quotas.Queries',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting **queries** quota to limit the total number of requests.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_Errors = Requirement(
name='RQ.SRS-006.RBAC.Quotas.Errors',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting **errors** quota to limit the number of queries that threw an exception.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_ResultRows = Requirement(
name='RQ.SRS-006.RBAC.Quotas.ResultRows',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting **result rows** quota to limit the\n'
'the total number of rows given as the result.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_ReadRows = Requirement(
name='RQ.SRS-006.RBAC.Quotas.ReadRows',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting **read rows** quota to limit the total\n'
'number of source rows read from tables for running the query on all remote servers.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_ResultBytes = Requirement(
name='RQ.SRS-006.RBAC.Quotas.ResultBytes',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting **result bytes** quota to limit the total number\n'
'of bytes that can be returned as the result.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_ReadBytes = Requirement(
name='RQ.SRS-006.RBAC.Quotas.ReadBytes',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting **read bytes** quota to limit the total number\n'
'of source bytes read from tables for running the query on all remote servers.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_ExecutionTime = Requirement(
name='RQ.SRS-006.RBAC.Quotas.ExecutionTime',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting **execution time** quota to limit the maximum\n'
'query execution time.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quotas_ShowCreate = Requirement(
name='RQ.SRS-006.RBAC.Quotas.ShowCreate',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the command of how **quota** was created.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creation and manipulation of table **row policies**\n'
'that can be used to limit access to the table contents for a **user** or a **role**\n'
'using a specified **condition**.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Condition = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Condition',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support row policy **conditions** that can be any SQL\n'
'expression that returns a boolean.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_ShowCreate = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.ShowCreate',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the command of how **row policy** was created.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Use_DefaultRole = Requirement(
name='RQ.SRS-006.RBAC.User.Use.DefaultRole',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL by default use default role or roles assigned\n'
'to the user if specified.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Use_AllRolesWhenNoDefaultRole = Requirement(
name='RQ.SRS-006.RBAC.User.Use.AllRolesWhenNoDefaultRole',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL by default use all the roles assigned to the user\n'
'if no default role or roles are specified for the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create = Requirement(
name='RQ.SRS-006.RBAC.User.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creating **user** accounts using `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_IfNotExists = Requirement(
name='RQ.SRS-006.RBAC.User.Create.IfNotExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `IF NOT EXISTS` clause in the `CREATE USER` statement\n'
'to skip raising an exception if a user with the same **name** already exists.\n'
'If the `IF NOT EXISTS` clause is not specified then an exception SHALL be\n'
'raised if a user with the same **name** already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Replace = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Replace',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `OR REPLACE` clause in the `CREATE USER` statement\n'
'to replace existing user account if already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_NoPassword = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.NoPassword',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying no password when creating\n'
'user account using `IDENTIFIED WITH NO_PASSWORD` clause .\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_NoPassword_Login = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.NoPassword.Login',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL use no password for the user when connecting to the server\n'
'when an account was created with `IDENTIFIED WITH NO_PASSWORD` clause.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_PlainText = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.PlainText',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying plaintext password when creating\n'
'user account using `IDENTIFIED WITH PLAINTEXT_PASSWORD BY` clause.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_PlainText_Login = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.PlainText.Login',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL use the plaintext password passed by the user when connecting to the server\n'
'when an account was created with `IDENTIFIED WITH PLAINTEXT_PASSWORD` clause\n'
'and compare the password with the one used in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_Sha256Password = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.Sha256Password',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying the result of applying SHA256\n'
'to some password when creating user account using `IDENTIFIED WITH SHA256_PASSWORD BY` or `IDENTIFIED BY`\n'
'clause.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_Sha256Password_Login = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.Sha256Password.Login',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL calculate `SHA256` of the password passed by the user when connecting to the server\n'
"when an account was created with `IDENTIFIED WITH SHA256_PASSWORD` or with 'IDENTIFIED BY' clause\n"
'and compare the calculated hash to the one used in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_Sha256Hash = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.Sha256Hash',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying the result of applying SHA256\n'
'to some already calculated hash when creating user account using `IDENTIFIED WITH SHA256_HASH`\n'
'clause.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_Sha256Hash_Login = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.Sha256Hash.Login',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL calculate `SHA256` of the already calculated hash passed by\n'
'the user when connecting to the server\n'
'when an account was created with `IDENTIFIED WITH SHA256_HASH` clause\n'
'and compare the calculated hash to the one used in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_DoubleSha1Password = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.DoubleSha1Password',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying the result of applying SHA1 two times\n'
'to a password when creating user account using `IDENTIFIED WITH DOUBLE_SHA1_PASSWORD`\n'
'clause.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_DoubleSha1Password_Login = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.DoubleSha1Password.Login',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL calculate `SHA1` two times over the password passed by\n'
'the user when connecting to the server\n'
'when an account was created with `IDENTIFIED WITH DOUBLE_SHA1_PASSWORD` clause\n'
'and compare the calculated value to the one used in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_DoubleSha1Hash = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.DoubleSha1Hash',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying the result of applying SHA1 two times\n'
'to a hash when creating user account using `IDENTIFIED WITH DOUBLE_SHA1_HASH`\n'
'clause.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Password_DoubleSha1Hash_Login = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Password.DoubleSha1Hash.Login',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL calculate `SHA1` two times over the hash passed by\n'
'the user when connecting to the server\n'
'when an account was created with `IDENTIFIED WITH DOUBLE_SHA1_HASH` clause\n'
'and compare the calculated value to the one used in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Host_Name = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Host.Name',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more hostnames from\n'
'which user can access the server using the `HOST NAME` clause\n'
'in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Host_Regexp = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Host.Regexp',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more regular expressions\n'
'to match hostnames from which user can access the server\n'
'using the `HOST REGEXP` clause in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Host_IP = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Host.IP',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more IP address or subnet from\n'
'which user can access the server using the `HOST IP` clause in the\n'
'`CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Host_Any = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Host.Any',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying `HOST ANY` clause in the `CREATE USER` statement\n'
'to indicate that user can access the server from any host.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Host_None = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Host.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support fobidding access from any host using `HOST NONE` clause in the\n'
'`CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Host_Local = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Host.Local',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting user access to local only using `HOST LOCAL` clause in the\n'
'`CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Host_Like = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Host.Like',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying host using `LIKE` command syntax using the\n'
'`HOST LIKE` clause in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Host_Default = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Host.Default',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support user access to server from any host\n'
'if no `HOST` clause is specified in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_DefaultRole = Requirement(
name='RQ.SRS-006.RBAC.User.Create.DefaultRole',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more default roles\n'
'using `DEFAULT ROLE` clause in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_DefaultRole_None = Requirement(
name='RQ.SRS-006.RBAC.User.Create.DefaultRole.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying no default roles\n'
'using `DEFAULT ROLE NONE` clause in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_DefaultRole_All = Requirement(
name='RQ.SRS-006.RBAC.User.Create.DefaultRole.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying all roles to be used as default\n'
'using `DEFAULT ROLE ALL` clause in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Settings = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Settings',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying settings and profile\n'
'using `SETTINGS` clause in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.User.Create.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying cluster on which the user\n'
'will be created using `ON CLUSTER` clause in the `CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Create_Syntax = Requirement(
name='RQ.SRS-006.RBAC.User.Create.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for `CREATE USER` statement.\n'
'\n'
'```sql\n'
'CREATE USER [IF NOT EXISTS | OR REPLACE] name [ON CLUSTER cluster_name]\n'
" [IDENTIFIED [WITH {NO_PASSWORD|PLAINTEXT_PASSWORD|SHA256_PASSWORD|SHA256_HASH|DOUBLE_SHA1_PASSWORD|DOUBLE_SHA1_HASH}] BY {'password'|'hash'}]\n"
" [HOST {LOCAL | NAME 'name' | NAME REGEXP 'name_regexp' | IP 'address' | LIKE 'pattern'} [,...] | ANY | NONE]\n"
' [DEFAULT ROLE role [,...]]\n'
" [SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [READONLY|WRITABLE] | PROFILE 'profile_name'] [,...]\n"
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter = Requirement(
name='RQ.SRS-006.RBAC.User.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering **user** accounts using `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_OrderOfEvaluation = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.OrderOfEvaluation',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support evaluating `ALTER USER` statement from left to right\n'
'where things defined on the right override anything that was previously defined on\n'
'the left.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_IfExists = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `IF EXISTS` clause in the `ALTER USER` statement\n'
'to skip raising an exception (producing a warning instead) if a user with the specified **name** does not exist. If the `IF EXISTS` clause is not specified then an exception SHALL be raised if a user with the **name** does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Cluster = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying the cluster the user is on\n'
'when altering user account using `ON CLUSTER` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Rename = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Rename',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying a new name for the user when\n'
'altering user account using `RENAME` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Password_PlainText = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Password.PlainText',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying plaintext password when altering\n'
'user account using `IDENTIFIED WITH PLAINTEXT_PASSWORD BY` or\n'
'using shorthand `IDENTIFIED BY` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Password_Sha256Password = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Password.Sha256Password',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying the result of applying SHA256\n'
'to some password as identification when altering user account using\n'
'`IDENTIFIED WITH SHA256_PASSWORD` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Password_DoubleSha1Password = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Password.DoubleSha1Password',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying the result of applying Double SHA1\n'
'to some password as identification when altering user account using\n'
'`IDENTIFIED WITH DOUBLE_SHA1_PASSWORD` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Host_AddDrop = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Host.AddDrop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering user by adding and dropping access to hosts with the `ADD HOST` or the `DROP HOST`in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Host_Local = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Host.Local',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting user access to local only using `HOST LOCAL` clause in the\n'
'`ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Host_Name = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Host.Name',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more hostnames from\n'
'which user can access the server using the `HOST NAME` clause\n'
'in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Host_Regexp = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Host.Regexp',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more regular expressions\n'
'to match hostnames from which user can access the server\n'
'using the `HOST REGEXP` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Host_IP = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Host.IP',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more IP address or subnet from\n'
'which user can access the server using the `HOST IP` clause in the\n'
'`ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Host_Like = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Host.Like',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying sone or more similar hosts using `LIKE` command syntax using the `HOST LIKE` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Host_Any = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Host.Any',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying `HOST ANY` clause in the `ALTER USER` statement\n'
'to indicate that user can access the server from any host.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Host_None = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Host.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support fobidding access from any host using `HOST NONE` clause in the\n'
'`ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_DefaultRole = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.DefaultRole',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more default roles\n'
'using `DEFAULT ROLE` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_DefaultRole_All = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.DefaultRole.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying all roles to be used as default\n'
'using `DEFAULT ROLE ALL` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_DefaultRole_AllExcept = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.DefaultRole.AllExcept',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more roles which will not be used as default\n'
'using `DEFAULT ROLE ALL EXCEPT` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Settings = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Settings',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying one or more variables\n'
'using `SETTINGS` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Settings_Min = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Settings.Min',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying a minimum value for the variable specifed using `SETTINGS` with `MIN` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Settings_Max = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Settings.Max',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying a maximum value for the variable specifed using `SETTINGS` with `MAX` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Settings_Profile = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Settings.Profile',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying the name of a profile for the variable specifed using `SETTINGS` with `PROFILE` clause in the `ALTER USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Alter_Syntax = Requirement(
name='RQ.SRS-006.RBAC.User.Alter.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `ALTER USER` statement.\n'
'\n'
'```sql\n'
'ALTER USER [IF EXISTS] name [ON CLUSTER cluster_name]\n'
' [RENAME TO new_name]\n'
" [IDENTIFIED [WITH {PLAINTEXT_PASSWORD|SHA256_PASSWORD|DOUBLE_SHA1_PASSWORD}] BY {'password'|'hash'}]\n"
" [[ADD|DROP] HOST {LOCAL | NAME 'name' | REGEXP 'name_regexp' | IP 'address' | LIKE 'pattern'} [,...] | ANY | NONE]\n"
' [DEFAULT ROLE role [,...] | ALL | ALL EXCEPT role [,...] ]\n'
" [SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [READONLY|WRITABLE] | PROFILE 'profile_name'] [,...]\n"
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_SetDefaultRole = Requirement(
name='RQ.SRS-006.RBAC.SetDefaultRole',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting or changing granted roles to default for one or more\n'
'users using `SET DEFAULT ROLE` statement which\n'
'SHALL permanently change the default roles for the user or users if successful.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetDefaultRole_CurrentUser = Requirement(
name='RQ.SRS-006.RBAC.SetDefaultRole.CurrentUser',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting or changing granted roles to default for\n'
'the current user using `CURRENT_USER` clause in the `SET DEFAULT ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetDefaultRole_All = Requirement(
name='RQ.SRS-006.RBAC.SetDefaultRole.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting or changing all granted roles to default\n'
'for one or more users using `ALL` clause in the `SET DEFAULT ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetDefaultRole_AllExcept = Requirement(
name='RQ.SRS-006.RBAC.SetDefaultRole.AllExcept',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting or changing all granted roles except those specified\n'
'to default for one or more users using `ALL EXCEPT` clause in the `SET DEFAULT ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetDefaultRole_None = Requirement(
name='RQ.SRS-006.RBAC.SetDefaultRole.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing all granted roles from default\n'
'for one or more users using `NONE` clause in the `SET DEFAULT ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetDefaultRole_Syntax = Requirement(
name='RQ.SRS-006.RBAC.SetDefaultRole.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `SET DEFAULT ROLE` statement.\n'
'\n'
'```sql\n'
'SET DEFAULT ROLE\n'
' {NONE | role [,...] | ALL | ALL EXCEPT role [,...]}\n'
' TO {user|CURRENT_USER} [,...]\n'
'\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_SetRole = Requirement(
name='RQ.SRS-006.RBAC.SetRole',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support activating role or roles for the current user\n'
'using `SET ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetRole_Default = Requirement(
name='RQ.SRS-006.RBAC.SetRole.Default',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support activating default roles for the current user\n'
'using `DEFAULT` clause in the `SET ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetRole_None = Requirement(
name='RQ.SRS-006.RBAC.SetRole.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support activating no roles for the current user\n'
'using `NONE` clause in the `SET ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetRole_All = Requirement(
name='RQ.SRS-006.RBAC.SetRole.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support activating all roles for the current user\n'
'using `ALL` clause in the `SET ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetRole_AllExcept = Requirement(
name='RQ.SRS-006.RBAC.SetRole.AllExcept',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support activating all roles except those specified\n'
'for the current user using `ALL EXCEPT` clause in the `SET ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SetRole_Syntax = Requirement(
name='RQ.SRS-006.RBAC.SetRole.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'```sql\n'
'SET ROLE {DEFAULT | NONE | role [,...] | ALL | ALL EXCEPT role [,...]}\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_User_ShowCreateUser = Requirement(
name='RQ.SRS-006.RBAC.User.ShowCreateUser',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the `CREATE USER` statement used to create the current user object\n'
'using the `SHOW CREATE USER` statement with `CURRENT_USER` or no argument.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_ShowCreateUser_For = Requirement(
name='RQ.SRS-006.RBAC.User.ShowCreateUser.For',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the `CREATE USER` statement used to create the specified user object\n'
'using the `FOR` clause in the `SHOW CREATE USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_ShowCreateUser_Syntax = Requirement(
name='RQ.SRS-006.RBAC.User.ShowCreateUser.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the following syntax for `SHOW CREATE USER` statement.\n'
'\n'
'```sql\n'
'SHOW CREATE USER [name | CURRENT_USER]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Drop = Requirement(
name='RQ.SRS-006.RBAC.User.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing a user account using `DROP USER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Drop_IfExists = Requirement(
name='RQ.SRS-006.RBAC.User.Drop.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using `IF EXISTS` clause in the `DROP USER` statement\n'
'to skip raising an exception if the user account does not exist.\n'
'If the `IF EXISTS` clause is not specified then an exception SHALL be\n'
'raised if a user does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Drop_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.User.Drop.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using `ON CLUSTER` clause in the `DROP USER` statement\n'
'to specify the name of the cluster the user should be dropped from.\n'
),
link=None
)
RQ_SRS_006_RBAC_User_Drop_Syntax = Requirement(
name='RQ.SRS-006.RBAC.User.Drop.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for `DROP USER` statement\n'
'\n'
'```sql\n'
'DROP USER [IF EXISTS] name [,...] [ON CLUSTER cluster_name]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Create = Requirement(
name='RQ.SRS-006.RBAC.Role.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creating a **role** using `CREATE ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Create_IfNotExists = Requirement(
name='RQ.SRS-006.RBAC.Role.Create.IfNotExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `IF NOT EXISTS` clause in the `CREATE ROLE` statement\n'
'to raising an exception if a role with the same **name** already exists.\n'
'If the `IF NOT EXISTS` clause is not specified then an exception SHALL be\n'
'raised if a role with the same **name** already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Create_Replace = Requirement(
name='RQ.SRS-006.RBAC.Role.Create.Replace',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `OR REPLACE` clause in the `CREATE ROLE` statement\n'
'to replace existing role if it already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Create_Settings = Requirement(
name='RQ.SRS-006.RBAC.Role.Create.Settings',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying settings and profile using `SETTINGS`\n'
'clause in the `CREATE ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Create_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Role.Create.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `CREATE ROLE` statement\n'
'\n'
'``` sql\n'
'CREATE ROLE [IF NOT EXISTS | OR REPLACE] name\n'
" [SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [READONLY|WRITABLE] | PROFILE 'profile_name'] [,...]\n"
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Alter = Requirement(
name='RQ.SRS-006.RBAC.Role.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering one **role** using `ALTER ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Alter_IfExists = Requirement(
name='RQ.SRS-006.RBAC.Role.Alter.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering one **role** using `ALTER ROLE IF EXISTS` statement, where no exception\n'
'will be thrown if the role does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Alter_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Role.Alter.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering one **role** using `ALTER ROLE role ON CLUSTER` statement to specify the\n'
'cluster location of the specified role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Alter_Rename = Requirement(
name='RQ.SRS-006.RBAC.Role.Alter.Rename',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering one **role** using `ALTER ROLE role RENAME TO` statement which renames the\n'
'role to a specified new name. If the new name already exists, that an exception SHALL be raised unless the\n'
'`IF EXISTS` clause is specified, by which no exception will be raised and nothing will change.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Alter_Settings = Requirement(
name='RQ.SRS-006.RBAC.Role.Alter.Settings',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the settings of one **role** using `ALTER ROLE role SETTINGS ...` statement.\n'
'Altering variable values, creating max and min values, specifying readonly or writable, and specifying the\n'
'profiles for which this alter change shall be applied to, are all supported, using the following syntax.\n'
'\n'
'```sql\n'
"[SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [READONLY|WRITABLE] | PROFILE 'profile_name'] [,...]\n"
'```\n'
'\n'
'One or more variables and profiles may be specified as shown above.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Alter_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Role.Alter.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'```sql\n'
'ALTER ROLE [IF EXISTS] name [ON CLUSTER cluster_name]\n'
' [RENAME TO new_name]\n'
" [SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [READONLY|WRITABLE] | PROFILE 'profile_name'] [,...]\n"
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Drop = Requirement(
name='RQ.SRS-006.RBAC.Role.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing one or more roles using `DROP ROLE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Drop_IfExists = Requirement(
name='RQ.SRS-006.RBAC.Role.Drop.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using `IF EXISTS` clause in the `DROP ROLE` statement\n'
'to skip raising an exception if the role does not exist.\n'
'If the `IF EXISTS` clause is not specified then an exception SHALL be\n'
'raised if a role does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Drop_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Role.Drop.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using `ON CLUSTER` clause in the `DROP ROLE` statement to specify the cluster from which to drop the specified role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_Drop_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Role.Drop.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `DROP ROLE` statement\n'
'\n'
'``` sql\n'
'DROP ROLE [IF EXISTS] name [,...] [ON CLUSTER cluster_name]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_ShowCreate = Requirement(
name='RQ.SRS-006.RBAC.Role.ShowCreate',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support viewing the settings for a role upon creation with the `SHOW CREATE ROLE`\n'
'statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Role_ShowCreate_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Role.ShowCreate.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `SHOW CREATE ROLE` command.\n'
'\n'
'```sql\n'
'SHOW CREATE ROLE name\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_To = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.To',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting privileges to one or more users or roles using `TO` clause\n'
'in the `GRANT PRIVILEGE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_ToCurrentUser = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.ToCurrentUser',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting privileges to current user using `TO CURRENT_USER` clause\n'
'in the `GRANT PRIVILEGE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Select = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Select',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **select** privilege to one or more users or roles\n'
'for a database or a table using the `GRANT SELECT` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Insert = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Insert',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **insert** privilege to one or more users or roles\n'
'for a database or a table using the `GRANT INSERT` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Alter = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **alter** privilege to one or more users or roles\n'
'for a database or a table using the `GRANT ALTER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Create = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **create** privilege to one or more users or roles\n'
'for a database or a table using the `GRANT CREATE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Drop = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **drop** privilege to one or more users or roles\n'
'for a database or a table using the `GRANT DROP` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Truncate = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Truncate',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **truncate** privilege to one or more users or roles\n'
'for a database or a table using `GRANT TRUNCATE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Optimize = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Optimize',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **optimize** privilege to one or more users or roles\n'
'for a database or a table using `GRANT OPTIMIZE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Show = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Show',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **show** privilege to one or more users or roles\n'
'for a database or a table using `GRANT SHOW` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_KillQuery = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.KillQuery',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **kill query** privilege to one or more users or roles\n'
'for a database or a table using `GRANT KILL QUERY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_AccessManagement = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.AccessManagement',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **access management** privileges to one or more users or roles\n'
'for a database or a table using `GRANT ACCESS MANAGEMENT` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_System = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.System',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **system** privileges to one or more users or roles\n'
'for a database or a table using `GRANT SYSTEM` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Introspection = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Introspection',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **introspection** privileges to one or more users or roles\n'
'for a database or a table using `GRANT INTROSPECTION` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Sources = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Sources',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **sources** privileges to one or more users or roles\n'
'for a database or a table using `GRANT SOURCES` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_DictGet = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.DictGet',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **dictGet** privilege to one or more users or roles\n'
'for a database or a table using `GRANT dictGet` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_None = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting no privileges to one or more users or roles\n'
'for a database or a table using `GRANT NONE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_All = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **all** privileges to one or more users or roles\n'
'for a database or a table using the `GRANT ALL` or `GRANT ALL PRIVILEGES` statements.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the **grant option** privilege to one or more users or roles\n'
'for a database or a table using the `WITH GRANT OPTION` clause in the `GRANT` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_On = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.On',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the `ON` clause in the `GRANT` privilege statement\n'
'which SHALL allow to specify one or more tables to which the privilege SHALL\n'
'be granted using the following patterns\n'
'\n'
'* `*.*` any table in any database\n'
'* `database.*` any table in the specified database\n'
'* `database.table` specific table in the specified database\n'
'* `*` any table in the current database\n'
'* `table` specific table in the current database\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_PrivilegeColumns = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.PrivilegeColumns',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting the privilege **some_privilege** to one or more users or roles\n'
'for a database or a table using the `GRANT some_privilege(column)` statement for one column.\n'
'Multiple columns will be supported with `GRANT some_privilege(column1, column2...)` statement.\n'
'The privileges will be granted for only the specified columns.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying cluster on which to grant privileges using the `ON CLUSTER`\n'
'clause in the `GRANT PRIVILEGE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Privilege_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Grant.Privilege.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `GRANT` statement that\n'
'grants explicit privileges to a user or a role.\n'
'\n'
'```sql\n'
'GRANT [ON CLUSTER cluster_name] privilege[(column_name [,...])] [,...]\n'
' ON {db.table|db.*|*.*|table|*}\n'
' TO {user | role | CURRENT_USER} [,...]\n'
' [WITH GRANT OPTION]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking privileges to one or more users or roles\n'
'for a database or a table on some specific cluster using the `REVOKE ON CLUSTER cluster_name` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Any = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Any',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking ANY privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE some_privilege` statement.\n'
'**some_privilege** refers to any Clickhouse defined privilege, whose hierarchy includes\n'
'SELECT, INSERT, ALTER, CREATE, DROP, TRUNCATE, OPTIMIZE, SHOW, KILL QUERY, ACCESS MANAGEMENT,\n'
'SYSTEM, INTROSPECTION, SOURCES, dictGet and all of their sub-privileges.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Select = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Select',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **select** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE SELECT` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Insert = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Insert',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **insert** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE INSERT` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Alter = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **alter** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE ALTER` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Create = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **create** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE CREATE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Drop = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **drop** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE DROP` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Truncate = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Truncate',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **truncate** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE TRUNCATE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Optimize = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Optimize',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **optimize** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE OPTIMIZE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Show = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Show',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **show** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE SHOW` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_KillQuery = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.KillQuery',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **kill query** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE KILL QUERY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_AccessManagement = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.AccessManagement',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **access management** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE ACCESS MANAGEMENT` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_System = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.System',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **system** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE SYSTEM` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Introspection = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Introspection',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **introspection** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE INTROSPECTION` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Sources = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Sources',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **sources** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE SOURCES` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_DictGet = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.DictGet',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the **dictGet** privilege to one or more users or roles\n'
'for a database or a table using the `REVOKE dictGet` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_PrivelegeColumns = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.PrivelegeColumns',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking the privilege **some_privilege** to one or more users or roles\n'
'for a database or a table using the `REVOKE some_privilege(column)` statement for one column.\n'
'Multiple columns will be supported with `REVOKE some_privilege(column1, column2...)` statement.\n'
'The privileges will be revoked for only the specified columns.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Multiple = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Multiple',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking MULTIPLE **privileges** to one or more users or roles\n'
'for a database or a table using the `REVOKE privilege1, privilege2...` statement.\n'
'**privileges** refers to any set of Clickhouse defined privilege, whose hierarchy includes\n'
'SELECT, INSERT, ALTER, CREATE, DROP, TRUNCATE, OPTIMIZE, SHOW, KILL QUERY, ACCESS MANAGEMENT,\n'
'SYSTEM, INTROSPECTION, SOURCES, dictGet and all of their sub-privileges.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_All = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **all** privileges to one or more users or roles\n'
'for a database or a table using the `REVOKE ALL` or `REVOKE ALL PRIVILEGES` statements.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_None = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **no** privileges to one or more users or roles\n'
'for a database or a table using the `REVOKE NONE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_On = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.On',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the `ON` clause in the `REVOKE` privilege statement\n'
'which SHALL allow to specify one or more tables to which the privilege SHALL\n'
'be revoked using the following patterns\n'
'\n'
'* `db.table` specific table in the specified database\n'
'* `db.*` any table in the specified database\n'
'* `*.*` any table in any database\n'
'* `table` specific table in the current database\n'
'* `*` any table in the current database\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_From = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.From',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the `FROM` clause in the `REVOKE` privilege statement\n'
'which SHALL allow to specify one or more users to which the privilege SHALL\n'
'be revoked using the following patterns\n'
'\n'
'* `{user | CURRENT_USER} [,...]` some combination of users by name, which may include the current user\n'
'* `ALL` all users\n'
'* `ALL EXCEPT {user | CURRENT_USER} [,...]` the logical reverse of the first pattern\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Privilege_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Privilege.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `REVOKE` statement that\n'
'revokes explicit privileges of a user or a role.\n'
'\n'
'```sql\n'
'REVOKE [ON CLUSTER cluster_name] privilege\n'
' [(column_name [,...])] [,...]\n'
' ON {db.table|db.*|*.*|table|*}\n'
' FROM {user | CURRENT_USER} [,...] | ALL | ALL EXCEPT {user | CURRENT_USER} [,...]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_PartialRevoke_Syntax = Requirement(
name='RQ.SRS-006.RBAC.PartialRevoke.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support partial revokes by using `partial_revokes` variable\n'
'that can be set or unset using the following syntax.\n'
'\n'
'To disable partial revokes the `partial_revokes` variable SHALL be set to `0`\n'
'\n'
'```sql\n'
'SET partial_revokes = 0\n'
'```\n'
'\n'
'To enable partial revokes the `partial revokes` variable SHALL be set to `1`\n'
'\n'
'```sql\n'
'SET partial_revokes = 1\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Role = Requirement(
name='RQ.SRS-006.RBAC.Grant.Role',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting one or more roles to\n'
'one or more users or roles using the `GRANT` role statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Role_CurrentUser = Requirement(
name='RQ.SRS-006.RBAC.Grant.Role.CurrentUser',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting one or more roles to current user using\n'
'`TO CURRENT_USER` clause in the `GRANT` role statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Role_AdminOption = Requirement(
name='RQ.SRS-006.RBAC.Grant.Role.AdminOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting `admin option` privilege\n'
'to one or more users or roles using the `WITH ADMIN OPTION` clause\n'
'in the `GRANT` role statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Role_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.Grant.Role.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying cluster on which the user is to be granted one or more roles\n'
'using `ON CLUSTER` clause in the `GRANT` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Grant_Role_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Grant.Role.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for `GRANT` role statement\n'
'\n'
'``` sql\n'
'GRANT\n'
' ON CLUSTER cluster_name\n'
' role [, role ...]\n'
' TO {user | role | CURRENT_USER} [,...]\n'
' [WITH ADMIN OPTION]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Role = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Role',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking one or more roles from\n'
'one or more users or roles using the `REVOKE` role statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Role_Keywords = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Role.Keywords',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking one or more roles from\n'
'special groupings of one or more users or roles with the `ALL`, `ALL EXCEPT`,\n'
'and `CURRENT_USER` keywords.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Role_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Role.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking one or more roles from\n'
'one or more users or roles from one or more clusters\n'
'using the `REVOKE ON CLUSTER` role statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_AdminOption = Requirement(
name='RQ.SRS-006.RBAC.Revoke.AdminOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking `admin option` privilege\n'
'in one or more users or roles using the `ADMIN OPTION FOR` clause\n'
'in the `REVOKE` role statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Revoke_Role_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Revoke.Role.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `REVOKE` role statement\n'
'\n'
'```sql\n'
'REVOKE [ON CLUSTER cluster_name] [ADMIN OPTION FOR]\n'
' role [,...]\n'
' FROM {user | role | CURRENT_USER} [,...] | ALL | ALL EXCEPT {user_name | role_name | CURRENT_USER} [,...]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Show_Grants = Requirement(
name='RQ.SRS-006.RBAC.Show.Grants',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support listing all the privileges granted to current user and role\n'
'using the `SHOW GRANTS` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Show_Grants_For = Requirement(
name='RQ.SRS-006.RBAC.Show.Grants.For',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support listing all the privileges granted to a user or a role\n'
'using the `FOR` clause in the `SHOW GRANTS` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Show_Grants_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Show.Grants.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[Clickhouse] SHALL use the following syntax for the `SHOW GRANTS` statement\n'
'\n'
'``` sql\n'
'SHOW GRANTS [FOR user_or_role]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creating settings profile using the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_IfNotExists = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.IfNotExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `IF NOT EXISTS` clause in the `CREATE SETTINGS PROFILE` statement\n'
'to skip raising an exception if a settings profile with the same **name** already exists.\n'
'If `IF NOT EXISTS` clause is not specified then an exception SHALL be raised if\n'
'a settings profile with the same **name** already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Replace = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Replace',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `OR REPLACE` clause in the `CREATE SETTINGS PROFILE` statement\n'
'to replace existing settings profile if it already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Variables = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Variables',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning values and constraints to one or more\n'
'variables in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Variables_Value = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Variables.Value',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning variable value in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Variables_Constraints = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Variables.Constraints',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support setting `MIN`, `MAX`, `READONLY`, and `WRITABLE`\n'
'constraints for the variables in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Assignment = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Assignment',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning settings profile to one or more users\n'
'or roles in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Assignment_None = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Assignment.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning settings profile to no users or roles using\n'
'`TO NONE` clause in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Assignment_All = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Assignment.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning settings profile to all current users and roles\n'
'using `TO ALL` clause in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Assignment_AllExcept = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Assignment.AllExcept',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support excluding assignment to one or more users or roles using\n'
'the `ALL EXCEPT` clause in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Inherit = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Inherit',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support inheriting profile settings from indicated profile using\n'
'the `INHERIT` clause in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying what cluster to create settings profile on\n'
'using `ON CLUSTER` clause in the `CREATE SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Create_Syntax = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Create.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `CREATE SETTINGS PROFILE` statement.\n'
'\n'
'``` sql\n'
'CREATE SETTINGS PROFILE [IF NOT EXISTS | OR REPLACE] name\n'
' [ON CLUSTER cluster_name]\n'
" [SET varname [= value] [MIN min] [MAX max] [READONLY|WRITABLE] | [INHERIT 'profile_name'] [,...]]\n"
' [TO {user_or_role [,...] | NONE | ALL | ALL EXCEPT user_or_role [,...]}]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering settings profile using the `ALTER STETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_IfExists = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `IF EXISTS` clause in the `ALTER SETTINGS PROFILE` statement\n'
'to not raise exception if a settings profile does not exist.\n'
'If the `IF EXISTS` clause is not specified then an exception SHALL be\n'
'raised if a settings profile does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Rename = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Rename',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support renaming settings profile using the `RANAME TO` clause\n'
'in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Variables = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Variables',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering values and constraints of one or more\n'
'variables in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Variables_Value = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Variables.Value',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering value of the variable in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Variables_Constraints = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Variables.Constraints',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering `MIN`, `MAX`, `READONLY`, and `WRITABLE`\n'
'constraints for the variables in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Assignment = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Assignment',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning settings profile to one or more users\n'
'or roles using the `TO` clause in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Assignment_None = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Assignment.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning settings profile to no users or roles using the\n'
'`TO NONE` clause in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Assignment_All = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Assignment.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning settings profile to all current users and roles\n'
'using the `TO ALL` clause in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Assignment_AllExcept = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Assignment.AllExcept',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support excluding assignment to one or more users or roles using\n'
'the `TO ALL EXCEPT` clause in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Assignment_Inherit = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Assignment.Inherit',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the settings profile by inheriting settings from\n'
'specified profile using `INHERIT` clause in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Assignment_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Assignment.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the settings profile on a specified cluster using\n'
'`ON CLUSTER` clause in the `ALTER SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Alter_Syntax = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Alter.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `ALTER SETTINGS PROFILE` statement.\n'
'\n'
'``` sql\n'
'ALTER SETTINGS PROFILE [IF EXISTS] name\n'
' [ON CLUSTER cluster_name]\n'
' [RENAME TO new_name]\n'
" [SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [READONLY|WRITABLE] | INHERIT 'profile_name'] [,...]\n"
' [TO {user_or_role [,...] | NONE | ALL | ALL EXCEPT user_or_role [,...]]}\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Drop = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing one or more settings profiles using the `DROP SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Drop_IfExists = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Drop.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using `IF EXISTS` clause in the `DROP SETTINGS PROFILE` statement\n'
'to skip raising an exception if the settings profile does not exist.\n'
'If the `IF EXISTS` clause is not specified then an exception SHALL be\n'
'raised if a settings profile does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Drop_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Drop.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support dropping one or more settings profiles on specified cluster using\n'
'`ON CLUSTER` clause in the `DROP SETTINGS PROFILE` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_Drop_Syntax = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.Drop.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `DROP SETTINGS PROFILE` statement\n'
'\n'
'``` sql\n'
'DROP SETTINGS PROFILE [IF EXISTS] name [,name,...]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_SettingsProfile_ShowCreateSettingsProfile = Requirement(
name='RQ.SRS-006.RBAC.SettingsProfile.ShowCreateSettingsProfile',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the `CREATE SETTINGS PROFILE` statement used to create the settings profile\n'
'using the `SHOW CREATE SETTINGS PROFILE` statement with the following syntax\n'
'\n'
'``` sql\n'
'SHOW CREATE SETTINGS PROFILE name\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creating quotas using the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_IfNotExists = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.IfNotExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `IF NOT EXISTS` clause in the `CREATE QUOTA` statement\n'
'to skip raising an exception if a quota with the same **name** already exists.\n'
'If `IF NOT EXISTS` clause is not specified then an exception SHALL be raised if\n'
'a quota with the same **name** already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Replace = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Replace',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `OR REPLACE` clause in the `CREATE QUOTA` statement\n'
'to replace existing quota if it already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creating quotas on a specific cluster with the\n'
'`ON CLUSTER` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Interval = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Interval',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support defining the quota interval that specifies\n'
'a period of time over for which the quota SHALL apply using the\n'
'`FOR INTERVAL` clause in the `CREATE QUOTA` statement.\n'
'\n'
'This statement SHALL also support a number and a time period which will be one\n'
'of `{SECOND | MINUTE | HOUR | DAY | MONTH}`. Thus, the complete syntax SHALL be:\n'
'\n'
'`FOR INTERVAL number {SECOND | MINUTE | HOUR | DAY}` where number is some real number\n'
'to define the interval.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Interval_Randomized = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Interval.Randomized',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support defining the quota randomized interval that specifies\n'
'a period of time over for which the quota SHALL apply using the\n'
'`FOR RANDOMIZED INTERVAL` clause in the `CREATE QUOTA` statement.\n'
'\n'
'This statement SHALL also support a number and a time period which will be one\n'
'of `{SECOND | MINUTE | HOUR | DAY | MONTH}`. Thus, the complete syntax SHALL be:\n'
'\n'
'`FOR [RANDOMIZED] INTERVAL number {SECOND | MINUTE | HOUR | DAY}` where number is some\n'
'real number to define the interval.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Queries = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Queries',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting number of requests over a period of time\n'
'using the `QUERIES` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Errors = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Errors',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting number of queries that threw an exception\n'
'using the `ERRORS` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_ResultRows = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.ResultRows',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the total number of rows given as the result\n'
'using the `RESULT ROWS` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_ReadRows = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.ReadRows',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the total number of source rows read from tables\n'
'for running the query on all remote servers\n'
'using the `READ ROWS` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_ResultBytes = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.ResultBytes',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the total number of bytes that can be returned as the result\n'
'using the `RESULT BYTES` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_ReadBytes = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.ReadBytes',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the total number of source bytes read from tables\n'
'for running the query on all remote servers\n'
'using the `READ BYTES` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_ExecutionTime = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.ExecutionTime',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the maximum query execution time\n'
'using the `EXECUTION TIME` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_NoLimits = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.NoLimits',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the maximum query execution time\n'
'using the `NO LIMITS` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_TrackingOnly = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.TrackingOnly',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the maximum query execution time\n'
'using the `TRACKING ONLY` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_KeyedBy = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.KeyedBy',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support to track quota for some key\n'
'following the `KEYED BY` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_KeyedByOptions = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.KeyedByOptions',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support to track quota separately for some parameter\n'
"using the `KEYED BY 'parameter'` clause in the `CREATE QUOTA` statement.\n"
'\n'
"'parameter' can be one of:\n"
"`{'none' | 'user name' | 'ip address' | 'client key' | 'client key or user name' | 'client key or ip address'}`\n"
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Assignment = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Assignment',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning quota to one or more users\n'
'or roles using the `TO` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Assignment_None = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Assignment.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning quota to no users or roles using\n'
'`TO NONE` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Assignment_All = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Assignment.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning quota to all current users and roles\n'
'using `TO ALL` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Assignment_Except = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Assignment.Except',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support excluding assignment of quota to one or more users or roles using\n'
'the `EXCEPT` clause in the `CREATE QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Create_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Quota.Create.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `CREATE QUOTA` statement\n'
'\n'
'```sql\n'
'CREATE QUOTA [IF NOT EXISTS | OR REPLACE] name [ON CLUSTER cluster_name]\n'
" [KEYED BY {'none' | 'user name' | 'ip address' | 'client key' | 'client key or user name' | 'client key or ip address'}]\n"
' [FOR [RANDOMIZED] INTERVAL number {SECOND | MINUTE | HOUR | DAY}\n'
' {MAX { {QUERIES | ERRORS | RESULT ROWS | RESULT BYTES | READ ROWS | READ BYTES | EXECUTION TIME} = number } [,...] |\n'
' NO LIMITS | TRACKING ONLY} [,...]]\n'
' [TO {role [,...] | ALL | ALL EXCEPT role [,...]}]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering quotas using the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_IfExists = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `IF EXISTS` clause in the `ALTER QUOTA` statement\n'
'to skip raising an exception if a quota does not exist.\n'
'If the `IF EXISTS` clause is not specified then an exception SHALL be raised if\n'
'a quota does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Rename = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Rename',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `RENAME TO` clause in the `ALTER QUOTA` statement\n'
'to rename the quota to the specified name.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering quotas on a specific cluster with the\n'
'`ON CLUSTER` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Interval = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Interval',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support redefining the quota interval that specifies\n'
'a period of time over for which the quota SHALL apply using the\n'
'`FOR INTERVAL` clause in the `ALTER QUOTA` statement.\n'
'\n'
'This statement SHALL also support a number and a time period which will be one\n'
'of `{SECOND | MINUTE | HOUR | DAY | MONTH}`. Thus, the complete syntax SHALL be:\n'
'\n'
'`FOR INTERVAL number {SECOND | MINUTE | HOUR | DAY}` where number is some real number\n'
'to define the interval.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Interval_Randomized = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Interval.Randomized',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support redefining the quota randomized interval that specifies\n'
'a period of time over for which the quota SHALL apply using the\n'
'`FOR RANDOMIZED INTERVAL` clause in the `ALTER QUOTA` statement.\n'
'\n'
'This statement SHALL also support a number and a time period which will be one\n'
'of `{SECOND | MINUTE | HOUR | DAY | MONTH}`. Thus, the complete syntax SHALL be:\n'
'\n'
'`FOR [RANDOMIZED] INTERVAL number {SECOND | MINUTE | HOUR | DAY}` where number is some\n'
'real number to define the interval.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Queries = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Queries',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the limit of number of requests over a period of time\n'
'using the `QUERIES` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Errors = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Errors',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the limit of number of queries that threw an exception\n'
'using the `ERRORS` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_ResultRows = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.ResultRows',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the limit of the total number of rows given as the result\n'
'using the `RESULT ROWS` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_ReadRows = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.ReadRows',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the limit of the total number of source rows read from tables\n'
'for running the query on all remote servers\n'
'using the `READ ROWS` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ALter_ResultBytes = Requirement(
name='RQ.SRS-006.RBAC.Quota.ALter.ResultBytes',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the limit of the total number of bytes that can be returned as the result\n'
'using the `RESULT BYTES` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_ReadBytes = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.ReadBytes',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the limit of the total number of source bytes read from tables\n'
'for running the query on all remote servers\n'
'using the `READ BYTES` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_ExecutionTime = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.ExecutionTime',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering the limit of the maximum query execution time\n'
'using the `EXECUTION TIME` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_NoLimits = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.NoLimits',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the maximum query execution time\n'
'using the `NO LIMITS` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_TrackingOnly = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.TrackingOnly',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support limiting the maximum query execution time\n'
'using the `TRACKING ONLY` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_KeyedBy = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.KeyedBy',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering quota to track quota separately for some key\n'
'following the `KEYED BY` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_KeyedByOptions = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.KeyedByOptions',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering quota to track quota separately for some parameter\n'
"using the `KEYED BY 'parameter'` clause in the `ALTER QUOTA` statement.\n"
'\n'
"'parameter' can be one of:\n"
"`{'none' | 'user name' | 'ip address' | 'client key' | 'client key or user name' | 'client key or ip address'}`\n"
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Assignment = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Assignment',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning quota to one or more users\n'
'or roles using the `TO` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Assignment_None = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Assignment.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning quota to no users or roles using\n'
'`TO NONE` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Assignment_All = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Assignment.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning quota to all current users and roles\n'
'using `TO ALL` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Assignment_Except = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Assignment.Except',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support excluding assignment of quota to one or more users or roles using\n'
'the `EXCEPT` clause in the `ALTER QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Alter_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Quota.Alter.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `ALTER QUOTA` statement\n'
'\n'
'``` sql\n'
'ALTER QUOTA [IF EXIST] name\n'
' {{{QUERIES | ERRORS | RESULT ROWS | READ ROWS | RESULT BYTES | READ BYTES | EXECUTION TIME} number} [, ...] FOR INTERVAL number time_unit} [, ...]\n'
' [KEYED BY USERNAME | KEYED BY IP | NOT KEYED] [ALLOW CUSTOM KEY | DISALLOW CUSTOM KEY]\n'
' [TO {user_or_role [,...] | NONE | ALL} [EXCEPT user_or_role [,...]]]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Drop = Requirement(
name='RQ.SRS-006.RBAC.Quota.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing one or more quotas using the `DROP QUOTA` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Drop_IfExists = Requirement(
name='RQ.SRS-006.RBAC.Quota.Drop.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using `IF EXISTS` clause in the `DROP QUOTA` statement\n'
'to skip raising an exception when the quota does not exist.\n'
'If the `IF EXISTS` clause is not specified then an exception SHALL be\n'
'raised if the quota does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Drop_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Quota.Drop.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using `ON CLUSTER` clause in the `DROP QUOTA` statement\n'
'to indicate the cluster the quota to be dropped is located on.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_Drop_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Quota.Drop.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `DROP QUOTA` statement\n'
'\n'
'``` sql\n'
'DROP QUOTA [IF EXISTS] name [,name...]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ShowQuotas = Requirement(
name='RQ.SRS-006.RBAC.Quota.ShowQuotas',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing all of the current quotas\n'
'using the `SHOW QUOTAS` statement with the following syntax\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ShowQuotas_IntoOutfile = Requirement(
name='RQ.SRS-006.RBAC.Quota.ShowQuotas.IntoOutfile',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the `INTO OUTFILE` clause in the `SHOW QUOTAS` statement to define an outfile by some given string literal.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ShowQuotas_Format = Requirement(
name='RQ.SRS-006.RBAC.Quota.ShowQuotas.Format',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the `FORMAT` clause in the `SHOW QUOTAS` statement to define a format for the output quota list.\n'
'\n'
'The types of valid formats are many, listed in output column:\n'
'https://clickhouse.tech/docs/en/interfaces/formats/\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ShowQuotas_Settings = Requirement(
name='RQ.SRS-006.RBAC.Quota.ShowQuotas.Settings',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the `SETTINGS` clause in the `SHOW QUOTAS` statement to define settings in the showing of all quotas.\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ShowQuotas_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Quota.ShowQuotas.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using the `SHOW QUOTAS` statement\n'
'with the following syntax\n'
'``` sql\n'
'SHOW QUOTAS\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ShowCreateQuota_Name = Requirement(
name='RQ.SRS-006.RBAC.Quota.ShowCreateQuota.Name',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the `CREATE QUOTA` statement used to create the quota with some given name\n'
'using the `SHOW CREATE QUOTA` statement with the following syntax\n'
'\n'
'``` sql\n'
'SHOW CREATE QUOTA name\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ShowCreateQuota_Current = Requirement(
name='RQ.SRS-006.RBAC.Quota.ShowCreateQuota.Current',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the `CREATE QUOTA` statement used to create the CURRENT quota\n'
'using the `SHOW CREATE QUOTA CURRENT` statement or the shorthand form\n'
'`SHOW CREATE QUOTA`\n'
),
link=None
)
RQ_SRS_006_RBAC_Quota_ShowCreateQuota_Syntax = Requirement(
name='RQ.SRS-006.RBAC.Quota.ShowCreateQuota.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax when\n'
'using the `SHOW CREATE QUOTA` statement.\n'
'\n'
'```sql\n'
'SHOW CREATE QUOTA [name | CURRENT]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support creating row policy using the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_IfNotExists = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.IfNotExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `IF NOT EXISTS` clause in the `CREATE ROW POLICY` statement\n'
'to skip raising an exception if a row policy with the same **name** already exists.\n'
'If the `IF NOT EXISTS` clause is not specified then an exception SHALL be raised if\n'
'a row policy with the same **name** already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Replace = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Replace',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support `OR REPLACE` clause in the `CREATE ROW POLICY` statement\n'
'to replace existing row policy if it already exists.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying cluster on which to create the role policy\n'
'using the `ON CLUSTER` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_On = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.On',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying table on which to create the role policy\n'
'using the `ON` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Access = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Access',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support allowing or restricting access to rows using the\n'
'`AS` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Access_Permissive = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Access.Permissive',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support allowing access to rows using the\n'
'`AS PERMISSIVE` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Access_Restrictive = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Access.Restrictive',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support restricting access to rows using the\n'
'`AS RESTRICTIVE` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_ForSelect = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.ForSelect',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying which rows are affected\n'
'using the `FOR SELECT` clause in the `CREATE ROW POLICY` statement.\n'
'REQUIRES CONFIRMATION\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Condition = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Condition',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying a condition that\n'
'that can be any SQL expression which returns a boolean using the `USING`\n'
'clause in the `CREATE ROW POLOCY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Assignment = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Assignment',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning row policy to one or more users\n'
'or roles using the `TO` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Assignment_None = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Assignment.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning row policy to no users or roles using\n'
'the `TO NONE` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Assignment_All = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Assignment.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support assigning row policy to all current users and roles\n'
'using `TO ALL` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Assignment_AllExcept = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Assignment.AllExcept',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support excluding assignment of row policy to one or more users or roles using\n'
'the `ALL EXCEPT` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Create_Syntax = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Create.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `CRETE ROW POLICY` statement\n'
'\n'
'``` sql\n'
'CREATE [ROW] POLICY [IF NOT EXISTS | OR REPLACE] policy_name [ON CLUSTER cluster_name] ON [db.]table\n'
' [AS {PERMISSIVE | RESTRICTIVE}]\n'
' [FOR SELECT]\n'
' [USING condition]\n'
' [TO {role [,...] | ALL | ALL EXCEPT role [,...]}]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering row policy using the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_IfExists = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the `IF EXISTS` clause in the `ALTER ROW POLICY` statement\n'
'to skip raising an exception if a row policy does not exist.\n'
'If the `IF EXISTS` clause is not specified then an exception SHALL be raised if\n'
'a row policy does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_ForSelect = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.ForSelect',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support modifying rows on which to apply the row policy\n'
'using the `FOR SELECT` clause in the `ALTER ROW POLICY` statement.\n'
'REQUIRES FUNCTION CONFIRMATION.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying cluster on which to alter the row policy\n'
'using the `ON CLUSTER` clause in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_On = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.On',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support specifying table on which to alter the row policy\n'
'using the `ON` clause in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Rename = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Rename',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support renaming the row policy using the `RENAME` clause\n'
'in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Access = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Access',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support altering access to rows using the\n'
'`AS` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Access_Permissive = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Access.Permissive',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support permitting access to rows using the\n'
'`AS PERMISSIVE` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Access_Restrictive = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Access.Restrictive',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support restricting access to rows using the\n'
'`AS RESTRICTIVE` clause in the `CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Condition = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Condition',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support re-specifying the row policy condition\n'
'using the `USING` clause in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Condition_None = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Condition.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing the row policy condition\n'
'using the `USING NONE` clause in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Assignment = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Assignment',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning row policy to one or more users\n'
'or roles using the `TO` clause in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Assignment_None = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Assignment.None',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning row policy to no users or roles using\n'
'the `TO NONE` clause in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Assignment_All = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Assignment.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support reassigning row policy to all current users and roles\n'
'using the `TO ALL` clause in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Assignment_AllExcept = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Assignment.AllExcept',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support excluding assignment of row policy to one or more users or roles using\n'
'the `ALL EXCEPT` clause in the `ALTER ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Alter_Syntax = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Alter.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `ALTER ROW POLICY` statement\n'
'\n'
'``` sql\n'
'ALTER [ROW] POLICY [IF EXISTS] name [ON CLUSTER cluster_name] ON [database.]table\n'
' [RENAME TO new_name]\n'
' [AS {PERMISSIVE | RESTRICTIVE}]\n'
' [FOR SELECT]\n'
' [USING {condition | NONE}][,...]\n'
' [TO {role [,...] | ALL | ALL EXCEPT role [,...]}]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Drop = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing one or more row policies using the `DROP ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Drop_IfExists = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Drop.IfExists',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support using the `IF EXISTS` clause in the `DROP ROW POLICY` statement\n'
'to skip raising an exception when the row policy does not exist.\n'
'If the `IF EXISTS` clause is not specified then an exception SHALL be\n'
'raised if the row policy does not exist.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Drop_On = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Drop.On',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing row policy from one or more specified tables\n'
'using the `ON` clause in the `DROP ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Drop_OnCluster = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Drop.OnCluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support removing row policy from specified cluster\n'
'using the `ON CLUSTER` clause in the `DROP ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_Drop_Syntax = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.Drop.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for the `DROP ROW POLICY` statement.\n'
'\n'
'``` sql\n'
'DROP [ROW] POLICY [IF EXISTS] name [,...] ON [database.]table [,...] [ON CLUSTER cluster_name]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_ShowCreateRowPolicy = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.ShowCreateRowPolicy',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing the `CREATE ROW POLICY` statement used to create the row policy\n'
'using the `SHOW CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_ShowCreateRowPolicy_On = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.ShowCreateRowPolicy.On',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing statement used to create row policy on specific table\n'
'using the `ON` in the `SHOW CREATE ROW POLICY` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_ShowCreateRowPolicy_Syntax = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.ShowCreateRowPolicy.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for `SHOW CREATE ROW POLICY`.\n'
'\n'
'``` sql\n'
'SHOW CREATE [ROW] POLICY name ON [database.]table\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_ShowRowPolicies = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.ShowRowPolicies',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing row policies using the `SHOW ROW POLICIES` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_ShowRowPolicies_On = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.ShowRowPolicies.On',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support showing row policies on a specific table\n'
'using the `ON` clause in the `SHOW ROW POLICIES` statement.\n'
),
link=None
)
RQ_SRS_006_RBAC_RowPolicy_ShowRowPolicies_Syntax = Requirement(
name='RQ.SRS-006.RBAC.RowPolicy.ShowRowPolicies.Syntax',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support the following syntax for `SHOW ROW POLICIES`.\n'
'\n'
'```sql\n'
'SHOW [ROW] POLICIES [ON [database.]table]\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_Table_PublicTables = Requirement(
name='RQ.SRS-006.RBAC.Table.PublicTables',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support that a user without any privileges will be able to access the following tables\n'
'\n'
'* system.one\n'
'* system.numbers\n'
'* system.contributors\n'
'* system.functions\n'
),
link=None
)
RQ_SRS_006_RBAC_Table_ShowTables = Requirement(
name='RQ.SRS-006.RBAC.Table.ShowTables',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL add a table to the list of tables accessible through `SHOW TABLES` by a user if and only if\n'
'that user has any privilege on that table, either directly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Table_DistributedTable_Create = Requirement(
name='RQ.SRS-006.RBAC.Table.DistributedTable.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL successfully `CREATE` a distributed table if and only if\n'
'the user has **create table** privilege on the table and **remote** privilege on *.*.\n'
),
link=None
)
RQ_SRS_006_RBAC_Table_DistributedTable_Select = Requirement(
name='RQ.SRS-006.RBAC.Table.DistributedTable.Select',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL successfully `SELECT` from a distributed table if and only if\n'
'the user has **select** privilege on the table and on the remote table specified in the `CREATE` query of the distributed table.\n'
'\n'
'Does not require **select** privilege for the remote table if the remote table does not exist on the same server as the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Table_DistributedTable_Insert = Requirement(
name='RQ.SRS-006.RBAC.Table.DistributedTable.Insert',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL successfully `INSERT` into a distributed table if and only if\n'
'the user has **insert** privilege on the table and on the remote table specified in the `CREATE` query of the distributed table.\n'
'\n'
'Does not require **insert** privilege for the remote table if the remote table does not exist on the same server as the user,\n'
'insert executes into the remote table on a different server.\n'
),
link=None
)
RQ_SRS_006_RBAC_Table_DistributedTable_SpecialTables = Requirement(
name='RQ.SRS-006.RBAC.Table.DistributedTable.SpecialTables',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL successfully execute a query using a distributed table that uses one of the special tables if and only if\n'
'the user has the necessary privileges to interact with that special table, either granted directly or through a role.\n'
'Special tables include:\n'
'* materialized view\n'
'* distributed table\n'
'* source table of a materialized view\n'
),
link=None
)
RQ_SRS_006_RBAC_Table_DistributedTable_LocalUser = Requirement(
name='RQ.SRS-006.RBAC.Table.DistributedTable.LocalUser',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL successfully execute a query using a distributed table from\n'
'a user present locally, but not remotely.\n'
),
link=None
)
RQ_SRS_006_RBAC_Table_DistributedTable_SameUserDifferentNodesDifferentPrivileges = Requirement(
name='RQ.SRS-006.RBAC.Table.DistributedTable.SameUserDifferentNodesDifferentPrivileges',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL successfully execute a query using a distributed table by a user that exists on multiple nodes\n'
'if and only if the user has the required privileges on the node the query is being executed from.\n'
),
link=None
)
RQ_SRS_006_RBAC_View = Requirement(
name='RQ.SRS-006.RBAC.View',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to **create**, **select** and **drop**\n'
'privileges for a view for users or roles.\n'
),
link=None
)
RQ_SRS_006_RBAC_View_Create = Requirement(
name='RQ.SRS-006.RBAC.View.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully execute a `CREATE VIEW` command if and only if\n'
'the user has **create view** privilege either explicitly or through roles.\n'
'\n'
'If the stored query includes one or more source tables, the user must have **select** privilege\n'
'on all the source tables either explicitly or through a role.\n'
'For example,\n'
'```sql\n'
'CREATE VIEW view AS SELECT * FROM source_table\n'
'CREATE VIEW view AS SELECT * FROM table0 WHERE column IN (SELECT column FROM table1 WHERE column IN (SELECT column FROM table2 WHERE expression))\n'
'CREATE VIEW view AS SELECT * FROM table0 JOIN table1 USING column\n'
'CREATE VIEW view AS SELECT * FROM table0 UNION ALL SELECT * FROM table1 UNION ALL SELECT * FROM table2\n'
'CREATE VIEW view AS SELECT column FROM table0 JOIN table1 USING column UNION ALL SELECT column FROM table2 WHERE column IN (SELECT column FROM table3 WHERE column IN (SELECT column FROM table4 WHERE expression))\n'
'CREATE VIEW view0 AS SELECT column FROM view1 UNION ALL SELECT column FROM view2\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_View_Select = Requirement(
name='RQ.SRS-006.RBAC.View.Select',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully `SELECT` from a view if and only if\n'
'the user has **select** privilege for that view either explicitly or through a role.\n'
'\n'
'If the stored query includes one or more source tables, the user must have **select** privilege\n'
'on all the source tables either explicitly or through a role.\n'
'For example,\n'
'```sql\n'
'CREATE VIEW view AS SELECT * FROM source_table\n'
'CREATE VIEW view AS SELECT * FROM table0 WHERE column IN (SELECT column FROM table1 WHERE column IN (SELECT column FROM table2 WHERE expression))\n'
'CREATE VIEW view AS SELECT * FROM table0 JOIN table1 USING column\n'
'CREATE VIEW view AS SELECT * FROM table0 UNION ALL SELECT * FROM table1 UNION ALL SELECT * FROM table2\n'
'CREATE VIEW view AS SELECT column FROM table0 JOIN table1 USING column UNION ALL SELECT column FROM table2 WHERE column IN (SELECT column FROM table3 WHERE column IN (SELECT column FROM table4 WHERE expression))\n'
'CREATE VIEW view0 AS SELECT column FROM view1 UNION ALL SELECT column FROM view2\n'
'\n'
'SELECT * FROM view\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_View_Drop = Requirement(
name='RQ.SRS-006.RBAC.View.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully execute a `DROP VIEW` command if and only if\n'
'the user has **drop view** privilege on that view either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to **create**, **select**, **alter** and **drop**\n'
'privileges for a materialized view for users or roles.\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_Create = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully execute a `CREATE MATERIALIZED VIEW` command if and only if\n'
'the user has **create view** privilege either explicitly or through roles.\n'
'\n'
'If `POPULATE` is specified, the user must have `INSERT` privilege on the view,\n'
'either explicitly or through roles.\n'
'For example,\n'
'```sql\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory POPULATE AS SELECT * FROM source_table\n'
'```\n'
'\n'
'If the stored query includes one or more source tables, the user must have **select** privilege\n'
'on all the source tables either explicitly or through a role.\n'
'For example,\n'
'```sql\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT * FROM source_table\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT * FROM table0 WHERE column IN (SELECT column FROM table1 WHERE column IN (SELECT column FROM table2 WHERE expression))\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT * FROM table0 JOIN table1 USING column\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT * FROM table0 UNION ALL SELECT * FROM table1 UNION ALL SELECT * FROM table2\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT column FROM table0 JOIN table1 USING column UNION ALL SELECT column FROM table2 WHERE column IN (SELECT column FROM table3 WHERE column IN (SELECT column FROM table4 WHERE expression))\n'
'CREATE MATERIALIZED VIEW view0 ENGINE = Memory AS SELECT column FROM view1 UNION ALL SELECT column FROM view2\n'
'```\n'
'\n'
'If the materialized view has a target table explicitly declared in the `TO` clause, the user must have\n'
'**insert** and **select** privilege on the target table.\n'
'For example,\n'
'```sql\n'
'CREATE MATERIALIZED VIEW view TO target_table AS SELECT * FROM source_table\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_Select = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.Select',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully `SELECT` from a materialized view if and only if\n'
'the user has **select** privilege for that view either explicitly or through a role.\n'
'\n'
'If the stored query includes one or more source tables, the user must have **select** privilege\n'
'on all the source tables either explicitly or through a role.\n'
'For example,\n'
'```sql\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT * FROM source_table\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT * FROM table0 WHERE column IN (SELECT column FROM table1 WHERE column IN (SELECT column FROM table2 WHERE expression))\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT * FROM table0 JOIN table1 USING column\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT * FROM table0 UNION ALL SELECT * FROM table1 UNION ALL SELECT * FROM table2\n'
'CREATE MATERIALIZED VIEW view ENGINE = Memory AS SELECT column FROM table0 JOIN table1 USING column UNION ALL SELECT column FROM table2 WHERE column IN (SELECT column FROM table3 WHERE column IN (SELECT column FROM table4 WHERE expression))\n'
'CREATE MATERIALIZED VIEW view0 ENGINE = Memory AS SELECT column FROM view1 UNION ALL SELECT column FROM view2\n'
'\n'
'SELECT * FROM view\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_Select_TargetTable = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.Select.TargetTable',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully `SELECT` from the target table, implicit or explicit, of a materialized view if and only if\n'
'the user has `SELECT` privilege for the table, either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_Select_SourceTable = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.Select.SourceTable',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully `SELECT` from the source table of a materialized view if and only if\n'
'the user has `SELECT` privilege for the table, either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_Drop = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully execute a `DROP VIEW` command if and only if\n'
'the user has **drop view** privilege on that view either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_ModifyQuery = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.ModifyQuery',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully execute a `MODIFY QUERY` command if and only if\n'
'the user has **modify query** privilege on that view either explicitly or through a role.\n'
'\n'
'If the new query includes one or more source tables, the user must have **select** privilege\n'
'on all the source tables either explicitly or through a role.\n'
'For example,\n'
'```sql\n'
'ALTER TABLE view MODIFY QUERY SELECT * FROM source_table\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_Insert = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.Insert',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only succesfully `INSERT` into a materialized view if and only if\n'
'the user has `INSERT` privilege on the view, either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_Insert_SourceTable = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.Insert.SourceTable',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only succesfully `INSERT` into a source table of a materialized view if and only if\n'
'the user has `INSERT` privilege on the source table, either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_MaterializedView_Insert_TargetTable = Requirement(
name='RQ.SRS-006.RBAC.MaterializedView.Insert.TargetTable',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only succesfully `INSERT` into a target table of a materialized view if and only if\n'
'the user has `INSERT` privelege on the target table, either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_LiveView = Requirement(
name='RQ.SRS-006.RBAC.LiveView',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to **create**, **select**, **alter** and **drop**\n'
'privileges for a live view for users or roles.\n'
),
link=None
)
RQ_SRS_006_RBAC_LiveView_Create = Requirement(
name='RQ.SRS-006.RBAC.LiveView.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully execute a `CREATE LIVE VIEW` command if and only if\n'
'the user has **create view** privilege either explicitly or through roles.\n'
'\n'
'If the stored query includes one or more source tables, the user must have **select** privilege\n'
'on all the source tables either explicitly or through a role.\n'
'For example,\n'
'```sql\n'
'CREATE LIVE VIEW view AS SELECT * FROM source_table\n'
'CREATE LIVE VIEW view AS SELECT * FROM table0 WHERE column IN (SELECT column FROM table1 WHERE column IN (SELECT column FROM table2 WHERE expression))\n'
'CREATE LIVE VIEW view AS SELECT * FROM table0 JOIN table1 USING column\n'
'CREATE LIVE VIEW view AS SELECT * FROM table0 UNION ALL SELECT * FROM table1 UNION ALL SELECT * FROM table2\n'
'CREATE LIVE VIEW view AS SELECT column FROM table0 JOIN table1 USING column UNION ALL SELECT column FROM table2 WHERE column IN (SELECT column FROM table3 WHERE column IN (SELECT column FROM table4 WHERE expression))\n'
'CREATE LIVE VIEW view0 AS SELECT column FROM view1 UNION ALL SELECT column FROM view2\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_LiveView_Select = Requirement(
name='RQ.SRS-006.RBAC.LiveView.Select',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully `SELECT` from a live view if and only if\n'
'the user has **select** privilege for that view either explicitly or through a role.\n'
'\n'
'If the stored query includes one or more source tables, the user must have **select** privilege\n'
'on all the source tables either explicitly or through a role.\n'
'For example,\n'
'```sql\n'
'CREATE LIVE VIEW view AS SELECT * FROM source_table\n'
'CREATE LIVE VIEW view AS SELECT * FROM table0 WHERE column IN (SELECT column FROM table1 WHERE column IN (SELECT column FROM table2 WHERE expression))\n'
'CREATE LIVE VIEW view AS SELECT * FROM table0 JOIN table1 USING column\n'
'CREATE LIVE VIEW view AS SELECT * FROM table0 UNION ALL SELECT * FROM table1 UNION ALL SELECT * FROM table2\n'
'CREATE LIVE VIEW view AS SELECT column FROM table0 JOIN table1 USING column UNION ALL SELECT column FROM table2 WHERE column IN (SELECT column FROM table3 WHERE column IN (SELECT column FROM table4 WHERE expression))\n'
'CREATE LIVE VIEW view0 AS SELECT column FROM view1 UNION ALL SELECT column FROM view2\n'
'\n'
'SELECT * FROM view\n'
'```\n'
),
link=None
)
RQ_SRS_006_RBAC_LiveView_Drop = Requirement(
name='RQ.SRS-006.RBAC.LiveView.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully execute a `DROP VIEW` command if and only if\n'
'the user has **drop view** privilege on that view either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_LiveView_Refresh = Requirement(
name='RQ.SRS-006.RBAC.LiveView.Refresh',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL only successfully execute an `ALTER LIVE VIEW REFRESH` command if and only if\n'
'the user has **refresh** privilege on that view either explicitly or through a role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Usage = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Usage',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **usage** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **select** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
'Any `SELECT INTO` statements SHALL not to be executed, unless the user\n'
'has the **select** privilege for the destination table\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **select** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **select** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select_Column = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select.Column',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **select** privilege\n'
'for one or more specified columns in a table to one or more **users** or **roles**.\n'
'Any `SELECT INTO` statements SHALL not to be executed, unless the user\n'
'has the **select** privilege for the destination column\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **select** privilege\n'
'on a specified cluster to one or more **users** or **roles**.\n'
'Any `SELECT INTO` statements SHALL succeed only on nodes where\n'
'the table exists and privilege was granted.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **select** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
'with a `GRANT OPTION` clause. User with **grant option** privilege SHALL be able to\n'
'change access to the **select** privilege by another user or role\n'
'on the same or smaller scope that they have access to.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select_GrantOption_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select.GrantOption.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'granting **select** privilege to other **users** or **roles** on the same\n'
'or smaller scope that they have access to. Any `SELECT INTO` statements SHALL succeed\n'
'when done by a user with privilege granted by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select_GrantOption_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select.GrantOption.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'revoking **select** privilege from other **users** or **roles** on the same\n'
'or smaller scope that they have access to. Any `SELECT INTO` statements SHALL fail\n'
'when done by a user with privilege revoke by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role, unless they have access otherwise.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Select_TableEngines = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Select.TableEngines',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **select** privilege\n'
'on tables created using the following engines\n'
'\n'
'* MergeTree\n'
'* ReplacingMergeTree\n'
'* SummingMergeTree\n'
'* AggregatingMergeTree\n'
'* CollapsingMergeTree\n'
'* VersionedCollapsingMergeTree\n'
'* GraphiteMergeTree\n'
'* ReplicatedMergeTree\n'
'* ReplicatedSummingMergeTree\n'
'* ReplicatedReplacingMergeTree\n'
'* ReplicatedAggregatingMergeTree\n'
'* ReplicatedCollapsingMergeTree\n'
'* ReplicatedVersionedCollapsingMergeTree\n'
'* ReplicatedGraphiteMergeTree\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **insert** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
'Any `INSERT INTO` statements SHALL not to be executed, unless the user\n'
'has the **insert** privilege for the destination table\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **insert** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **insert** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert_Column = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert.Column',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **insert** privilege\n'
'for one or more specified columns in a table to one or more **users** or **roles**.\n'
'Any `INSERT INTO` statements SHALL not to be executed, unless the user\n'
'has the **insert** privilege for the destination column\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **insert** privilege\n'
'on a specified cluster to one or more **users** or **roles**.\n'
'Any `INSERT INTO` statements SHALL succeed only on nodes where\n'
'the table exists and privilege was granted.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **insert** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
'with a `GRANT OPTION` clause. User with **grant option** privilege SHALL be able to\n'
'change access to the **insert** privilege by another user or role\n'
'on the same or smaller scope that they have access to.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert_GrantOption_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert.GrantOption.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'granting **insert** privilege to other **users** or **roles** on the same\n'
'or smaller scope that they have access to. Any `INSERT INTO` statements SHALL succeed\n'
'when done by a user with privilege granted by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert_GrantOption_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert.GrantOption.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'revoking **insert** privilege from other **users** or **roles** on the same\n'
'or smaller scope that they have access to. Any `INSERT INTO` statements SHALL fail\n'
'when done by a user with privilege revoke by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role, unless they have access otherwise.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Insert_TableEngines = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Insert.TableEngines',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **insert** privilege\n'
'on tables created using the following engines\n'
'\n'
'* MergeTree\n'
'* ReplacingMergeTree\n'
'* SummingMergeTree\n'
'* AggregatingMergeTree\n'
'* CollapsingMergeTree\n'
'* VersionedCollapsingMergeTree\n'
'* GraphiteMergeTree\n'
'* ReplicatedMergeTree\n'
'* ReplicatedSummingMergeTree\n'
'* ReplicatedReplacingMergeTree\n'
'* ReplicatedAggregatingMergeTree\n'
'* ReplicatedCollapsingMergeTree\n'
'* ReplicatedVersionedCollapsingMergeTree\n'
'* ReplicatedGraphiteMergeTree\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **AlterColumn** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ADD|DROP|CLEAR|COMMENT|MODIFY COLUMN` statements SHALL\n'
'return an error, unless the user has the **alter column** privilege for\n'
'the destination table either because of the explicit grant or through one of\n'
'the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter column** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **alter column** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn_Column = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn.Column',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **alter column** privilege\n'
'for one or more specified columns in a table to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ADD|DROP|CLEAR|COMMENT|MODIFY COLUMN` statements SHALL return an error,\n'
' unless the user has the **alter column** privilege for the destination column\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **alter column** privilege\n'
'on a specified cluster to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ADD|DROP|CLEAR|COMMENT|MODIFY COLUMN`\n'
'statements SHALL succeed only on nodes where the table exists and privilege was granted.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter column** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
'with a `GRANT OPTION` clause. User with **grant option** privilege SHALL be able to\n'
'change access to the **alter column** privilege by another user or role\n'
'on the same or smaller scope that they have access to.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn_GrantOption_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn.GrantOption.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'granting **alter column** privilege to other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... ADD|DROP|CLEAR|COMMENT|MODIFY COLUMN` statements SHALL\n'
'succeed when done by a user with privilege granted by a user with\n'
'`GRANT OPTION`, either directly or through an assigned role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn_GrantOption_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn.GrantOption.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'revoking **alter column** privilege from other **users** or **roles** on the same\n'
'or smaller scope that they have access to. Any `ALTER TABLE ... ADD|DROP|CLEAR|COMMENT|MODIFY COLUMN` statements SHALL fail\n'
'when done by a user with privilege revoke by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role, unless they have access otherwise.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterColumn_TableEngines = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterColumn.TableEngines',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter column** privilege\n'
'on tables created using the following engines\n'
'\n'
'* MergeTree\n'
'* ReplacingMergeTree\n'
'* SummingMergeTree\n'
'* AggregatingMergeTree\n'
'* CollapsingMergeTree\n'
'* VersionedCollapsingMergeTree\n'
'* GraphiteMergeTree\n'
'* ReplicatedMergeTree\n'
'* ReplicatedSummingMergeTree\n'
'* ReplicatedReplacingMergeTree\n'
'* ReplicatedAggregatingMergeTree\n'
'* ReplicatedCollapsingMergeTree\n'
'* ReplicatedVersionedCollapsingMergeTree\n'
'* ReplicatedGraphiteMergeTree\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterIndex = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterIndex',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter index** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ORDER BY | ADD|DROP|MATERIALIZE|CLEAR INDEX` statements SHALL\n'
'return an error, unless the user has the **alter index** privilege for\n'
'the destination table either because of the explicit grant or through one of\n'
'the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterIndex_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterIndex.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter index** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterIndex_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterIndex.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **alter index** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterIndex_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterIndex.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **alter index** privilege\n'
'on a specified cluster to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ORDER BY | ADD|DROP|MATERIALIZE|CLEAR INDEX`\n'
'statements SHALL succeed only on nodes where the table exists and privilege was granted.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterIndex_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterIndex.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter index** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
'with a `GRANT OPTION` clause. User with **grant option** privilege SHALL be able to\n'
'change access to the **alter index** privilege by another user or role\n'
'on the same or smaller scope that they have access to.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterIndex_GrantOption_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterIndex.GrantOption.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'granting **alter index** privilege to other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... ORDER BY | ADD|DROP|MATERIALIZE|CLEAR INDEX` statements SHALL\n'
'succeed when done by a user with privilege granted by a user with\n'
'`GRANT OPTION`, either directly or through an assigned role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterIndex_GrantOption_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterIndex.GrantOption.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'revoking **alter index** privilege from other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... ORDER BY | ADD|DROP|MATERIALIZE|CLEAR INDEX` statements\n'
'SHALL fail when done by a user with privilege revoke by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role, unless they have access otherwise.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterIndex_TableEngines = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterIndex.TableEngines',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter index** privilege\n'
'on tables created using the following engines\n'
'\n'
'* MergeTree\n'
'* ReplacingMergeTree\n'
'* SummingMergeTree\n'
'* AggregatingMergeTree\n'
'* CollapsingMergeTree\n'
'* VersionedCollapsingMergeTree\n'
'* GraphiteMergeTree\n'
'* ReplicatedMergeTree\n'
'* ReplicatedSummingMergeTree\n'
'* ReplicatedReplacingMergeTree\n'
'* ReplicatedAggregatingMergeTree\n'
'* ReplicatedCollapsingMergeTree\n'
'* ReplicatedVersionedCollapsingMergeTree\n'
'* ReplicatedGraphiteMergeTree\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterConstraint = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterConstraint',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter constraint** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ADD|DROP CONSTRAINT` statements SHALL\n'
'return an error, unless the user has the **alter constraint** privilege for\n'
'the destination table either because of the explicit grant or through one of\n'
'the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterConstraint_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterConstraint.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter constraint** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterConstraint_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterConstraint.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **alter constraint** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterConstraint_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterConstraint.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **alter constraint** privilege\n'
'on a specified cluster to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ADD|DROP CONSTRAINT`\n'
'statements SHALL succeed only on nodes where the table exists and privilege was granted.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterConstraint_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterConstraint.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter constraint** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
'with a `GRANT OPTION` clause. User with **grant option** privilege SHALL be able to\n'
'change access to the **alter constraint** privilege by another user or role\n'
'on the same or smaller scope that they have access to.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterConstraint_GrantOption_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterConstraint.GrantOption.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'granting **alter constraint** privilege to other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... ADD|DROP CONSTRAINT` statements SHALL\n'
'succeed when done by a user with privilege granted by a user with\n'
'`GRANT OPTION`, either directly or through an assigned role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterConstraint_GrantOption_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterConstraint.GrantOption.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'revoking **alter constraint** privilege from other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... ADD|DROP CONSTRAINT` statements\n'
'SHALL fail when done by a user with privilege revoke by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role, unless they have access otherwise.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterConstraint_TableEngines = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterConstraint.TableEngines',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter constraint** privilege\n'
'on tables created using the following engines\n'
'\n'
'* MergeTree\n'
'* ReplacingMergeTree\n'
'* SummingMergeTree\n'
'* AggregatingMergeTree\n'
'* CollapsingMergeTree\n'
'* VersionedCollapsingMergeTree\n'
'* GraphiteMergeTree\n'
'* ReplicatedMergeTree\n'
'* ReplicatedSummingMergeTree\n'
'* ReplicatedReplacingMergeTree\n'
'* ReplicatedAggregatingMergeTree\n'
'* ReplicatedCollapsingMergeTree\n'
'* ReplicatedVersionedCollapsingMergeTree\n'
'* ReplicatedGraphiteMergeTree\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterTTL = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterTTL',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter ttl** or **alter materialize ttl** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ALTER TTL | ALTER MATERIALIZE TTL` statements SHALL\n'
'return an error, unless the user has the **alter ttl** or **alter materialize ttl** privilege for\n'
'the destination table either because of the explicit grant or through one of\n'
'the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterTTL_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterTTL.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter ttl** or **alter materialize ttl** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterTTL_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterTTL.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **alter ttl** or **alter materialize ttl** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterTTL_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterTTL.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **alter ttl** or **alter materialize ttl** privilege\n'
'on a specified cluster to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... ALTER TTL | ALTER MATERIALIZE TTL`\n'
'statements SHALL succeed only on nodes where the table exists and privilege was granted.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterTTL_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterTTL.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter ttl** or **alter materialize ttl** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
'with a `GRANT OPTION` clause. User with **grant option** privilege SHALL be able to\n'
'change access to the **alter ttl** or **alter materialize ttl** privilege by another user or role\n'
'on the same or smaller scope that they have access to.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterTTL_GrantOption_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterTTL.GrantOption.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'granting **alter ttl** or **alter materialize ttl** privilege to other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... ALTER TTL | ALTER MATERIALIZE TTL` statements SHALL\n'
'succeed when done by a user with privilege granted by a user with\n'
'`GRANT OPTION`, either directly or through an assigned role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterTTL_GrantOption_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterTTL.GrantOption.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'revoking **alter ttl** or **alter materialize ttl** privilege from other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... ALTER TTL | ALTER MATERIALIZE TTL` statements\n'
'SHALL fail when done by a user with privilege revoke by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role, unless they have access otherwise.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterTTL_TableEngines = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterTTL.TableEngines',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter ttl** or **alter materialize ttl** privilege\n'
'on tables created using the following engines\n'
'\n'
'* MergeTree\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterSettings = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterSettings',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter settings** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... MODIFY SETTING setting` statements SHALL\n'
'return an error, unless the user has the **alter settings** privilege for\n'
'the destination table either because of the explicit grant or through one of\n'
'the roles assigned to the user. The **alter settings** privilege allows\n'
'modifying table engine settings. It doesnt affect settings or server configuration parameters.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterSettings_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterSettings.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter settings** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterSettings_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterSettings.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support revoking **alter settings** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterSettings_Cluster = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterSettings.Cluster',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **alter settings** privilege\n'
'on a specified cluster to one or more **users** or **roles**.\n'
'Any `ALTER TABLE ... MODIFY SETTING setting`\n'
'statements SHALL succeed only on nodes where the table exists and privilege was granted.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterSettings_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterSettings.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting **alter settings** privilege\n'
'for a database or a specific table to one or more **users** or **roles**\n'
'with a `GRANT OPTION` clause. User with **grant option** privilege SHALL be able to\n'
'change access to the **alter settings** privilege by another user or role\n'
'on the same or smaller scope that they have access to.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterSettings_GrantOption_Grant = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterSettings.GrantOption.Grant',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'granting **alter settings** privilege to other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... MODIFY SETTING setting` statements SHALL\n'
'succeed when done by a user with privilege granted by a user with\n'
'`GRANT OPTION`, either directly or through an assigned role.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterSettings_GrantOption_Revoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterSettings.GrantOption.Revoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support a user with **grant option** privilege\n'
'revoking **alter settings** privilege from other **users** or **roles** on the same\n'
'or smaller scope that they have access to.\n'
'Any `ALTER TABLE ... MODIFY SETTING setting` statements\n'
'SHALL fail when done by a user with privilege revoke by a user with `GRANT OPTION`,\n'
'either directly or through an assigned role, unless they have access otherwise.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AlterSettings_TableEngines = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AlterSettings.TableEngines',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support controlling access to the **alter settings** privilege\n'
'on tables created using the following engines\n'
'\n'
'* MergeTree\n'
'* ReplacingMergeTree\n'
'* SummingMergeTree\n'
'* AggregatingMergeTree\n'
'* CollapsingMergeTree\n'
'* VersionedCollapsingMergeTree\n'
'* GraphiteMergeTree\n'
'* ReplicatedMergeTree\n'
'* ReplicatedSummingMergeTree\n'
'* ReplicatedReplacingMergeTree\n'
'* ReplicatedAggregatingMergeTree\n'
'* ReplicatedCollapsingMergeTree\n'
'* ReplicatedVersionedCollapsingMergeTree\n'
'* ReplicatedGraphiteMergeTree\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Delete = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Delete',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **delete** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Alter = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **alter** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Create = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **create** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_Drop = Requirement(
name='RQ.SRS-006.RBAC.Privileges.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **drop** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_All = Requirement(
name='RQ.SRS-006.RBAC.Privileges.All',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL include in the **all** privilege the same rights\n'
'as provided by **usage**, **select**, **select columns**,\n'
'**insert**, **delete**, **alter**, **create**, and **drop** privileges.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_All_GrantRevoke = Requirement(
name='RQ.SRS-006.RBAC.Privileges.All.GrantRevoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **all** privileges\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_GrantOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.GrantOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **grant option** privilege\n'
'for a database or a specific table to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_Privileges_AdminOption = Requirement(
name='RQ.SRS-006.RBAC.Privileges.AdminOption',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL support granting or revoking **admin option** privilege\n'
'to one or more **users** or **roles**.\n'
),
link=None
)
RQ_SRS_006_RBAC_RequiredPrivileges_Create = Requirement(
name='RQ.SRS-006.RBAC.RequiredPrivileges.Create',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL not allow any `CREATE` statements\n'
'to be executed unless the user has the **create** privilege for the destination database\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_RequiredPrivileges_Alter = Requirement(
name='RQ.SRS-006.RBAC.RequiredPrivileges.Alter',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL not allow any `ALTER` statements\n'
'to be executed unless the user has the **alter** privilege for the destination table\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_RequiredPrivileges_Drop = Requirement(
name='RQ.SRS-006.RBAC.RequiredPrivileges.Drop',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL not allow any `DROP` statements\n'
'to be executed unless the user has the **drop** privilege for the destination database\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_RequiredPrivileges_Drop_Table = Requirement(
name='RQ.SRS-006.RBAC.RequiredPrivileges.Drop.Table',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL not allow any `DROP TABLE` statements\n'
'to be executed unless the user has the **drop** privilege for the destination database or the table\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_RequiredPrivileges_GrantRevoke = Requirement(
name='RQ.SRS-006.RBAC.RequiredPrivileges.GrantRevoke',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL not allow any `GRANT` or `REVOKE` statements\n'
'to be executed unless the user has the **grant option** privilege\n'
'for the privilege of the destination table\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_RequiredPrivileges_Use = Requirement(
name='RQ.SRS-006.RBAC.RequiredPrivileges.Use',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL not allow the `USE` statement to be executed\n'
'unless the user has at least one of the privileges for the database\n'
'or the table inside that database\n'
'either because of the explicit grant or through one of the roles assigned to the user.\n'
),
link=None
)
RQ_SRS_006_RBAC_RequiredPrivileges_Admin = Requirement(
name='RQ.SRS-006.RBAC.RequiredPrivileges.Admin',
version='1.0',
priority=None,
group=None,
type=None,
uid=None,
description=(
'[ClickHouse] SHALL not allow any of the following statements\n'
'\n'
'* `SYSTEM`\n'
'* `SHOW`\n'
'* `ATTACH`\n'
'* `CHECK TABLE`\n'
'* `DESCRIBE TABLE`\n'
'* `DETACH`\n'
'* `EXISTS`\n'
'* `KILL QUERY`\n'
'* `KILL MUTATION`\n'
'* `OPTIMIZE`\n'
'* `RENAME`\n'
'* `TRUNCATE`\n'
'\n'
'to be executed unless the user has the **admin option** privilege\n'
'through one of the roles with **admin option** privilege assigned to the user.\n'
),
link=None
)