Skip to content

Commit

Permalink
Fix logging in rsadecrypt
Browse files Browse the repository at this point in the history
rsadecrypt logs private key when cannot base64 decode input string
  • Loading branch information
ashald committed Jun 26, 2018
1 parent a914ee3 commit bb5a433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/interpolate_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ func interpolationFuncRsaDecrypt() ast.Function {

b, err := base64.StdEncoding.DecodeString(s)
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))
Expand Down

0 comments on commit bb5a433

Please sign in to comment.