-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
stash-branch-parameters-plugin, https://github.com/jenkinsci/stash-branch-parameters-plugin, automatic distribute new jenkins instacnes
Hey *
It would be great if the StashBranchParameters would support to manage the configurations part using an API or the Jenkins-CLI.
This is our problem:
We’d like to distribute new Jenkins Instances automatically. This includes everything from spawning a new server to finish the configuration.
The plugin¹ uses hudson.util.Secret to store the given credentials from the WebUI to the .xml file located in $JENKINS_HOME/org.jenkinsci.plugins.StashBranchParameter.StashBranchParameterDefinition.xml. Secret uses a master.key² which is unique for each system to store the password encrypted/hashed in the xml file. Since we don’t want to have to add the password value in the WebUI for every new instance, we basically have two options to get the plugin to do it’s job:
- Copy the secrets and always use the same (which is really bad in terms of security and might break other stuff)
or
- Having the ability to set (at least) the password value using an API or the Jenkins CLI.
We heavily prefer the second way, but the plugin does not support this, yet. Could you please add this?
If you need further informations, let me know.
Cheers
Jan
¹: Which has to be noted is the first Jenkins plugin I checked, which does the credentials handling appropriate. Props for that!
²: http://xn--thibaud-dya.fr/jenkins_credentials.html