-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix change detection condition on KeeperMap read-only step
Unfortunately looking at `system.grants` to check whether specific grants have been successfully revoked in ClickHouse is not perfect. Using the system table or parsing the output or ``SHOW GRANTS FOR <user>`` makes the step more brittle, and doesn't necessarily lead to better garantees. The fix is to remove the watcher. More details: Let a user with a set of initial grants, including some ALTER statements. Doing ``REVOKE INSERT, ALTER UPDATE, ALTER DELETE ON <user> FROM <table>`` on this user creates rows in ``system.grants`` for each of the grants with ``is_partial_revoke=1``. If the user doesn't have ``ALTER`` statements in their initial grants, then after executing ``REVOKE`` the ``system.grants`` table simply has no corresponding rows.
- Loading branch information
1 parent
86b5089
commit 0a7b163
Showing
3 changed files
with
82 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters