IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
341 stars 670 forks source link

[EN] Error is seen during EN KMS & COS integration when private endpoint is set in CBR rule context for schematics. #5525

Closed Ak-sky closed 2 months ago

Ak-sky commented 3 months ago

Community Note

Terraform CLI and Terraform IBM Provider Version

Terraform Version v1.6 Terraform IBM Provider Version v1.67.1

Affected Resource(s)

Terraform Configuration Files

This EN FScloud example is failing during integration. Setting up the visibility as private in provider is also not working.

2024/07/23 13:17:16 Terraform apply | "Result": { 2024/07/23 13:17:16 Terraform apply | "errors": [ 2024/07/23 13:17:16 Terraform apply | { 2024/07/23 13:17:16 Terraform apply | "code": "authorization_error", 2024/07/23 13:17:16 Terraform apply | "message": "Unfortunately you don't have a permission to access requested resource", 2024/07/23 13:17:16 Terraform apply | "more_info": "https://cloud.ibm.com/apidocs/event-notifications#event-notifications-api-authentication" 2024/07/23 13:17:16 Terraform apply | } 2024/07/23 13:17:16 Terraform apply | ], 2024/07/23 13:17:16 Terraform apply | "status_code": 403, 2024/07/23 13:17:16 Terraform apply | "trace": "5f79a128-b1ea-4cb6-8a9d-ef76e9d7b53c" 2024/07/23 13:17:16 Terraform apply | }, 2024/07/23 13:17:16 Terraform apply | "RawResult": null

CBR rules

image

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.

Debug Output

Panic Output

Expected Behavior

KMS & COS integrations should have worked without any issues.

Actual Behavior

KMS & COS integrations are failing

Steps to Reproduce

  1. terraform apply

Important Factoids

References

Divya-Singh1693 commented 3 months ago

@Ak-sky

I have tried following scenario for testing. I have setup CBR for testing for control plane API's

Screenshot 2024-07-25 at 1 04 46 PM

My applied plan went successfully.

Screenshot 2024-07-25 at 1 06 50 PM Screenshot 2024-07-25 at 2 15 13 PM Screenshot 2024-07-25 at 2 16 07 PM

The other API's are working over private, seems like issue is with integration

Divya-Singh1693 commented 3 months ago

@Ak-sky We are working on the fix, and it has already been identified and in development.

Divya-Singh1693 commented 2 months ago

@Ak-sky We have deployed the fix in production. Please check on your end and confirm.

Ak-sky commented 2 months ago

This is working fine, closing this.