forked from nexr/kyuubi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI apache#4504] [Authz] [Bug] Fix source table privilege require…
…ment when querying permanent view in Spark 3.1 and below ### _Why are the changes needed?_ To fix apache#4504. - add ut for querying the second column of permenant view with multi-column source table (in purpose for reproducing cases for Spark 3.1 and below) - make user RuleAuthorization check only once, by marking `KYUUBI_AUTHZ_TAG` tag on plan's children and itself , to prevent penetration checks to source table of perm view ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request Closes apache#4529 from bowenliang123/4504-authz-permview. Closes apache#4504 b5f9bed [liangbowen] minor update 3efba2d [liangbowen] update ut and policy a7584d9 [liangbowen] update c0c1155 [liangbowen] update ee208d7 [liangbowen] update 3c7804e [liangbowen] fix ut 5ab0d1a [liangbowen] check RuleAuthorization run only once Authored-by: liangbowen <liangbowen@gf.com.cn> Signed-off-by: liangbowen <liangbowen@gf.com.cn>
- Loading branch information
1 parent
04155f2
commit 7709cd1
Showing
3 changed files
with
125 additions
and
19 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