teststructure.SaveEc2KeyPair
exposes the private key in the log output
#1135
Labels
enhancement
New feature or request
teststructure.SaveEc2KeyPair exposes the private key in the log output when it logs the marshaled JSON data. This creates a security risk to my project since it is open source and has its pipeline logs exposed publicly. Even though the key pair and the instance that it is attached to only exist for a few minutes it is still a risk.
Suggested Fixes:
logger.Use()
that would let me switch to thelogger.Discard
logger while I run the function call, then switch back.logger.Logf(t, "Marshalled JSON: %s", string(bytes))
fromsave_test_data.go::SaveTestData()
Visual aids (this is a key pair that has since been deleted)

The text was updated successfully, but these errors were encountered: