-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](auth)fix when authentication, the permissions of multiple roles should be merged #52349
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. Please clearly describe your PR:
|
|
run buildall |
morrySnow
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.
add ut
FE UT Coverage ReportIncrement line coverage |
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 34411 ms |
TPC-DS: Total hot run time: 187728 ms |
ClickBench: Total hot run time: 29.48 s |
FE UT Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
zfr9527
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
… should be merged (apache#52349) ### What problem does this PR solve? when user1 has two role: role1 and role2 role1 has priv1 role2 has priv2 when user1 needs both priv1 and priv2 for authorization **expect behavior**: Authentication successful **Current system behavior**: the system will throw a 'Permission Denied' error." **Fix Solution**: When validating permissions via the second role, retain awareness of privileges assigned to the first role
… should be merged (apache#52349) ### What problem does this PR solve? when user1 has two role: role1 and role2 role1 has priv1 role2 has priv2 when user1 needs both priv1 and priv2 for authorization **expect behavior**: Authentication successful **Current system behavior**: the system will throw a 'Permission Denied' error." **Fix Solution**: When validating permissions via the second role, retain awareness of privileges assigned to the first role
… should be merged (apache#52349) ### What problem does this PR solve? when user1 has two role: role1 and role2 role1 has priv1 role2 has priv2 when user1 needs both priv1 and priv2 for authorization **expect behavior**: Authentication successful **Current system behavior**: the system will throw a 'Permission Denied' error." **Fix Solution**: When validating permissions via the second role, retain awareness of privileges assigned to the first role
… should be merged (apache#52349) ### What problem does this PR solve? when user1 has two role: role1 and role2 role1 has priv1 role2 has priv2 when user1 needs both priv1 and priv2 for authorization **expect behavior**: Authentication successful **Current system behavior**: the system will throw a 'Permission Denied' error." **Fix Solution**: When validating permissions via the second role, retain awareness of privileges assigned to the first role # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java # fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Role.java # fe/fe-core/src/test/java/org/apache/doris/mysql/privilege/AuthTest.java # fe/fe-core/src/test/java/org/apache/doris/utframe/TestWithFeService.java
… should be merged (apache#52349) ### What problem does this PR solve? when user1 has two role: role1 and role2 role1 has priv1 role2 has priv2 when user1 needs both priv1 and priv2 for authorization **expect behavior**: Authentication successful **Current system behavior**: the system will throw a 'Permission Denied' error." **Fix Solution**: When validating permissions via the second role, retain awareness of privileges assigned to the first role # Conflicts: # fe/fe-core/src/test/java/org/apache/doris/mysql/privilege/AuthTest.java # fe/fe-core/src/test/java/org/apache/doris/utframe/TestWithFeService.java
… should be merged (apache#52349) ### What problem does this PR solve? when user1 has two role: role1 and role2 role1 has priv1 role2 has priv2 when user1 needs both priv1 and priv2 for authorization **expect behavior**: Authentication successful **Current system behavior**: the system will throw a 'Permission Denied' error." **Fix Solution**: When validating permissions via the second role, retain awareness of privileges assigned to the first role # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Role.java # fe/fe-core/src/test/java/org/apache/doris/mysql/privilege/AuthTest.java # fe/fe-core/src/test/java/org/apache/doris/utframe/TestWithFeService.java
… should be merged (apache#52349) ### What problem does this PR solve? when user1 has two role: role1 and role2 role1 has priv1 role2 has priv2 when user1 needs both priv1 and priv2 for authorization **expect behavior**: Authentication successful **Current system behavior**: the system will throw a 'Permission Denied' error." **Fix Solution**: When validating permissions via the second role, retain awareness of privileges assigned to the first role # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java # fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Role.java # fe/fe-core/src/test/java/org/apache/doris/mysql/privilege/AuthTest.java # fe/fe-core/src/test/java/org/apache/doris/utframe/TestWithFeService.java
What problem does this PR solve?
when user1 has two role: role1 and role2
role1 has priv1
role2 has priv2
when user1 needs both priv1 and priv2 for authorization
expect behavior:
Authentication successful
Current system behavior:
the system will throw a 'Permission Denied' error."
Fix Solution:
When validating permissions via the second role, retain awareness of privileges assigned to the first role
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)