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

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


    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.13.z
    • 4.11, 4.10, 4.9.0, 4.8.0
    • Management Console
    • None
    • No
    • False
    • Hide



      This is a clone of issue OCPBUGS-6767. The following is the description of the original issue:

      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:


      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

            jcaiani@redhat.com Joseph Caiani
            openshift-crt-jira-prow OpenShift Prow Bot
            YaDan Pei YaDan Pei
            0 Vote for this issue
            6 Start watching this issue