-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Enhancement] Support column access privilege for Ranger #47702
Conversation
aab12dd
to
8603f5d
Compare
Signed-off-by: HangyuanLiu <460660596@qq.com>
Quality Gate passedIssues Measures |
[FE Incremental Coverage Report]❌ fail : 73 / 142 (51.41%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
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,but I don't think run the whole optimization process is a good design
@@ -141,7 +141,6 @@ | |||
"label": "StarRocks View", | |||
"description": "StarRocks View", | |||
"accessTypeRestrictions": [ | |||
"select", |
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.
table needs to delete select
@@ -147,6 +147,18 @@ public void checkAnyActionOnAnyTable(UserIdentity currentUser, Set<Long> roleIds | |||
throw new AccessDeniedException(); | |||
} | |||
|
|||
@Override | |||
public void checkColumnsAction(UserIdentity currentUser, Set<Long> roleIds, TableName tableName, |
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.
public void checkColumnsAction(UserIdentity currentUser, Set<Long> roleIds, TableName tableName, | |
public void checkColumnAction(UserIdentity currentUser, Set<Long> roleIds, TableName tableName, |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
✅ Backports have been created
|
✅ Backports have been created
|
Signed-off-by: HangyuanLiu <460660596@qq.com> (cherry picked from commit ba567ce) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AuthorizerStmtVisitor.java
Signed-off-by: HangyuanLiu <460660596@qq.com> (cherry picked from commit ba567ce) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/privilege/AccessController.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/Authorizer.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AuthorizerStmtVisitor.java # fe/fe-core/src/test/java/com/starrocks/sql/analyzer/PrivilegeCheckerTest.java
Signed-off-by: HangyuanLiu <460660596@qq.com> (cherry picked from commit ba567ce) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AuthorizerStmtVisitor.java
Signed-off-by: HangyuanLiu <460660596@qq.com> (cherry picked from commit ba567ce) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/privilege/AccessController.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/Authorizer.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AuthorizerStmtVisitor.java # fe/fe-core/src/test/java/com/starrocks/sql/analyzer/PrivilegeCheckerTest.java
Signed-off-by: HangyuanLiu <460660596@qq.com> (cherry picked from commit ba567ce) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/privilege/AccessController.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/Authorizer.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AuthorizerStmtVisitor.java # fe/fe-core/src/test/java/com/starrocks/sql/analyzer/PrivilegeCheckerTest.java
Signed-off-by: HangyuanLiu <460660596@qq.com> (cherry picked from commit ba567ce) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/privilege/AccessController.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/Authorizer.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AuthorizerStmtVisitor.java # fe/fe-core/src/test/java/com/starrocks/sql/analyzer/PrivilegeCheckerTest.java
Signed-off-by: HangyuanLiu <460660596@qq.com> (cherry picked from commit ba567ce) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AuthorizerStmtVisitor.java
Why I'm doing:
What I'm doing:
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: