Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-6767

Regression: OpenShift Console no-longer filters SecretList when displaying ServiceAccount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done-Errata
    • Normal
    • 4.12.0
    • 4.11, 4.10, 4.9.0, 4.8.0
    • Management Console
    • None
    • -
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      OpenShift Console does not filter the SecretList when displaying the ServiceAccount details page
      
      When reviewing the details page of an OpenShift ServiceAccount, at the bottom of the page there is a SecretsList which is intended to display all of the relevant Secrets that are attached to the ServiceAccount.
      
      In OpenShift 4.8.X, this SecretList only displayed the relevant Secrets. In OpenShift 4.9+ the SecretList now displays all Secrets within the entire Namespace.
      
      

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

      4.8.57 < Most recent release without issue
      4.9.0 < First release with issue 
      4.10.46 < Issue is still present

      How reproducible:

      Everytime
      
      

      Steps to Reproduce:

      1. Deploy a cluster with OpenShift 4.8.57 
            (or replace the OpenShift Console image with `sha256:9dd115a91a4261311c44489011decda81584e1d32982533bf69acf3f53e17540` )
      2. Access the ServiceAccounts Page ( User Management -> ServiceAccounts)
      3. Click a ServiceAccount to display the Details page
      4. Scroll down and review the Secrets section
      5. Repeat steps with an OpenShift 4.9 release 
         (or check using image `sha256:fc07081f337a51f1ab957205e096f68e1ceb6a5b57536ea6fc7fbcea0aaaece0` )
      

      Actual results:

      All Secrets in the Namespace are displayed
      

      Expected results:

      Only Secrets associated with the ServiceAccount are displayed
      

      Additional info:

      Lightly reviewing the code, the following links might be a good start:
      - https://github.com/openshift/console/blob/master/frontend/public/components/secret.jsx#L126
      - https://github.com/openshift/console/blob/master/frontend/public/components/service-account.jsx#L151:L151
      

      Attachments

        Issue Links

          Activity

            People

              cajieh Cyril Ajieh
              rhn-support-mwasher Michael Washer
              Xiyun Zhao Xiyun Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: