[JIRA] (JENKINS-58845) Jenkins Docker Desktop git ssh temporary credentials file bad permissions

1 view
Skip to first unread message

fabian.kopatschek@yahoo.de (JIRA)

unread,
Aug 7, 2019, 7:34:02 AM8/7/19
to jenkinsc...@googlegroups.com
Fabian Kopatschek created an issue
 
Jenkins / Bug JENKINS-58845
Jenkins Docker Desktop git ssh temporary credentials file bad permissions
Issue Type: Bug Bug
Assignee: Unassigned
Components: credentials-binding-plugin
Created: 2019-08-07 11:33
Environment: Windows 10 + Docker Desktop
jenkins/jenkins docker image
Priority: Minor Minor
Reporter: Fabian Kopatschek

Hi,

i have the following error message when trying to access my gitlab server via ssh from my jenkins:

 

stdout: 
stderr: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for '/var/jenkins_home/caches/git-0aa16db65c903d3ced737f801b217112@tmp/jenkins-gitclient-ssh2425211278542515051.key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/var/jenkins_home/caches/git-0aa16db65c903d3ced737f801b217112@tmp/jenkins-gitclient-ssh2425211278542515051.key": bad permissions
Permission denied (publickey).
fatal: Could not read from remote repository.

My environment is the following:

Host System: Windows 10

Docker Desktop 2.1.0 with Linux based containers

Jenkins Docker Container: jenkins/jenkins and jenkins/jenkins:lts

 

I've a similar setup running with a linux for Docker and there isn't the same problem.

For testing purposes i've installed the latest beta version (3.0.0-beta10) of the "git client plugin" as suggestet in the comment of https://issues.jenkins-ci.org/browse/JENKINS-53933. But this didn't solve the problem.

I'm not sure if the credentials-binding-plugin is the right component for this.

It seems that other people have the same problem. e.g. The comment at the bottom of https://wiki.jenkins.io/display/JENKINS/SSH+Credentials+Plugin .

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages