Restrict User Access Rights In ClickHouse -
i have created multiple databases in clickhouse , new user, , can restrict newly created user able access particular database.
in users.xml in 'user' (near profile, quota...) specify optional section
<allow_databases> <database>default</database> <database>test</database> </allow_databases>
if there no 'allow_databases' section - means access databases allowed.
access database 'system' allowed (because system database used process queries). user list databases , tables (using show queries or system tables), if there no access. database access limits unrelated 'readonly' settings. there no possibility provide full access 1 database , readonly access another.
Comments
Post a Comment