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

Allow for passing of secrets to startup scripts

      It would be great to be able to pass secrets to the VM startups scripts.

          [JENKINS-41381] Allow for passing of secrets to startup scripts

          Azure DevOps added a comment -

          mmitche could give more details about this request?

          Azure DevOps added a comment - mmitche could give more details about this request?

          Nick Jones added a comment -

          I'm not sure if this is what mmitche intended, but in my case I'd find it very valuable to be able to bind existing Jenkins credentials (aka "secrets" – username/password, secret text, etc.) and use them within the initialization scripts. For example, when I provision my Windows agents, I need to establish a NuGet source that requires a username and password, and currently that password must be hard-coded into every initialization script field (for each template that needs it).

          Nick Jones added a comment - I'm not sure if this is what mmitche intended, but in my case I'd find it very valuable to be able to bind existing Jenkins credentials (aka "secrets" – username/password, secret text, etc.) and use them within the initialization scripts. For example, when I provision my Windows agents, I need to establish a NuGet source that requires a username and password, and currently that password must be hard-coded into every initialization script field (for each template that needs it).

          Henti Smith added a comment -

          We use "azure-vm-agents-plugin" against stock images on Azure and currently have to place private SSH keys in our init script which is not ideal. I would much prefer to use the Jenkins credentials store to store the data and reference it as a variable in my "Initialization Script".

          Henti Smith added a comment - We use "azure-vm-agents-plugin" against stock images on Azure and currently have to place private SSH keys in our init script which is not ideal. I would much prefer to use the Jenkins credentials store to store the data and reference it as a variable in my "Initialization Script".

          Tim Jacomb added a comment -

          All issues have been transferred to GitHub.

          See https://github.com/jenkinsci/azure-vm-agents-plugin/issues

          Search the issue title to find it.

          (This is a bulk comment and can't link to the specific issue)

          Tim Jacomb added a comment - All issues have been transferred to GitHub. See https://github.com/jenkinsci/azure-vm-agents-plugin/issues Search the issue title to find it. (This is a bulk comment and can't link to the specific issue)

            zackliu Chenyang Liu
            mmitche Matthew Mitchell
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: