opa demo:开放政策代理演示 源码
opa-demo 如何在开放式策略代理中使用基于角色的访问控制(RBAC)。 请参阅。 创建RBAC策略 package rbac.authz # user-role assignments user_roles := { " design_group_kpi_editor " : [ " kpi_editor_design " , " viewer_limit_ds " ], " system_group_kpi_editor " : [ " kpi_editor_system " , " viewer_limit_ds " ], " manufacture_group_kpi_editor " : [ " kpi_editor_manufacture " , " viewer " ], " project_leader " : [ " viewer_limit_ds
文件列表
opa-demo-main.zip
(预估有个9文件)
opa-demo-main
.gitignore
269B
main.go
1KB
README.md
6KB
main_test.go
2KB
LICENSE
1KB
go.mod
98B
example.rego
3KB
go.sum
42KB
example_test.rego
3KB
暂无评论