mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-10 05:24:20 +00:00
fix(oci): Fix service region support (#10472)
Co-authored-by: Ronan Chota <ronan.chota@saic.com>
This commit is contained in:
1 parent
94e234cefb
commit
ff46281f64
5 files changed
+13
-16
No files matched your search
@@ -32,6 +32,7 @@ All notable changes to the **Prowler SDK** are documented in this file.
|
||||
- Oracle Cloud `events_rule_idp_group_mapping_changes` now recognizes the CIS 3.1 `add/remove` event names to avoid false positives [(#10416)](https://github.com/prowler-cloud/prowler/pull/10416)
|
||||
- Oracle Cloud password policy checks now exclude immutable system-managed policies (`SimplePasswordPolicy`, `StandardPasswordPolicy`) to avoid false positives [(#10453)](https://github.com/prowler-cloud/prowler/pull/10453)
|
||||
- Oracle Cloud `kms_key_rotation_enabled` now checks current key version age to avoid false positives on vaults without auto-rotation support [(#10450)](https://github.com/prowler-cloud/prowler/pull/10450)
|
||||
- Oracle Cloud patch for filestorage, blockstorage, kms, and compute services in OCI to allow for region scanning outside home [(#10455)](https://github.com/prowler-cloud/prowler/pull/10472)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -35,10 +35,9 @@ class BlockStorage(OCIService):
|
||||
Returns:
|
||||
Block Storage client instance
|
||||
"""
|
||||
client_region = self.regional_clients.get(region)
|
||||
if client_region:
|
||||
return self._create_oci_client(oci.core.BlockstorageClient)
|
||||
return None
|
||||
return self._create_oci_client(
|
||||
oci.core.BlockstorageClient, config_overrides={"region": region}
|
||||
)
|
||||
|
||||
def __list_volumes__(self, regional_client):
|
||||
"""
|
||||
|
||||
@@ -33,10 +33,9 @@ class Compute(OCIService):
|
||||
Returns:
|
||||
Compute client instance
|
||||
"""
|
||||
client_region = self.regional_clients.get(region)
|
||||
if client_region:
|
||||
return self._create_oci_client(oci.core.ComputeClient)
|
||||
return None
|
||||
return self._create_oci_client(
|
||||
oci.core.ComputeClient, config_overrides={"region": region}
|
||||
)
|
||||
|
||||
def __list_instances__(self, regional_client):
|
||||
"""
|
||||
|
||||
@@ -20,10 +20,9 @@ class Filestorage(OCIService):
|
||||
|
||||
def __get_client__(self, region):
|
||||
"""Get the Filestorage client for a region."""
|
||||
client_region = self.regional_clients.get(region)
|
||||
if client_region:
|
||||
return self._create_oci_client(oci.file_storage.FileStorageClient)
|
||||
return None
|
||||
return self._create_oci_client(
|
||||
oci.file_storage.FileStorageClient, config_overrides={"region": region}
|
||||
)
|
||||
|
||||
def __list_file_systems__(self, regional_client):
|
||||
"""List all file_systems."""
|
||||
|
||||
@@ -21,10 +21,9 @@ class Kms(OCIService):
|
||||
|
||||
def __get_client__(self, region):
|
||||
"""Get the Kms client for a region."""
|
||||
client_region = self.regional_clients.get(region)
|
||||
if client_region:
|
||||
return self._create_oci_client(oci.key_management.KmsVaultClient)
|
||||
return None
|
||||
return self._create_oci_client(
|
||||
oci.key_management.KmsVaultClient, config_overrides={"region": region}
|
||||
)
|
||||
|
||||
def __list_keys__(self, regional_client):
|
||||
"""List all keys."""
|
||||
|
||||
Reference in new issue
Block a user