-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](auth)fix missing authentication #33347
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 |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
run buildall |
TPC-H: Total hot run time: 38856 ms |
TPC-DS: Total hot run time: 183609 ms |
ClickBench: Total hot run time: 30.29 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
|
PR approved by at least one committer and no changes requested. |
- Modified permission prompt information: added display of which permission items are required to perform the current operation, removed prompt information for "current user" and "IP" - `AdminCopyTablet` use `PrivPredicate.ADMIN` check auth, before is `PrivPredicate.OPERATOR` - `row policy` use `PrivPredicate.GRANT` - `storage policy` keep `PrivPredicate.ADMIN` unchanged - `create/alter view` need has `select_priv` on base table - `cancel alter system` need `PrivPredicate.OPERATOR` - `drop sync materialized view` need `alter_priv` before is `drop_priv` - `SetLdapPassVar` need `admin_priv` before only `root/admin` can do - `ShowCatalogRecycleBin` use `PrivPredicate.ADMIN` - `ShowCreateRepository` use `PrivPredicate.ADMIN` - `ShowDataRepository` use `PrivPredicate.ADMIN` - `ShowEncryptKey` use `PrivPredicate.ADMIN` - `ShowPlugins` use `PrivPredicate.ADMIN` - `ShowRepositories` use `PrivPredicate.ADMIN` - `ShowSnapshot` use `PrivPredicate.ADMIN` - `ShowTabletsBelong` use `PrivPredicate.ADMIN` - `ShowTranscation` use `PrivPredicate.ADMIN` - `show create db` use `show` instead of `PrivPredicate.ALTER_CREATE_DROP` - `cancel export`,if table size >1,use `db.PrivPredicate.SELECT`,else use `table.PrivPredicate.SELECT` - `show stream load`,`table.PrivPredicate.LOAD` - `show load`,if table size >1, use `db.PrivPredicate.LOAD`,else use `table.PrivPredicate.LOAD`
fix - when label contains dbName, will loss intro by apache#27861 - show routine load for xxx.yyy can export authentication error intro by apache#33347 Note: Cases will be added uniformly in other PRs
Proposed changes
Issue Number: close #xxx
AdminCopyTabletusePrivPredicate.ADMINcheck auth, before isPrivPredicate.OPERATORrow policyusePrivPredicate.GRANTstorage policykeepPrivPredicate.ADMINunchangedcreate/alter viewneed hasselect_privon base tablecancel alter systemneedPrivPredicate.OPERATORdrop sync materialized viewneedalter_privbefore isdrop_privSetLdapPassVarneedadmin_privbefore onlyroot/admincan doShowCatalogRecycleBinusePrivPredicate.ADMINShowCreateRepositoryusePrivPredicate.ADMINShowDataRepositoryusePrivPredicate.ADMINShowEncryptKeyusePrivPredicate.ADMINShowPluginsusePrivPredicate.ADMINShowRepositoriesusePrivPredicate.ADMINShowSnapshotusePrivPredicate.ADMINShowTabletsBelongusePrivPredicate.ADMINShowTranscationusePrivPredicate.ADMINshow create dbuseshowinstead ofPrivPredicate.ALTER_CREATE_DROPcancel export,if table size >1,usedb.PrivPredicate.SELECT,else usetable.PrivPredicate.SELECTshow stream load,table.PrivPredicate.LOADshow load,if table size >1,usedb.PrivPredicate.LOAD,else usetable.PrivPredicate.LOADFurther comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...