weaveworks / weave-gitops-enterprise

This repo provides the enterprise level features for the weave-gitops product, including CAPI cluster creation and team workspaces.
https://docs.gitops.weave.works/
Apache License 2.0
160 stars 30 forks source link

[UI] A tenant can not view application deployment details #1684

Open saeedfazal opened 2 years ago

saeedfazal commented 2 years ago

UI doesn't show the application deployment details for a tenant in details page.

Tenant definition:

tenants:
  - name: test-team
    namespaces:
    - test-kustomization
    - test-system
    teamRBAC:
      groupNames: 
      - wge-test
      rules:
      - apiGroups: [""]
        resources: ["secrets", "pods", "services" ]
        verbs: [ "get", "list" ]
      - apiGroups: ["apps"]
        resources: [ "deployments", "replicasets"]
        verbs: [ "get", "list" ]
      - apiGroups: ["kustomize.toolkit.fluxcd.io"]
        resources: [ "kustomizations" ]
        verbs: [ "get", "list", "patch" ]
      - apiGroups: ["helm.toolkit.fluxcd.io"]
        resources: [ "helmreleases" ]
        verbs: [ "get", "list", "patch" ]
      - apiGroups: ["source.toolkit.fluxcd.io"]
        resources: [ "buckets", "helmcharts", "gitrepositories", "helmrepositories", "ocirepositories" ]
        verbs: [ "get", "list", "patch" ] 
      - apiGroups: [""]
        resources: ["events"]
        verbs: ["get", "watch", "list"]
      - apiGroups: ["autoscaling"]
        resources: ["horizontalpodautoscalers"]
        verbs: ["get", "watch", "list"]
      - apiGroups: ["infra.contrib.fluxcd.io"]
        resources: ["terraforms"]
        verbs: ["get", "watch", "list", "patch"]     
      - apiGroups: [""]
        resources: ["configmaps"]
        verbs: ["get", "list", "watch"]       
      - apiGroups: ["gitops.weave.works"]
        resources: ["gitopsclusters"]
        verbs: ["get", "watch", "list"]

Tenant application View:Screenshot 2022-10-12 at 09.54.51.png

Tenant detail View:Screenshot 2022-10-12 at 09.42.45.png

Admin detail view:Screenshot 2022-10-12 at 09.43.34.png

squaremo commented 1 year ago

I interpret this as: given the tenant RBAC, you would expect to see the resources that are applied by the Kustomization, in the "Application Detail" page, when logged in as a user in the tenant group. Is that right @saeedfazal?