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

accessTokenInactivityTimeoutSeconds used in oauthclient-inactivity-timeout is immutable

XMLWordPrintable

    • Low
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      accessTokenInactivityTimeoutSeconds used in oauthclient-inactivity-timeout is immutable
      
      The rule depends on all Timeouts being set, however the defaults console, openshift-browser-client, openshift-challenging-client, openshift-cli-client rely on OAuth/cluster spec.tokenConfig.accessTokenInactivityTimeout to be set instead.

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

      4.14, 4.15

      How reproducible:

      Each time

      Steps to Reproduce:

          1. Install the Compliance Operator
          2. Setup OCP4 DISA STIG
          3. Run the scan
          4. Check ocp4-disa-stig-oauthclient-inactivity-timeout     
      
      It won't pass, and the remediation steps won't fix as the oauthclient field it depends on is immuttable.

      Actual results:

      FAIL

      Expected results:

      PASS with remediation steps in OAuth Cluster

      Additional info:

          oc explain OAuthClient.accessTokenInactivityTimeoutSeconds
      GROUP:      oauth.openshift.io
      KIND:       OAuthClient
      VERSION:    v1FIELD: accessTokenInactivityTimeoutSeconds <integer>DESCRIPTION:
          AccessTokenInactivityTimeoutSeconds overrides the default token inactivity
      ....
          
          WARNING: existing tokens' timeout will not be affected (lowered) by changing
          this value
      
      

      https://github.com/ComplianceAsCode/content/blob/master/applications/openshift/authentication/oauthclient_inactivity_timeout/policy/stig/shared.yml

      https://github.com/ComplianceAsCode/content/blob/master/applications/openshift/authentication/oauthclient_inactivity_timeout/rule.yml

       

            wsato@redhat.com Watson Sato
            pbastide_rh Paul Bastide
            Xiaojie Yuan Xiaojie Yuan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: