[feature](auth)Implementing privilege management with rbac model (#16091)

change implement of auth to rbac

each user has one default role which can not be drop;

if you grant priv to user,it will grant to default role ,

In the current pr, the user can still only have one role other than the default role, but in the future, the user and role will be many-to-many

rename PaloRole,PaloAuth,PaloPrivilege to Role,Auth,Privilege
This commit is contained in:
zhangdong
2023-02-10 12:30:49 +08:00
committed by GitHub
parent 379bef598d
commit 8758cd412f
136 changed files with 3767 additions and 3681 deletions

View File

@ -50,8 +50,10 @@ public final class FeMetaVersion {
public static final int VERSION_114 = 114;
// change replica meta to json
public static final int VERSION_115 = 115;
// change Auto to rbac
public static final int VERSION_116 = 116;
// note: when increment meta version, should assign the latest version to VERSION_CURRENT
public static final int VERSION_CURRENT = VERSION_115;
public static final int VERSION_CURRENT = VERSION_116;
// all logs meta version should >= the minimum version, so that we could remove many if clause, for example
// if (FE_METAVERSION < VERSION_94) ...