• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Jenkins ver. 1.651.3.1
      Credentials 2.1.4
      Pipeline 2.1

      If a password have some especial characters it is nor mask

      Steps to reproduce

      1. create a credential with password
        \!|"@·#$%&¬/()≠=?¿'`+*´¨{.,;:-_<>}ªº
        

        and ID ID-NOT-MASK

      2. Create a Pipeline Job with this Pipeline Script
        stage 'test'
        
        node(){
            withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID-NOT-MASK', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME']]) {
                sh 'echo $USERNAME $PASSWORD'
            }
        }
        
      3. Run the job and you will see the password on console output

          [JENKINS-36566] If password have some characters it is not mask

          Jesse Glick added a comment -

          What is file.encoding on this machine? Pending JENKINS-31096 the Pipeline log may not be in UTF-8 so if some of those characters are not representable they may not be masked.

          Jesse Glick added a comment - What is file.encoding on this machine? Pending JENKINS-31096 the Pipeline log may not be in UTF-8 so if some of those characters are not representable they may not be masked.

          I tested it on a machine with encoding UTF-8

          LC_CTYPE=UTF-8

          Ivan Fernandez Calvo added a comment - I tested it on a machine with encoding UTF-8 LC_CTYPE=UTF-8

          Jesse Glick added a comment -

          Was not able to reproduce in a functional test after a quick attempt.

          Jesse Glick added a comment - Was not able to reproduce in a functional test after a quick attempt.

          Jesse Glick added a comment -

          Likely a duplicate; cannot verify without knowing how to reproduce from scratch.

          Jesse Glick added a comment - Likely a duplicate; cannot verify without knowing how to reproduce from scratch.

            jglick Jesse Glick
            ifernandezcalvo Ivan Fernandez Calvo
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: