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

use cannot delete UserOAuthAccessToken objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.18
    • apiserver-auth
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

       we document user owned token deletion here: 
      
      https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html-single/authentication_and_authorization/index#oauth-delete-tokens_managing-oauth-access-tokens
      
      deletion via useroauthaccesstokens.oauth.openshift.io api does not work, calls return internal server error:
      
      Error from server (InternalError): Internal error occurred: Internal error occurred: converting (oauth.OAuthAccessToken) to (v1.UserOAuthAccessToken): unknown conversion
      deletion via useroauthaccesstokens.oauth.openshift.io api works. 
      
      

       

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

          4.18.18

      How reproducible:

          everytime 

      Steps to Reproduce:

          1. oc delete useroauthaccesstokens.oauth.openshift.io sha256~t6g1SfYwC2eHPSLZZSqi_9z53PNOSLzd6xf1fRIf86g 
        

      Actual results:

      Error from server (InternalError): Internal error occurred: Internal error occurred: converting (oauth.OAuthAccessToken) to (v1.UserOAuthAccessToken): unknown conversion    

      Expected results:

          useroauthaccesstoken.oauth.openshift.io "sha256~t6g1SfYwC2eHPSLZZSqi_9z53PNOSLzd6xf1fRIf86g" deleted

      Additional info:

          

              Unassigned Unassigned
              rhn-support-hcetiner Hasan Cetiner
              None
              None
              Xingxing Xia Xingxing Xia
              None
              Cisco - Waas Confidential Group, Red Hat Bugzilla Authorized, Sysdig Confidential Group, TSX/RH Confidential Group, Telefonica Confidential Group, Texas Instruments Confidential Group, Thales Confidential Group, Toshiba Confidential Group, Trilio Confidential Group, Unisys Confidential Group, VMware Confidential Group, VVDN Confidential Group, Veeam Confidential Group, Veritas Confidential Group, VerizonWireless Confidential Group, Wacom Confidential Group, Western Digital Confidential Group, Wind River Confidential Group, Wipro Limited Confidential Group, Wiwynn Confidential Group, Xilinx Confidential Group, Yahoo Confidential Group, ZTE Confidential Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: