-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](auth)Only treat admin@% and root@% as system users. #50904
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
|
run buildall |
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
TPC-H: Total hot run time: 34248 ms |
TPC-DS: Total hot run time: 186927 ms |
ClickBench: Total hot run time: 29.2 s |
|
|
||
| public boolean isRootUser() { | ||
| return user.equals(Auth.ROOT_USER); | ||
| return this.equals(ROOT); |
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.
so root@192.168.0.1 cannot do anything if it has no privilege?
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.
- if only has one default user root@%, user login from 192.168.0.1,will have root priv
- if create a user root@192.168.0.1,then login from 192.168.0.1,will have no priv
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
Better update the document |
### What problem does this PR solve? not allow drop user `admin@%` but should allow drop user `admin@'xxx.xxx.xxx'` ### Release note Only treat admin@% and root@% as system users.
### What problem does this PR solve? not allow drop user `admin@%` but should allow drop user `admin@'xxx.xxx.xxx'` ### Release note Only treat admin@% and root@% as system users.
### What problem does this PR solve? not allow drop user `admin@%` but should allow drop user `admin@'xxx.xxx.xxx'` ### Release note Only treat admin@% and root@% as system users.
…pache#50904 (apache#52282) Cherry-picked from apache#50904 Co-authored-by: zhangdong <zhangdong@selectdb.com>
What problem does this PR solve?
not allow drop user
admin@%but should allow drop user
admin@'xxx.xxx.xxx'Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Only treat admin@% and root@% as system users.
Release note
Only treat admin@% and root@% as system users.
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)