Connecting to an OCI Account
TABLE OF CONTENTS
OCI Account Connection Overview
Before Aqua CSPM can produce any security scan results, you must connect a cloud account. For Oracle Cloud, this is done through the use of a Service Account. A Service Account is an entity that can be assumed by a third party and secured to only access resources in a project. third party
Default Setup
Step 1: Navigate to the Cloud Accounts page.
- Click Connect Account at the top right.
Step 2: Choose Oracle Cloud Infrastructure (OCI) under "Account Type" and Default Setup under "Method"
Step 3: Retrieve your tenancy OCID
- Log into your Oracle Cloud console and navigate to Governance & Administration. Under Account Management, click Tenancy Details.
- Click on Copy by your Tenancy OCID and paste it in the Aqua connection wizard.
Step 4: Create a User and API Signing Key
- Navigate to Identity & Security. Under Identity, click Domains.
- If not already selected, select the root Compartment.
- From the domains list, click the default domain. The domain Overview page is displayed.
- Select Settings. Uncheck 'Primary email address required' under User Settings and click Save Changes.
- Navigate back to the default domain page and select Users.
- Select Create User
- Uncheck 'Use the email address as the username'.
- Enter "Aqua API Access" in Last Name, then enter "aqua" in username.
- Click on Create.
- Copy the User OCID and paste it in the Aqua connection wizard.
- Follow the steps to Generate an API Signing Key listed on Oracle's Cloud Docs.
- Open the public key (oci_api_key_public.pem) in your preferred text editor and copy the plain text (everything).
- Under Resources, click on API Keys, then click on Add API Key. In the wizard, choose 'Paste a Public Key' and paste the key, then click on Add.
- Copy the public key fingerprint and paste it into the Aqua connection wizard.
- Open the private key (oci_api_key.pem) in your preferred text editor and paste it in the Aqua connection wizard.
Step 5: Create a policy and attach it to the User
- Navigate to the default domain page and select Groups.
- Select Create Group.
- Enter "SecurityAudit" in the Name field, then enter "Aqua Security Audit Access" in the description.
- Click on Create.
- Select the SecurityAudit group in the Groups List and Add the Aqua API User to the group.
- Navigate to Identity > Policies.
- Select Create Policy.
- Enter "SecurityAudit" in the Name field, then enter "Aqua Security Audit Policy" in the description.
- Click on the 'Show Manual Editor' button next to Policy Builder.
- Copy and paste the following statement:
ALLOW GROUP SecurityAudit to READ all-resources in tenancy - Click on Create.
Step 6: Retrieve your Compartment OCID
- Navigate to Identity > Compartments.
- Select the compartment to connect and then Click on Copy by your Compartment OCID and paste it in the Aqua connection wizard.
Step 7: Retrieve your Region Identifier
- Click on the region dropdown at the top and select Manage Regions.
- In the regions list page, select the value next to Region Identifier under your home region and paste it in the Aqua connection wizard.
Troubleshooting
Please review the group name related the policy:
Group: cv-securityAudit
Policy: ALLOW GROUP cv-securityAudit to READ all-resources in tenancy
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.