From df42b984d4b55757deee678e20855d455bcaf600 Mon Sep 17 00:00:00 2001 From: "Tim St. Clair" Date: Tue, 19 Apr 2016 16:34:37 -0700 Subject: [PATCH] Don't log private SSH key Log files may have more inclusive permissions than private SSH keys, and as such we should not log the key, even if it looks invalid. --- pkg/ssh/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ssh/ssh.go b/pkg/ssh/ssh.go index a85bb760537bb..a19a4696fbdfe 100644 --- a/pkg/ssh/ssh.go +++ b/pkg/ssh/ssh.go @@ -233,7 +233,7 @@ func MakePrivateKeySignerFromFile(key string) (ssh.Signer, error) { func MakePrivateKeySignerFromBytes(buffer []byte) (ssh.Signer, error) { signer, err := ssh.ParsePrivateKey(buffer) if err != nil { - return nil, fmt.Errorf("error parsing SSH key %s: '%v'", buffer, err) + return nil, fmt.Errorf("error parsing SSH key: '%v'", err) } return signer, nil }