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

Unable to use masked passwords when passing in extra-vars

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
    • Environment:
      Jenkins Version: 1.623
      Ansible Plugin: 0.3.1
      envinject: 1.91.4
      mask-passwords: 2.7.4

      OS:3.4.83-70.111.amzn1.x86_64
      Ansible Version: 1.9.2
    • Similar Issues:

      Description

      I am unable to pass in a masked password as a variable via --extra-vars. I have tried using the EnvInject plugin and the Masked Password plugin to create the variable PASSWORD.

      I then pass it in via

      --etxra-vars="my_password=${PASSWORD}"
      

      When I debug the ansible playbook instead of my_password being the masked value it is "*******".

      It looks like the plugin does not attempt to unmask the variable before passing it to the playbook.

        Attachments

          Activity

          lucasweb Richard Lucas created issue -
          lucasweb Richard Lucas made changes -
          Field Original Value New Value
          Description I am unable to pass in a masked password as a variable via --extra-vars. I have tried using the EnvInject plugin and the Masked Password plugin to create the variable PASSWORD.

          I then pass it in via --etxra-vars="my_password=${PASSWORD}"

          When I debug the ansible playbook instead of my_password being the masked value it is "*******".

          It looks like the plugin does not attempt to unmask the variable before passing it to the playbook.
          I am unable to pass in a masked password as a variable via --extra-vars. I have tried using the EnvInject plugin and the Masked Password plugin to create the variable PASSWORD.

          I then pass it in via
          {noformat}
          --etxra-vars="my_password=${PASSWORD}"
          {noformat}

          When I debug the ansible playbook instead of my_password being the masked value it is "*******".

          It looks like the plugin does not attempt to unmask the variable before passing it to the playbook.
          johanlorenzo Johan Lorenzo made changes -
          Component/s envinject-plugin [ 15893 ]
          Component/s ansible-plugin [ 20624 ]
          johanlorenzo Johan Lorenzo made changes -
          Labels regression
          sirot Jean-Christophe Sirot made changes -
          Component/s ansible-plugin [ 20624 ]
          sirot Jean-Christophe Sirot made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 164940 ] JNJira + In-Review [ 197582 ]

            People

            • Assignee:
              sirot Jean-Christophe Sirot
              Reporter:
              lucasweb Richard Lucas
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: