Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow SELECT * when using RBAC and Row level Filters #10958

Open
volfco opened this issue May 16, 2020 · 0 comments
Open

Allow SELECT * when using RBAC and Row level Filters #10958

volfco opened this issue May 16, 2020 · 0 comments
Assignees
Labels
comp-rbac Access control related feature

Comments

@volfco
Copy link

volfco commented May 16, 2020

When running SELECT * FROM queryMetrics as a restricted user (Clickhouse 20.4.2.9) that has a limited SELECT GRANT, you get the following error:

Code: 497. DB::Exception: Received from 127.0.0.1:9000. DB::Exception: dyn_testing: Not enough privileges. To execute this query it's necessary to have the grant SELECT(Timestamp, Remote, QType, QName, Buffer, Cached, Datacenter, Server, IsTcp, DomainName, RecordName, DomainID) ON default.queryMetrics. 

I'm using the following GRANT statement:

GRANT SELECT(Cached, Timestamp, QType, QName, Datacenter, DomainName, RecordName, DomainID) ON default.queryMetrics ON CLUSTER metrics TO dyn_testing WITH GRANT OPTION;

What I would like to see, is that the wildcard doesn't return with an error, but selects everything the user has access to. The only time an error would occur is if the restricted user tries to query a column they don't have permissions for.

This way the user doesn't need to manually specify the fields, and the database doesn't leak the fact that the user is not seeing all the columns in the table.

@volfco volfco added the feature label May 16, 2020
@filimonov filimonov added the comp-rbac Access control related label May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-rbac Access control related feature
Projects
None yet
Development

No branches or pull requests

3 participants