Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't output malformed credentials in error message (#11599)
If the JSON credentials are unable to be properly parsed, the error message will output those very credentials _in plain text_ to the console. This is obviously a serious security concern for any CI systems running Terraform that may produce this error. There's really no reason to output the "this string is what we can't parse" in the error message. The `err` is sufficient enough. The user can inspect their own JSON credentials file. I'm sure this can be done a better way, maybe by outputting it to the debug logs; however, this is a quick and easy fix to remove the security concern from this issue immediately while a better solution can be found.
- Loading branch information