Skip to main content

๐Ÿ›ก๏ธ Oracle Tenancy has CIS-scoped resources created in the root compartment๐ŸŸข

  • Contextual name: ๐Ÿ›ก๏ธ Tenancy has CIS-scoped resources created in the root compartment๐ŸŸข
  • ID: /ce/ca/oracle/tenancy/resource-in-root-compartment
  • Tags:
  • Policy Type: COMPLIANCE_POLICY
  • Policy Categories: SECURITY

Logicโ€‹

Descriptionโ€‹

Open File

Descriptionโ€‹

This policy identifies Oracle Tenancies that have CIS-scoped resources created directly in the root compartment.

Rationaleโ€‹

Compartments are a foundational OCI governance control. They allow organizations to separate administrative ownership, apply least-privilege IAM policies, delegate operational responsibility, and organize resources by environment, application, business unit, or data sensitivity.

Creating resources directly in the root compartment weakens those guardrails because the root compartment is intended to represent the tenancy-wide administrative boundary. Overusing it makes policy scoping harder, increases the risk of excessive access, and reduces clarity when teams need to determine ownership and accountability for deployed resources.

Keeping benchmark-scoped resources out of the root compartment supports cleaner access boundaries and a more maintainable tenancy structure.

Impactโ€‹

Moving resources out of the root compartment can affect permissions, automation, monitoring targets, and application dependencies. Some OCI resources can be moved between compartments, while others may need to be recreated in the target compartment. Review IAM policies, tagging, automation, backup configuration, and workload dependencies before remediation.

... see more

Remediationโ€‹

Open File

Remediationโ€‹

Move Resources Out of the Root Compartmentโ€‹

Create or identify dedicated target compartments for the affected workloads, then move each supported resource out of the root compartment. If OCI does not support moving a specific resource type after creation, recreate it in the correct compartment and migrate the workload.

Before remediation, confirm the following:

  • The destination compartment exists and is governed by the correct IAM policies.
  • Required administrators, automation, and service principals retain the necessary access after the move.
  • Tags, monitoring, backups, and security controls remain aligned with the new compartment placement.
  • The resource type supports an in-place compartment move. If it does not, plan for recreation and migration.
From Oracle Cloud Consoleโ€‹
  1. Identify CIS-scoped resources that were created in the root compartment.
  2. Open each affected resource and use the OCI Move resource action when it is available.
  3. If the resource cannot be moved, recreate it in the destination compartment and migrate the workload.

... see more

policy.yamlโ€‹

Open File

Linked Framework Sectionsโ€‹

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
๐Ÿ’ผ CIS Oracle v3.1.0 โ†’ ๐Ÿ’ผ 6.2 Ensure no resources are created in the root compartment - Level 1 (Automated)1no data
๐Ÿ’ผ Cloudaware Framework โ†’ ๐Ÿ’ผ General Access Controls20no data