[enhance](auth)Optimize the authentication logic of Ranger Doris#41207
Merged
morrySnow merged 24 commits intoapache:masterfrom Oct 11, 2024
Merged
[enhance](auth)Optimize the authentication logic of Ranger Doris#41207morrySnow merged 24 commits intoapache:masterfrom
morrySnow merged 24 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Contributor
Author
|
run buildall |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 41256 ms |
TPC-DS: Total hot run time: 191880 ms |
ClickBench: Total hot run time: 32.92 s |
morningman
reviewed
Oct 8, 2024
|
|
||
| public class RangerDorisAccessController extends RangerAccessController { | ||
| private static final Logger LOG = LogManager.getLogger(RangerDorisAccessController.class); | ||
| // ranger must set name, we agreed that this name must be used |
Contributor
There was a problem hiding this comment.
What does mean "we agreed"?
Contributor
Author
There was a problem hiding this comment.
ranger ui上必须填一个name,但是全局的权限其实不需要name,因此需要约定一个name,然后校验全局权限的时候拿这个name校验
.../java/org/apache/doris/catalog/authorizer/ranger/hive/RangerHiveAccessControllerFactory.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/ranger/RangerAccessController.java
Show resolved
Hide resolved
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 41207 ms |
TPC-DS: Total hot run time: 192433 ms |
ClickBench: Total hot run time: 32.04 s |
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
morrySnow
approved these changes
Oct 11, 2024
morrySnow
pushed a commit
that referenced
this pull request
Nov 1, 2024
morningman
pushed a commit
to morningman/ranger
that referenced
this pull request
Dec 30, 2024
yiguolei
pushed a commit
that referenced
this pull request
Dec 31, 2024
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
selectto avoid traversing all permission items within the rangerranger ui: morningman/ranger#1
performance testing:
Each time the ranger authentication method is called, it takes less than 1ms,
If the user has global/db/table permissions, querying a large wide table takes approximately 1ms.
If the user only has partial column query permission, it will take approximately 80ms to query 50 columns