Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from deprecated HttpClient API and allow Client Certs for Jenkins #130

Closed
wants to merge 7 commits into from

Conversation

pdodds
Copy link

@pdodds pdodds commented Jul 2, 2015

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

…a keystore for a Jenkins instance that is behind client certificate based authentication
@anandsterlite
Copy link

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

@mikesir87
Copy link
Contributor

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?

@pdodds
Copy link
Author

pdodds commented Jul 20, 2015

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.

@matthewbarr
Copy link

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

@pdodds
Copy link
Author

pdodds commented Jul 20, 2015

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

@mikesir87
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants