Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34173

DescribableModel rejects PasswordParameterValue due to use of Secret

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • structs-plugin
    • Jenkins ver. 1.650
      Pipeline plugin 2.0

      When trying to generate a snippet to build a job which has a password parameter through the pipeline plugin it refuses to generate the snippet.

      in the jenkins.log an error is logged:

      Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.util.Secret
      at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:177)
      at org.jenkinsci.plugins.structs.describable.DescribableModel.<init>(DescribableModel.java:105)
      at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:158)
      at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      at org.jenkinsci.plugins.workflow.steps.StepDescriptor.defineArguments(StepDescriptor.java:114)
      at org.jenkinsci.plugins.workflow.cps.Snippetizer.object2Groovy(Snippetizer.java:68)
      at org.jenkinsci.plugins.workflow.cps.Snippetizer.doGenerateSnippet(Snippetizer.java:218)
      ... 78 more

          [JENKINS-34173] DescribableModel rejects PasswordParameterValue due to use of Secret

          Jan Collijs created issue -
          rsandell made changes -
          Component/s New: workflow-plugin [ 18820 ]
          Component/s Original: pipeline-utility-steps-plugin [ 21135 ]
          Assignee Original: rsandell [ rsandell ] New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Epic Link New: JENKINS-35393 [ 171186 ]

          Jesse Glick added a comment -

          Currently there is no special binding for Secret. Probably it would be safe enough to create one, since there is already a SecretPickle that allows it to be serialized to program.dat encrypted, though there could be a window of vulnerability when the program is extracting the plaintext from something like an environment variable.

          Jesse Glick added a comment - Currently there is no special binding for Secret . Probably it would be safe enough to create one, since there is already a SecretPickle that allows it to be serialized to program.dat encrypted, though there could be a window of vulnerability when the program is extracting the plaintext from something like an environment variable.
          Jesse Glick made changes -
          Component/s New: structs-plugin [ 21442 ]
          Component/s Original: workflow-plugin [ 18820 ]
          Labels Original: plugin New: workflow
          Summary Original: Pipeline snippet generator - build job with password parameter New: DescribableModel rejects PasswordParameterValue due to use of Secret
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170225 ] New: JNJira + In-Review [ 183816 ]
          Andrew Bayer made changes -
          Labels Original: workflow New: pipeline workflow
          Andrew Bayer made changes -
          Labels Original: pipeline workflow New: pipeline
          Daniel Spilker made changes -
          Link New: This issue blocks JENKINS-57435 [ JENKINS-57435 ]
          Daniel Spilker made changes -
          Link New: This issue blocks JENKINS-54345 [ JENKINS-54345 ]

            jglick Jesse Glick
            visibilityspots Jan Collijs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: