Uploaded image for project: 'Observability UI'
  1. Observability UI
  2. OU-1255

Incorrect forbidden RBAC seen in "Observe > Logs" menu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • COO 1.3.0
    • logging-plugin
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • 1
    • Important
    • None
    • None
    • Sprint 285
    • None
    • None
    • None

      Description of problem:

      The forbidden message in "Observe > Logs" menu shows creation of RoleBinding instead of ClusterRoleBinding.

      RoleBinding provides access to logs of a particular namespace but to access "Observe > Logs", it is needed to create ClusterRoleBinding.

      So, forbidden error in "Observe > Logs" menu should point to "ClusterRoleBinding" and forbidden error in "Aggregated Logs" tab should show forbidden error with "RoleBinding".

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

      COO 1.3.1

      How reproducible:

      100%

      Steps to Reproduce:

      1. Setup OpenShift Logging with LokiStack (with UIPlugin from COO)
      2. Create a test user and make it a project admin
      3. Login with test user and try to access "Observe > Logs" tab
      4. RoleBinding YAML is seen in error instead of ClusterRoleBinding

      Actual results:

      The forbidden error in "Observe > Logs" tab shows YAML of RoleBinding instead of ClusterRoleBinding.

      Expected results:

      It is expected to see ClusterRoleBinding YAML for "Observe > Logs" tab.

      Additional info:

      Code seems to be parsed from below GitHub URL:

       [-] https://github.com/openshift/logging-view-plugin/blob/main/web/src/components/error-message.tsx#L23C1-L36C3 

              gbernal@redhat.com Gabriel Bernal
              rhn-support-dgautam Dhruv Gautam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: