mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-03-21 18:58:04 +00:00
chore(oraclecloud): Add Oracle Defense Cloud Support (#10376)
Co-authored-by: Ronan Chota <ronan.chota@saic.com> Co-authored-by: Hugo Pereira Brito <101209179+HugoPBrito@users.noreply.github.com> Co-authored-by: Hugo P.Brito <hugopbrit@gmail.com>
This commit is contained in:
@@ -72,12 +72,13 @@ jobs:
|
||||
This PR updates the `OCI_COMMERCIAL_REGIONS` dictionary in `prowler/providers/oraclecloud/config.py` with the latest regions fetched from the OCI Identity API (`list_regions()`).
|
||||
|
||||
- Government regions (`OCI_GOVERNMENT_REGIONS`) are preserved unchanged
|
||||
- DOD regions (`OCI_US_DOD_REGIONS`) are preserved unchanged
|
||||
- Region display names are mapped from Oracle's official documentation
|
||||
|
||||
### Checklist
|
||||
|
||||
- [x] This is an automated update from OCI official sources
|
||||
- [x] Government regions (us-langley-1, us-luke-1) preserved
|
||||
- [x] Government regions (us-langley-1, us-luke-1) and DOD regions (us-gov-ashburn-1, us-gov-phoenix-1, us-gov-chicago-1) are preserved
|
||||
- [x] No manual review of region data required
|
||||
|
||||
### License
|
||||
|
||||
@@ -25,6 +25,7 @@ All notable changes to the **Prowler SDK** are documented in this file.
|
||||
- Update M365 Teams service metadata to new format [(#9685)](https://github.com/prowler-cloud/prowler/pull/9685)
|
||||
- Update M365 Entra ID service metadata to new format [(#9682)](https://github.com/prowler-cloud/prowler/pull/9682)
|
||||
- Update ResourceType and Categories for Azure Entra ID service metadata [(#10334)](https://github.com/prowler-cloud/prowler/pull/10334)
|
||||
- Update OCI Regions to include US DoD regions [(#10375)](https://github.com/prowler-cloud/prowler/pull/10376)
|
||||
|
||||
### 🔐 Security
|
||||
|
||||
|
||||
@@ -65,5 +65,16 @@ OCI_GOVERNMENT_REGIONS = {
|
||||
"us-luke-1": "US Gov East",
|
||||
}
|
||||
|
||||
# OCI Defense Regions
|
||||
OCI_US_DOD_REGIONS = {
|
||||
"us-gov-ashburn-1": "US DoD East (Ashburn)",
|
||||
"us-gov-chicago-1": "US DoD North (Chicago)",
|
||||
"us-gov-phoenix-1": "US DoD West (Phoenix)",
|
||||
}
|
||||
|
||||
# All OCI Regions
|
||||
OCI_REGIONS = {**OCI_COMMERCIAL_REGIONS, **OCI_GOVERNMENT_REGIONS}
|
||||
OCI_REGIONS = {
|
||||
**OCI_COMMERCIAL_REGIONS,
|
||||
**OCI_GOVERNMENT_REGIONS,
|
||||
**OCI_US_DOD_REGIONS,
|
||||
}
|
||||
|
||||
@@ -156,6 +156,10 @@ def update_config_file(regions, config_file_path):
|
||||
raise Exception(
|
||||
"Validation failed: OCI_GOVERNMENT_REGIONS section missing after update. Aborting to prevent data loss."
|
||||
)
|
||||
if "OCI_US_DOD_REGIONS" not in updated_content:
|
||||
raise Exception(
|
||||
"Validation failed: OCI_US_DOD_REGIONS section missing after update. Aborting to prevent data loss."
|
||||
)
|
||||
|
||||
# Verify the replacement was successful
|
||||
if updated_content == config_content:
|
||||
|
||||
Reference in New Issue
Block a user