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

Decoded "auth" contains whitespace when create image pull secret with whitespace in password.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.16.z
    • Management Console
    • None
    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Create image pull secret with whitespace in the beginning/end of username and password, decode the auth in the '.dockerconfigjson' of the secret, it still contains whitespace in password.
          

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

      4.16.0-0.nightly-2024-07-29-134911
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1.Create image pull secret with whitespace in the beginning/end of username and password, eg: '  testuser  ','  testpassword  '
          2.Check on the secret details page, reveal values of ".dockerconfigjson", decode the value of 'auth'.
          3.
          

      Actual results:

      1. Secret is created.
      2. There is not whitespace in value for username and password. But the decoded result of 'auth' contains whitespace in password.
      $ echo 'dGVzdHVzZXI6ICB0ZXN0cGFzc3dvcmQgIA==' | base64 -d
      testuser:  testpassword  
          

      Expected results:

      1. Should not contain whitespace in password after decode auth. eg:
      testuser:testpassword
          

      Additional info:

      
          

            cajieh Cyril Ajieh
            rhn-support-yanpzhan Yanping Zhang
            YaDan Pei YaDan Pei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: