You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
Currently I am studying custom resource . The basic RBAC is not enough,I couldn't implement feature such like “ Every User only sees the resource the User has access to.”
For example, user can only list the resource which they created.
But I notice that this problem have been solved in this project :
A Space is a non-persistent, virtual resource that represents exactly one Kubernetes namespace. Spaces have the following characteristics:
Every User only sees the Spaces the User has access to.
So I ask you for help. How to implement ? Thank you for your help.
The text was updated successfully, but these errors were encountered:
@zeusro Hello! Kiosk is not a solution to filter any arbitrary cluster scoped resource, rather kiosk divides users by the namespaces they have access to and introduces a new resource "spaces" that represents all namespaces a user is allowed to see. To give a user access to a namespace, you just need to create a new RoleBinding that gives him the right the view the namespace:
apiVersion: rbac.authorization.k8s.io/v1# This role binding allows "jane" to read pods in the "default" namespace.kind: RoleBindingmetadata:
name: rbac-role-binding-role-bindingsubjects:
# You can specify more than one "subject"
- kind: Username: jane # "name" is case sensitiveapiGroup: rbac.authorization.k8s.ioroleRef:
# "roleRef" specifies the binding to a Role / ClusterRolekind: Role # this must be Role or ClusterRole# this must match the name of the Role or ClusterRole you wish to bind toname: rbac-role-binding-roleapiGroup: rbac.authorization.k8s.io
I hope this explains a little what the purpose of kiosk is.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently I am studying custom resource . The basic RBAC is not enough,I couldn't implement feature such like “ Every User only sees the resource the User has access to.”
For example, user can only list the resource which they created.
But I notice that this problem have been solved in this project :
So I ask you for help. How to implement ? Thank you for your help.
The text was updated successfully, but these errors were encountered: