• 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

          Ivan Fernandez Calvo created issue -
          Stephen Connolly made changes -
          Component/s New: credentials-binding-plugin [ 18129 ]
          Component/s Original: credentials-plugin [ 16523 ]
          Stephen Connolly made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ] New: Jesse Glick [ jglick ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173279 ] New: JNJira + In-Review [ 185039 ]
          Jesse Glick made changes -
          Description Original: If a password have some especial characters it is nor mask

          Steps to reproduce
          # create a credential with password \!|"@·#$%&¬/()≠=?¿'`+*´¨{.,;:-_<>}ªº and ID ID-NOT-MASK
          # Create a Pipeline Job with this Pipeline Script
          {code:java}
          stage 'test'

          node(){
              withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID-NOT-MASK', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME']]) {
                  sh 'echo $USERNAME $PASSWORD'
              }
          }
          {code}
          # Run the job and you will see the password on console output
          New: If a password have some especial characters it is nor mask

          Steps to reproduce
          # create a credential with password
          {code:none}
          \!|"@·#$%&¬/()≠=?¿'`+*´¨{.,;:-_<>}ªº
          {code} and ID {{ID-NOT-MASK}}
          # Create a Pipeline Job with this Pipeline Script
          {code:java}
          stage 'test'

          node(){
              withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID-NOT-MASK', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME']]) {
                  sh 'echo $USERNAME $PASSWORD'
              }
          }
          {code}
          # Run the job and you will see the password on console output
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-31096 [ JENKINS-31096 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: