RBAC Manager 简化 K8s 授权的 Operator开源项目

我要开发同款
匿名用户2021年08月06日
35阅读
所属分类Google Go、云计算、PaaS系统/容器
授权协议Apache

作品详情

RBACManager是一个使用自定义资源对RBAC进行声明式配置的Operator,它的目标是简化Kubernetes的授权,减少授权所需的配置量,使其更易扩展。例如,有如下两个原生的RoleBinding配置清单:

kind: RoleBindingapiVersion: rbac.authorization.k8s.io/v1metadata:  name: joe-web  namespace: websubjects:- kind: User  name: joe@example.comroleRef:  kind: ClusterRole  name: edit  apiGroup: rbac.authorization.k8s.iokind: RoleBindingapiVersion: rbac.authorization.k8s.io/v1metadata:  name: joe-api  namespace: apisubjects:- kind: User  name: joe@example.comroleRef:  kind: ClusterRole  name: view  apiGroup: rbac.authorization.k8s.io

使用RBACManager后只需一个自定义资源即可实现相同的授权:

apiVersion: rbacmanager.reactiveops.io/v1beta1kind: RBACDefinitionmetadata:  name: joe-accessrbacBindings:  - name: joe    subjects:      - kind: User        name: joe@example.com    roleBindings:      - namespace: api        clusterRole: view      - namespace: web        clusterRole: edit
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论