config: Don't log the private key on error in rsadecrypt
This commit is contained in:
parent
a914ee3371
commit
c811440188
|
@ -1698,7 +1698,7 @@ func interpolationFuncRsaDecrypt() ast.Function {
|
||||||
|
|
||||||
b, err := base64.StdEncoding.DecodeString(s)
|
b, err := base64.StdEncoding.DecodeString(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("Failed to decode input %q: cipher text must be base64-encoded", key)
|
return "", fmt.Errorf("Failed to decode input %q: cipher text must be base64-encoded", s)
|
||||||
}
|
}
|
||||||
|
|
||||||
block, _ := pem.Decode([]byte(key))
|
block, _ := pem.Decode([]byte(key))
|
||||||
|
|
Loading…
Reference in New Issue