Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-3427

Dev console uses cluster-scoped instead of namespace-scoped resource queries for filters

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Before this change the dev console used cluster scoped queries instead of namespace scoped queries for filters. This change uses the correct scope and displays an error message when the user has no permission over the current namespace resources.
    • Log Storage - Sprint 229

      Description of problem:

      When a non-admin user selects a filter from the dropdown that includes pods or containers, it uses the cluster scoped API. This leads to an error as most non-admin users won't have permission over broad set of resources

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

      OCP 4.12
      Logging 5.6

      How reproducible:

      Always

      Steps to Reproduce:

      1. Enable Console plugin
      2. Create test projects using normal user
      3. Login to Openshift console as a normal user
      4. Switch to Developer mode
      5. Go to 'Aggregated logs' in 'Observe' menu
      6. In the filter Dropdown select "Pods" and click on "Filter by pod"

      Actual results:

      Error if the user does not have cluster-scoped list pods permission

      Expected results:

      No error when the user has namespace-scoped permissions to list pods

       

            [LOG-3427] Dev console uses cluster-scoped instead of namespace-scoped resource queries for filters

            Gabriel Bernal created issue -
            Gabriel Bernal made changes -
            Link New: This issue clones LOG-3397 [ LOG-3397 ]
            Gabriel Bernal made changes -
            Assignee Original: Periklis Tsirakidis [ ptsiraki@redhat.com ] New: Gabriel Bernal [ gbernal@redhat.com ]
            Gabriel Bernal made changes -
            Reporter Original: Giriyamma Karagere Ramaswamy [ gkarager ] New: Gabriel Bernal [ gbernal@redhat.com ]
            Gabriel Bernal made changes -
            Status Original: To Do [ 10020 ] New: Code Review [ 14434 ]
            Gabriel Bernal made changes -
            Link Original: This issue clones LOG-3397 [ LOG-3397 ]
            Gabriel Bernal made changes -
            Description Original: h4. Description of problem:

            When a non-admin user adds Severity filter, the Aggregated Logs page shows "parse error at line 1, col 113: syntax error: unexpected STRING"
            h4. Version-Release number of selected component (if applicable):

            OCP 4.12
            Logging 5.6
            h4. How reproducible:

            Always
            h4. Steps to Reproduce:
             # Enable Console plugin
             # Create test projects using normal user
             # Login to Openshift console as a normal user
             # Switch to Developer mode
             # Go to 'Aggregated logs' in 'Observe' menu
             # select a severity from the drop down 

            h4. Actual results:

            !image-2022-12-08-16-33-40-591.png!
            h4. Expected results:

            No error

             
            New: h4. Description of problem:

            When a non-admin user selects a filter from the dropdown that includes pods or containers, it uses the cluster scoped API. This leads to an error as most non admin users won't have permission over this resources
            h4. Version-Release number of selected component (if applicable):

            OCP 4.12
            Logging 5.6
            h4. How reproducible:

            Always
            h4. Steps to Reproduce:
             # Enable Console plugin
             # Create test projects using normal user
             # Login to Openshift console as a normal user
             # Switch to Developer mode
             # Go to 'Aggregated logs' in 'Observe' menu
             # In the filter Dropdown select "Pods" and click on "Filter by pod"

            h4. Actual results:

            Error if the user does not have cluster-scoped list pods permission
            h4. Expected results:

            No error when the user has namespace-scoped permissions to list pods

             
            DPTP Bot made changes -
            Remote Link New: This issue links to "openshift/logging-view-plugin#46: Use namespace scoped api to fetch dev console resources (Web Link)" [ 1094086 ]
            Gabriel Bernal made changes -
            Description Original: h4. Description of problem:

            When a non-admin user selects a filter from the dropdown that includes pods or containers, it uses the cluster scoped API. This leads to an error as most non admin users won't have permission over this resources
            h4. Version-Release number of selected component (if applicable):

            OCP 4.12
            Logging 5.6
            h4. How reproducible:

            Always
            h4. Steps to Reproduce:
             # Enable Console plugin
             # Create test projects using normal user
             # Login to Openshift console as a normal user
             # Switch to Developer mode
             # Go to 'Aggregated logs' in 'Observe' menu
             # In the filter Dropdown select "Pods" and click on "Filter by pod"

            h4. Actual results:

            Error if the user does not have cluster-scoped list pods permission
            h4. Expected results:

            No error when the user has namespace-scoped permissions to list pods

             
            New: h4. Description of problem:

            When a non-admin user selects a filter from the dropdown that includes pods or containers, it uses the cluster scoped API. This leads to an error as most non-admin users won't have permission over broad set of resources
            h4. Version-Release number of selected component (if applicable):

            OCP 4.12
            Logging 5.6
            h4. How reproducible:

            Always
            h4. Steps to Reproduce:
             # Enable Console plugin
             # Create test projects using normal user
             # Login to Openshift console as a normal user
             # Switch to Developer mode
             # Go to 'Aggregated logs' in 'Observe' menu
             # In the filter Dropdown select "Pods" and click on "Filter by pod"

            h4. Actual results:

            Error if the user does not have cluster-scoped list pods permission
            h4. Expected results:

            No error when the user has namespace-scoped permissions to list pods

             
            Periklis Tsirakidis made changes -
            Sprint New: Log Storage - Sprint 229 [ 49157 ]
            Periklis Tsirakidis made changes -
            Rank New: Ranked higher
            GitLab CEE Bot made changes -
            Remote Link New: This issue links to "Merge request - Updated US source to: 9e2b3b2 Merge pull request #46 from jgbernalp/use-namespace-scoped-api-dev-console (Web Link)" [ 1099660 ]
            GitLab CEE Bot made changes -
            Remote Link New: This issue links to "Merge request - Updated 2 upstream sources (Web Link)" [ 1100316 ]
            Periklis Tsirakidis made changes -
            Status Original: Code Review [ 14434 ] New: Review [ 12422 ]
            GitLab CEE Bot made changes -
            Remote Link New: This issue links to "Merge request - Updated 2 upstream sources (Web Link)" [ 1101400 ]
            Giriyamma Karagere Ramaswamy (Inactive) made changes -
            Attachment New: image-2022-12-19-17-39-31-218.png [ 12796972 ]
            Giriyamma Karagere Ramaswamy (Inactive) made changes -
            Status Original: Review [ 12422 ] New: In Progress [ 10018 ]
            DPTP Bot made changes -
            Remote Link New: This issue links to "openshift/logging-view-plugin#48: Handle resource request errors (Web Link)" [ 1105319 ]
            Gabriel Bernal made changes -
            Status Original: In Progress [ 10018 ] New: Code Review [ 14434 ]
            GitLab CEE Bot made changes -
            Remote Link New: This issue links to "Merge request - Updated 2 upstream sources (Web Link)" [ 1105725 ]
            GitLab CEE Bot made changes -
            Remote Link New: This issue links to "Merge request - Updated US source to: b6cd028 Merge pull request #48 from jgbernalp/handle-resource-fetch-errors (Web Link)" [ 1106150 ]
            GitLab CEE Bot made changes -
            Remote Link New: This issue links to "Merge request - Updated US source to: b6cd028 Merge pull request #48 from jgbernalp/handle-resource-fetch-errors (Web Link)" [ 1105793 ]
            Gabriel Bernal made changes -
            Status Original: Code Review [ 14434 ] New: Review [ 12422 ]
            Giriyamma Karagere Ramaswamy (Inactive) made changes -
            QE Status Original: NEW [ 11052 ] New: VERIFIED [ 11055 ]
            Giriyamma Karagere Ramaswamy (Inactive) made changes -
            Resolution New: Fixed [ 11101 ]
            Status Original: Review [ 12422 ] New: Closed [ 6 ]
            Giriyamma Karagere Ramaswamy (Inactive) made changes -
            QA Contact New: Giriyamma K R [ gkarager ]
            Periklis Tsirakidis made changes -
            Component/s New: Log Console [ 12368501 ]
            Component/s Original: Log Storage [ 12334141 ]
            Amol Dongare made changes -
            Workflow Original: OJA-WF-Y [ 22352585 ] New: RH1-WF-Q [ 22727812 ]
            Gabriel Bernal made changes -
            Release Note Text New: Before this change the dev console used cluster scoped queries instead of namespace scoped queries for filters. This change uses the correct scope and displays an error message when the user has no permission over the current namespace resources.

              gbernal@redhat.com Gabriel Bernal
              gbernal@redhat.com Gabriel Bernal
              Giriyamma Karagere Ramaswamy Giriyamma Karagere Ramaswamy (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: