Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-26172

[2173574] "Attach existing sysprep" should not try to get resource at cluster scope when logged in with regular user

XMLWordPrintable

    • Medium
    • None

      +++ This bug was initially created as a clone of Bug #2168861 +++

      Description of problem:
      "Attach existing sysprep" should not try to get resource at cluster scope when logged in with regular user, it should try to get resource from current project or projects he owned.

      Version-Release number of selected component (if applicable):
      v4.12.0

      How reproducible:

      Steps to Reproduce:
      1. login with regular user, like "test"
      2. create vm from catalog and move to vm scripts tab
      3. try to attach existing sysprep

      Actual results:
      An error is showing ```configmaps is forbidden: User "test" cannot list resource "configmaps" in API group "" at the cluster scope```

      Expected results:
      It loads configmaps from current project or the projects he can list resources.

      Additional info:
      Similar bug: https://bugzilla.redhat.com/show_bug.cgi?id=2168859

      — Additional comment from errata-xmlrpc on 2023-02-22 05:31:19 UTC —

      This bug has been added to advisory RHEA-2022:101182 by CPaaS, owned by Greg Allen (contra-dev/pipeline@REDHAT.COM)

              upalatuc@redhat.com Ugo Palatucci
              upalatuc@redhat.com Ugo Palatucci
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: