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

SSH-private key is incorrectly base64 encoded through OpenShift dashboard

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • No
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      SSH-private key is incorrectly base64 encoded through OpenShift dashboard
      
      

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

      4.13.1
      
      

      How reproducible:

      Always
      
      

      Steps to Reproduce:

      1. In the OpenShift pipeline to clone github private repo please provide ssh-private key in SSH private key space.
      2. When pipeline is triggered it failed to clone with permission issue.The ssh private key is stored in git-credentials secret.
      3. Using oc cli if i try to check secret git-credentials manually i could see base64 encoded value of ssh private key is incorrect.If i correct the base64 encoded value using oc edit and retrigger pipeline then git clone works well.
      

      Actual results:

      Git clone is failing due to incorrect base64 encoded value generated for ssh private key through OpenShift console.
      
      

      Expected results:

      Base64 encoded value should be correct for git clone from private git repository to work well.
      
      

      Additional info:

      Not sure but it seems to be some bug in console since edit secret git-credentials manually using oc edit  with base64 encoded value it works well and git clone is successfull from private git repo.
      I will attach screenshot of issue.
      
      One more issue i could see is ssh-private key is not accepted in dashboard with tickmark and it gives error Error "Required value" for field "data[ssh-privatekey]".
      So if i edit ssh private key one alpabhet and revert back changes then tickmark works well and base64 encoded is generated but with incorrect value.
      

              jakumar jaivardhan Kumar
              rhn-support-mapandey Manish Pandey
              None
              None
              Sanket Pathak Sanket Pathak
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: