stash-jenkins-postreceive-webhook icon indicating copy to clipboard operation
stash-jenkins-postreceive-webhook copied to clipboard

Switch from deprecated HttpClient API and allow Client Certs for Jenkins

Open pdodds opened this issue 9 years ago • 6 comments

We have hit a requirement to secure the Jenkins instance behind client certificates.

For this rather than getting the key material provided by the form it is probably easier to allow that a keystore is provided from the environment in which Stash is running.

This allows the Stash admin to provide a key in a Java keystore and then present that key when we connect to the Jenkins instance.

If you are up for it I'm happy to add more documentation on the approach to the readme

pdodds avatar Jul 02 '15 21:07 pdodds

I love the approach, it adds credibility to the plugin.

anandsterlite avatar Jul 16 '15 18:07 anandsterlite

I'm sorry I didn't get back to comment on this pull request. My only hesitation in merging this right now is that only 10% of the Stash instances using the plugin are using the 3.10.x version that's being referenced in your updated POM. As much as I'd like to use this, I don't want to leave everyone else behind.

I don't recall at what point the Stash codebase was updated to allow our own version of HttpClient to be used, but I know that was an issue for a while. Do you have any ideas on that?

mikesir87 avatar Jul 16 '15 19:07 mikesir87

The Stash codebase was updated in 3.9.2 to support the new HttpClient

https://jira.atlassian.com/browse/STASH-2970

I know it is a tricky once since we needed to support these requirements for PCI compliance within our build infrastructure.

pdodds avatar Jul 20 '15 11:07 pdodds

Should there be any updates to the documentation to go along with it?

matthewbarr avatar Jul 20 '15 16:07 matthewbarr

I have updated the plugin to use the stash-config.properties rather than environment variables and also updated the README

pdodds avatar Jul 20 '15 19:07 pdodds

Sorry for the long delay here. How about this approach? With the upcoming Stash 4.0 release, it gives me a good chance to basically rework the codebase and have a cutpoint. With Stash 4.0, I'd like to release version 3.0 of this plugin, where I definitely want this to be included.

Are you ok with holding out that long?

mikesir87 avatar Aug 13 '15 02:08 mikesir87