Remediation
Enable Cloud Guard in the Root Compartmentβ
From Oracle Cloud Consoleβ
- Type
Cloud Guardinto the search box at the top of the Console. - Click
Cloud Guardfrom theServicessubmenu. - Click
Enable Cloud Guard. - Click
Create Policy. - Click
Next. - Under
Reporting Region, select a region. - Under
Compartments To Monitor, chooseSelect Compartment. - Under
Select Compartments, select the root compartment. - Under
Configuration Detector Recipe, selectOCI Configuration Detector Recipe (Oracle Managed). - Under
Activity Detector Recipe, selectOCI Activity Detector Recipe (Oracle Managed). - Click
Enable.
From OCI CLIβ
-
Create an OCI IAM policy that grants Cloud Guard the required read permissions in the tenancy:
oci iam policy create \
--compartment-id {{tenancy-id}} \
--name "CloudGuardPolicies" \
--description "Cloud Guard Access Policy" \
--statements '[
"allow service cloudguard to read vaults in tenancy",
"allow service cloudguard to read keys in tenancy",
"allow service cloudguard to read compartments in tenancy",
"allow service cloudguard to read tenancies in tenancy",
"allow service cloudguard to read audit-events in tenancy",
"allow service cloudguard to read compute-management-family in tenancy",
"allow service cloudguard to read instance-family in tenancy",
"allow service cloudguard to read virtual-network-family in tenancy",
"allow service cloudguard to read volume-family in tenancy",
"allow service cloudguard to read database-family in tenancy",
"allow service cloudguard to read object-family in tenancy",
"allow service cloudguard to read load-balancers in tenancy",
"allow service cloudguard to read users in tenancy",
"allow service cloudguard to read groups in tenancy",
"allow service cloudguard to read policies in tenancy",
"allow service cloudguard to read dynamic-groups in tenancy",
"allow service cloudguard to read authentication-policies in tenancy"
]' -
Enable Cloud Guard for the root compartment:
oci cloud-guard configuration update \
--reporting-region {{region-name}} \
--compartment-id {{tenancy-id}} \
--status "ENABLED"