Skip to content

Commit

Permalink
Updated to new endpoint for IBM Cloud (#397)
Browse files Browse the repository at this point in the history
* Updated to new endpoint for IBM Cloud

Taken from https://cloud.ibm.com/apidocs/codeengine#get-kubeconfig
The IAM is now pointing to long term one, and also updated the
additional information in the POST

* Update ibmclouduserkey.go

Rollback to the original options.
  • Loading branch information
jjasghar authored Apr 15, 2022
1 parent 3b1cd65 commit 4954086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/ibmclouduserkey/ibmclouduserkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result

if verify {
payload := strings.NewReader(`apikey=` + resMatch + `&grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey`)
req, err := http.NewRequestWithContext(ctx, "POST", "https://iam.ng.bluemix.net/identity/token", payload)
req, err := http.NewRequestWithContext(ctx, "POST", "https://iam.cloud.ibm.com/identity/token", payload)
if err != nil {
continue
}
Expand Down

0 comments on commit 4954086

Please sign in to comment.