-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[enhance](auth)when assigning permissions, the current user must have corresponding permissions #32825
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
TPC-H: Total hot run time: 38365 ms
|
TPC-DS: Total hot run time: 181897 ms
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
run buildall |
run buildall |
TPC-H: Total hot run time: 37734 ms
|
TPC-DS: Total hot run time: 181526 ms
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
run buildall |
TPC-H: Total hot run time: 38578 ms
|
run buildall |
TPC-H: Total hot run time: 38211 ms
|
TPC-DS: Total hot run time: 182241 ms
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
fe/fe-core/src/main/java/org/apache/doris/analysis/GrantStmt.java
Outdated
Show resolved
Hide resolved
run buildall |
TPC-H: Total hot run time: 37426 ms
|
TPC-DS: Total hot run time: 181650 ms
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
run buildall |
TPC-H: Total hot run time: 38071 ms
|
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
… corresponding permissions (apache#32825) When authorizing other users or roles, not only need `grant_priv`, also need the priv want to grant for example : The user executes the following SQL ``` grant select_priv,load_priv on db1.table1 to u1; ``` he need have grant_priv, select_priv and load_priv on db1.table1 ``` grant usage_priv on resource r1 to u1; ``` he need to have grant_priv and usage_priv on u1
… corresponding permissions (#32825) (#33948) bp #32825 Co-authored-by: zhangdong <[email protected]>
Proposed changes
Issue Number: close #xxx
When authorizing other users or roles, not only need
grant_priv
, also need the priv want to grantfor example :
The user executes the following SQL
he need have grant_priv, select_priv and load_priv on db1.table1
he need to have grant_priv and usage_priv on u1
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...