[JIRA] (JENKINS-57863) CasC ciphers values already ciphered when running under test

4 views
Skip to first unread message

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jun 5, 2019, 12:17:02 PM6/5/19
to jenkinsc...@googlegroups.com
Ramon Leon created an issue
 
Jenkins / Bug JENKINS-57863
CasC ciphers values already ciphered when running under test
Issue Type: Bug Bug
Assignee: Ewelina Wilkosz
Attachments: GlobalCredentialsCiphered.yml
Components: configuration-as-code-plugin
Created: 2019-06-05 16:16
Environment: Jenkins 2.73.3, 2.164.1, 2.165
JCasC 1.19, 1.20-snapshot
Credentials 2.19, 2.20
Labels: jcasc-compatibility
Priority: Major Major
Reporter: Ramon Leon

Jenkins 2.73.3, 2.164.1, 2.165 when running " under test ", let's say `mvn hpi:run` or `mvn test`, ciphers the tokens even though they are ciphered in the YAML, whereas the same Jenkins running normally doesn't cipher the tokens if they are already ciphered.

When configuring with the attached yml:

If Jenkins is running normally (java -jar ...), in the viewExport page (View Configuration button) it shows:

_

{AQAAABAAAAAQ93qR7ipIm+dYmOZ1AXqSLWDj9V+KUrHew/fiyPNoHTo=}

_

The same as in the file.

But when running under test, with mvn hpi:run or running integration tests (mvn package) it shows:

usernamePassword:
_

{AQAAABAAAABA1e/z7rT6SsbMm5XmaDkHn0N8YeoHYRm8JltNZh68IZumi/SmbDrI+nH8Z51YNwSokbUbxkq85QMMe5CkEDLL+YNkXGcnAMwvSgTLLH71dlc=}

_
 
basicSSHUserPrivateKey:
_

{AQAAABAAAABAb5Y+gVJlthgpEfLXRvFmnYtPqeTnxFDzNaKpRPDhpbWw70t7h4W1jI9h5u7TEafPxk6AhWmq+BoWkzAQtKLvzYFLCUwE2xNusw5nXeKVklY=}

_
 
Even though both secrets are the same in the yaml file. Not sure if it's expected.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jun 5, 2019, 12:56:03 PM6/5/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages