You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible to miss some grants on roles after ClickHouse restart
Does it reproduce on recent release?
Yes.
ClickHouse 21.8, 21.12
How to reproduce
DROP ROLE some_role ;
CREATE TABLE table1
(
c1 Int8,
c2 Int8,
c3 Int8,
c4 Int8,
c5 Int8
) ENGINE = MergeTree ORDER BY tuple();
CREATE TABLE table2
(
c1 Int8
) ENGINE = MergeTree ORDER BY tuple();
CREATE ROLE some_role ;
GRANT SHOW, SELECT ON default.* TO some_role;
REVOKE SELECT (c1, c2, c3, c4, c5) ON table1 FROM some_role;
Wait couple of minutes:
# cat /var/lib/clickhouse/access/roles.list
� some_role1c4d235d-1b68-2cb1-3454-4827cc0ed7b
cat /var/lib/clickhouse/access/1c4d235d-1b68-2cb1-3454-4827cc0ed7b1.sql
ATTACH ROLE some_role;
ATTACH GRANT SHOW, SELECT ON default.* TO some_role;
ATTACH REVOKE SELECT(c1, c2, c3, c4, c5) ON default.table1 FROM some_role;
vitlibar
added
bug
Confirmed user-visible misbehaviour in official release
and removed
potential bug
To be reviewed by developers and confirmed/rejected.
labels
Nov 9, 2021
Describe what's wrong
It's possible to miss some grants on roles after ClickHouse restart
Does it reproduce on recent release?
Yes.
ClickHouse 21.8, 21.12
How to reproduce
Wait couple of minutes:
Expected behavior
ClickHouse will apply grants in correct order.
Additional context
The text was updated successfully, but these errors were encountered: