Skip to content

Commit

Permalink
Merge pull request #24506 from timstclair/ssh
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

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. I accidentally leaked my key this way when posting e2e test logs.
  • Loading branch information
k8s-merge-robot committed Apr 20, 2016
2 parents 28f968a + df42b98 commit 4c9bbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,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
}
Expand Down

1 comment on commit 4c9bbea

@k8s-teamcity-mesosphere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 21936 outcome was FAILURE
Summary: Tests failed: 1, passed: 0 Build time: 00:19:13

Failed tests

null: Kubernetes e2e suite.BeforeSuite: <no details avaliable>

Please sign in to comment.