Uploaded image for project: 'Cluster Observability Operator'
  1. Cluster Observability Operator
  2. COO-288

DevConsole metrics forbidden when login as general user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.4.0
    • None
    • korrel8r
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Log in Dev console as a general user , Metrics are forbidden when navigated from Dev-Console->observe->logs->metrics

      https://console-openshift-console.apps.anlimag16.qemag.azure.devcluster.openshift.com/monitoring/query-browser?query0=%7Bnamespace%3D%22app2-testuser-1%22%2Cpod%3D%22centos-logtest-p4vtb%22%7D

      Same query can return value using observe->metrics-custom Query

      Step to reproduce:

      1. deploy coo and enable LoggingUI Plugin TroubeShootPannel Plugin.

      2. create projects, alert and assign roles o general user.

      echo "# grant ${user_name} view logs/alerts to ${user_namespace}"
      oc -n ${user_namespace} policy add-role-to-user view ${user_name}
      oc -n ${user_namespace} policy add-role-to-user cluster-logging-application-view ${user_name}
      oc -n ${user_namespace} policy add-role-to-user monitoring-rules-edit ${user_name}
      oc -n ${user_namespace} policy add-role-to-user cluster-monitoring-view  ${user_name}
      

      3. View Logs, metrics, alert in dev-console as general user
      Result: The general user can view logs, alert and metrics

      4. Click the metrics link in log record.

      Actual result:

      Metrics are forbidden when navigated from Dev-Console->observe->logs->metrics

        1. create-infra-app-logs-alerts.sh
          3 kB
        2. screenshot-2.png
          screenshot-2.png
          23 kB
        3. screenshot-3.png
          screenshot-3.png
          70 kB
        4. screenshot-4.png
          screenshot-4.png
          22 kB

            gbernal@redhat.com Gabriel Bernal
            rhn-support-anli Anping Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: