Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User permission issues in multi-cluster management #4345

Open
sigboom opened this issue Nov 20, 2024 · 2 comments
Open

User permission issues in multi-cluster management #4345

sigboom opened this issue Nov 20, 2024 · 2 comments
Labels
area/multicluster kind/bug Categorizes issue or PR as related to a bug.

Comments

@sigboom
Copy link
Contributor

sigboom commented Nov 20, 2024

Describe the bug
When the user role is "platform-regular" and the user is granted any permissions in the enterprise space, if there is a second cluster within a single enterprise space, the user cannot normally access projects under the second enterprise space.
image
Versions used(KubeSphere/Kubernetes)
KubeSphere: v4.1.2

Environment
aliyun ACK

@sigboom sigboom added the kind/bug Categorizes issue or PR as related to a bug. label Nov 20, 2024
@sigboom
Copy link
Contributor Author

sigboom commented Nov 20, 2024

/area multicluster

@sigboom
Copy link
Contributor Author

sigboom commented Nov 20, 2024

Mount the user template on a new platform that allows users to solve the issues above.

apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
  name: global-get-workspace
spec:
  rules:
    - apiGroups:
        - '*'
      resources:
        - workspaces
      verbs:
        - get
    - apiGroups:
        - 'resources.kubesphere.io'
      resources:
        - '*'
      verbs:
        - get
        - list
        - watch
    - apiGroups:
        - 'iam.kubesphere.io'
      resources:
        - namespacemembers
        - roles
      verbs:
        - get
        - list
        - watch
    - apiGroups:
      - '*'
      resources:
        - pods/exec
      verbs:
        - '*'
    - apiGroups:
      - 'apps'
      resources:
        - deployments
        - statefulsets
        - daemonsets
        - replicasets
      verbs:
        - get
        - list
        - watch
    - apiGroups:
      - ''
      resources:
        - events
        - limitranges
      verbs:
        - get
        - list
        - watch
    - apiGroups:
        - ''
      resources:
        - pods
        - namespaces
        - pods/log
        - configmaps
        - services
        - endpoints
        - persistentvolumeclaims
      verbs:
        - get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/multicluster kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants