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

As of SSH Credentials plugin v. 1.14 files containing ssh-keys is not supported #305

Closed
jonbrohauge opened this issue Jun 28, 2018 · 2 comments · Fixed by #306
Closed

As of SSH Credentials plugin v. 1.14 files containing ssh-keys is not supported #305

jonbrohauge opened this issue Jun 28, 2018 · 2 comments · Fixed by #306

Comments

@jonbrohauge
Copy link
Contributor

Link to plugin: https://wiki.jenkins.io/display/JENKINS/SSH+Credentials+Plugin

Reason for the need to update the example in demo/credentials:

https://jenkins.io/security/advisory/2018-06-25/#SECURITY-440

SSH Credentials Plugin no longer supports SSH credentials from files on the Jenkins master file system, neither user-specified file paths nor ~/.ssh. Existing SSH credentials of these kinds are migrated to "directly entered" SSH credentials.

I'll be submitting a PR when I have something that works.

ewelinawilkosz pushed a commit that referenced this issue Jun 29, 2018
* Add warning regarding breaking changes in example

* Update example as per comment from @oleg-nenashev
@viyh
Copy link

viyh commented Dec 4, 2018

Just came across this change. It breaks my automated Jenkins setup that I use for the many Jenkins instances that I manage across a lot of clients. It would be really nice to have at least an option to "Use ssh key from Jenkins home" which uses the default SSH key located at ~jenkins/.ssh/id_rsa without allowing the use of an arbitrary path. This way, it complies with the standard key location, and allows for automated setup of Jenkins (by creating the Jenkins user key during setup), and doesn't require me to manually paste the key into the UI each time I set up a new Jenkins instance.

@jonbrohauge
Copy link
Contributor Author

@viyh The change was introduced in the SSH plugin. I just documented the change. I suggest you file an issue at that plugin. It is also possible to write a bit of code that loads your key into an environment variable, that can be used by CASC.

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 a pull request may close this issue.

2 participants