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

EnvInjectPluginAction::buildEnvVars() injects masks instead of passwords to the environment

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • EnvInject version 1.91 and version 1.91.1

      I created a local and global password.
      In a shell step the password can be used successfully.
      In the next build step of my build I have the Gradle plugin, the password arrives as asterisks.

      As a work-around I have switched to use the MaskPassword plugin.

      Test Script build.gradle:

      task showGlobalEnv << {
      println '\''Test match:'\'' + (System.env.TEST_ENV == 'T123')
      System.env.TEST_ENV.each

      { println it }

      }

      Output from version 1.90 (successful):
      Test match:true
      T
      1
      2
      3

      Output from version 1.91 (failure):
      Test match:false
      *
      *
      *
      *
      *
      *
      *
      *

          [JENKINS-27382] EnvInjectPluginAction::buildEnvVars() injects masks instead of passwords to the environment

          Marcus Collins created issue -
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-28116 [ JENKINS-28116 ]
          Aleksandr Borovkov made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Manuel Recena Soto made changes -
          Assignee Original: Gregory Boissinot [ gbois ] New: Manuel Recena Soto [ recena ]
          Manuel Recena Soto made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Summary Original: EnvInject plugin passes astrisk to Gradle plugin New: EnvInjectPluginAction::buildEnvVars() injects masks instead of passwords to the environment
          Manuel Recena Soto made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-30090 [ JENKINS-30090 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161587 ] New: JNJira + In-Review [ 196806 ]
          Stefan Wolf made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            recena Manuel Recena Soto
            mbtc Marcus Collins
            Votes:
            9 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: