mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #24506 from timstclair/ssh
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.
This commit is contained in:
commit
4c9bbea0cf
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user