Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1 from Lohandus/master
[FIXED JENKINS-29255] Restricting secret file visibility to avoid "WARNING: UNPROTECTED PRIVATE KEY FILE!" when using as ssh key
  • Loading branch information
jglick committed Aug 6, 2015
2 parents 9fffdfa + ed3e772 commit ab732d5
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -58,6 +58,7 @@ public class FileBinding extends Binding<FileCredentials> {
secrets.chmod(/*0700*/448);
FilePath secret = dir.child(credentials.getFileName());
copy(secret, credentials);
secret.chmod(0400);
return new SingleEnvironment(secret.getRemote(), new UnbinderImpl(dirName));
}

Expand Down

0 comments on commit ab732d5

Please sign in to comment.