cnspec icon indicating copy to clipboard operation
cnspec copied to clipboard

OCI integration errors when scanning buckets

Open charlesjohnson opened this issue 1 year ago • 0 comments

Describe the bug

When using the policy CIS Oracle Cloud Infrastructure Foundation Benchmark - Level 1 with the OCI provider to scan an OCI tenant, on check Ensure no Object Storage buckets are publicly visible, the check returns this error:

{
  "error": "job err: : failed to create resource 'oci.objectStorage.bucket': Failed to initialize \"oci.objectStorage.bucket\", its \"region\" argument has the wrong type (expected type \"OciRegion\")"
} 

To Reproduce Steps to reproduce the behavior:

  1. Set up an OCI tenant.
  2. Create an API client and set it up on the workstation running cnspec.
  3. Run cnspec scan OCI
  4. Note the error

Expected behavior The check runs

Screenshots or CLI Output If applicable, add screenshots or the CLI output to help explain your problem.

Desktop (please complete the following information):

  • macOS
  • cnspec 8.23.1 (8739716, 2023-08-16T08:34:58Z)

Additional context Same results from Mondoo console hosted runner

charlesjohnson avatar Aug 17 '23 14:08 charlesjohnson