Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-2708

Resource Optimization plugin returns authorization error in UI with rbac disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Blocker Blocker
    • None
    • 1.2.1
    • optimization-plugin
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Critical

      Description of the problem:

      I am encountering an authorization failure when attempting to utilize the resource optimization plugin (version 1.2.1) within RHDH 1.7.1. The functionality had previously operated correctly on this cluster. Despite having completely disabled RBAC, the issue persists for both guest and OIDC users. The same outcome is observed when RBAC is enabled, even with appropriate permissions.

      How reproducible:

      100%

      UI is providing this stack trace:

       

      Error
      Error
      
      Message
      Forbidden
      
      Stack Trace
      Error: Forbidden
          at P.fetchWithToken (https://backstage-backstage-rhdh-operator.apps.cnfdb4-cost1.qe.lab.redhat.com/api/scalprum/red-hat-developer-hub.plugin-redhat-resource-optimization/static/exposed-PluginRoot.d8a5bebd.chunk.js:1:44629)
          at async P.getRecommendationList (https://backstage-backstage-rhdh-operator.apps.cnfdb4-cost1.qe.lab.redhat.com/api/scalprum/red-hat-developer-hub.plugin-redhat-resource-optimization/static/exposed-PluginRoot.d8a5bebd.chunk.js:1:43808)
          at async https://backstage-backstage-rhdh-operator.apps.cnfdb4-cost1.qe.lab.redhat.com/api/scalprum/red-hat-developer-hub.plugin-redhat-resource-optimization/static/exposed-PluginRoot.d8a5bebd.chunk.js:1:5547 

      devtools shows

       

      Request URLhttps://backstage-backstage-rhdh-operator.apps.cnfdb4-cost1.qe.lab.redhat.com/api/proxy/cost-management/v1/recommendations/openshift?offset=0&limit=10&order_by=last_reported&order_how=descRequest MethodGETStatus Code401 UnauthorizedRemote Address10.6.105.32:443Referrer Policyno-referrer 

       

              pwadhwan@redhat.com Preeti Wadhwani
              chadcrum Chad Crum
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: