改进:model资源支持rbac认证,需要打开enable_rbac选项,默认关闭。非model资源还不支持

This commit is contained in:
Qiu Jian
2018-10-27 14:34:09 +08:00
parent 93ddd2b26f
commit d0fef591f1
23 changed files with 1097 additions and 74 deletions
+8
View File
@@ -0,0 +1,8 @@
# rbac for normal user, not allow for delete
is_admin: false
policy:
*:
*:
*: allow
create: deny
delete: deny
+7
View File
@@ -0,0 +1,7 @@
# rbac for project owner, not allow for delete
condition: roles.contains("project_owner")
is_admin: false
policy:
*:
*:
*: allow
+5
View File
@@ -0,0 +1,5 @@
# rbac for sysadmin
condition: tenant=="system" && roles.contains("admin")
is_admin: true
policy:
*: allow