Skip to content

Commit

Permalink
aws-kms: honor error log configuration
Browse files Browse the repository at this point in the history
This commit fixes a bug when initializing AWS-KMS.
Before, the error log was not passed to the AWS-KMS
client such that if the client would log a error message
it would always be written to the STDOUT/STDERR - regardless
what was specified in the config file.

However, this bug does not affect any (official) release
because it has been introduced by 817a824.
  • Loading branch information
Andreas Auernhammer committed Mar 31, 2020
1 parent 2d5549d commit e53e184
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kes/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func server(args []string) error {
SecretKey: config.KMS.AWS.Login.SecretKey,
SessionToken: config.KMS.AWS.Login.SessionToken,
},
ErrorLog: errorLog.Log(),
}
if err = kms.Authenticate(); err != nil {
return fmt.Errorf("Failed to connect to AWS-KMS: %v", err)
Expand Down

0 comments on commit e53e184

Please sign in to comment.