[JIRA] (JENKINS-60555) Mask Passwords Plugin not working at all

2 views
Skip to first unread message

franrobles1@hotmail.com (JIRA)

unread,
Dec 20, 2019, 6:18:05 AM12/20/19
to jenkinsc...@googlegroups.com
Francisco Robles Martin created an issue
 
Jenkins / Bug JENKINS-60555
Mask Passwords Plugin not working at all
Issue Type: Bug Bug
Assignee: Unassigned
Components: mask-passwords-plugin
Created: 2019-12-20 11:17
Labels: plugin security
Priority: Major Major
Reporter: Francisco Robles Martin

Currently using:

  • Jenkins ver. 2.194
  • Mask Passwords Plugin ver. 2.12.0

I have a pipeline job using a non stored password parameter (name: SECRET) and a password parameter (name: SECRET2), both should be masked as I configured it in the Jenkins main configuration section for this Mask Password plugin.

I am running this code:

stage("Testing secret parameters") {
    steps {
        script {
            print "SECRET: " + params.SECRET
        }
        sh """echo \"$SECRET\" \
            echo \"${SECRET}\""""
        sh '''echo \'$SECRET\' \
            echo ${SECRET}'''
    }
    
}stage("Testing secret2 parameters") {
    steps {
        script {
            print "SECRET2: " + params.SECRET2
            sh """echo \"$SECRET2\" \
            echo \"${SECRET2}\""""
            sh '''echo "$SECRET2" \
            echo "${SECRET2}"'''
        }
    }
}

It is being printed in plain text in all cases when it should be masked. Am I doing something really wrong or this plugin is not working anymore?

Thanks in advance!

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages