-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[enhance](auth)Optimize the authentication logic of Ranger Doris #41207
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
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 |
|
|
||
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does mean "we agreed"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
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 |
morningman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
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