Skip to content

Commit

Permalink
Merge pull request #2 from OUCHUNYU/patch-1
Browse files Browse the repository at this point in the history
fix incorrectly formatted key in apiCaller method
  • Loading branch information
denverdino authored Jul 10, 2019
2 parents c26d356 + f5e5cc3 commit 7ba49e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func apiCaller(AccessKeyID, AccessKeySecret, SecurityToken, clusterID string) (s
queryStr := "SignatureVersion=" + stsSignVersion
queryStr += "&Format=" + respBodyFormat
queryStr += "&Timestamp=" + url.QueryEscape(time.Now().UTC().Format(timeFormat))
queryStr += "&AccessKgo get github.com/prometheus/client_golang/prometheuseyId=" + AccessKeyID
queryStr += "&AccessKeyId=" + AccessKeyID
queryStr += "&SignatureMethod=HMAC-SHA1"
queryStr += "&Version=" + stsAPIVersion
queryStr += "&SignatureNonce=" + uuid.NewV4().String()
Expand Down

0 comments on commit 7ba49e6

Please sign in to comment.