--- title: "OCI Connection Scanning Configuration" slug: "oci-connection-scanning-configuration" updated: 2026-10-08T06:44:09Z published: 2026-10-08T06:44:09Z canonical: "support.fortanix.com/oci-connection-scanning-configuration" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.fortanix.com/llms.txt > Use this file to discover all available pages before exploring further. # OCI Connection Scanning Configuration ## 1.0 Introduction This article describes the minimum access privileges required for Fortanix Key Insight to scan the Oracle Cloud Infrastructure (OCI) cloud compartments and resources. ## 2.0 Terminology References *For OCI terminology and concepts, refer to* [*All Connections Concepts*](/v1/docs/fortanix-key-insight-concepts-for-all-connections) *and* [*OCI Connection Concepts*](/v1/docs/oci-connection-concepts)*.* ## 3.0 Prerequisites Ensure that you: - Sign in to the [OCI Console](https://cloud.oracle.com/). - Have the required Identity and Access Management (IAM) permissions to create users, groups, and policies in the OCI tenancy. - Have the required IAM permissions to add API keys to IAM users ## 4.0 Create a Group Create a group and add the IAM user to it. 1. In the **OCI Console**, open the **navigation menu** in the upper-left corner. 2. Select **Identity & Security** → **Domains**. 3. On the **Domains** list page, select the domain in which you want to create the group. 4. Under **Identity domain**, select **Groups**. 5. Click **Create group**. 6. In the **Name** and **Description** fields, enter the group name and description. 7. Click **Create**. The group is created. You can add the IAM user to this group. ## 5.0 Create a User Create an IAM user for Fortanix Key Insight to access the OCI resources to be scanned. You can use an existing IAM user if it has the required permissions. 1. In the **OCI Console**, open the **navigation menu** in the upper-left corner. 2. Select **Identity & Security** → **Domains**. 3. On the **Domains** list page, select the domain for which you want to create a user. 4. Under **Identity domain**, select **Users**. 5. Click **Create**. 6. Enter the user’s **First name**, **Last name**, and **Username / Email**. 7. Select the check box for the group to which you want to add the user. *To create a new group, refer to* [*Section 4.0 Create Group*](/v1/docs/oci-connection-scanning-configuration#40-create-a-group). 8. Click **Create**. The IAM user is created and added to the group. Create a policy that grants the required permissions for OCI scanning. ## 6.0 Create a Policy Create an IAM policy that grants the group the required permissions to access the OCI resources to be scanned. 1. In the **OCI Console**, open the **navigation menu** in the upper-left corner. 2. Select **Identity & Security** → **Policies**. 3. Click **Create Policy**. The **Create Policy** screen appears. 4. In the **Name** and **Description** fields, enter the policy name and description. 5. From the **Compartment** drop-down list, select the compartment in which you want to create the policy. 6. Under **Policy Builder**, click **Show manual editor**. 7. Enter the required policy statement in the manual editor. *For a comprehensive list of OCI permissions required to onboard an OCI connection, refer to the* [*OCI Connection Permissions*](/v1/docs/oci-connection-permissions)*.* 8. Review the **policy**. 9. Click **Create**. The IAM policy is created and grants the specified group the required access to the OCI resources. ## 7.0 Create an API Signing Key (RSA Key-Pair) Create an RSA key pair with a minimum key size of 2048 bits for Fortanix Key Insight to authenticate to OCI. Add the public key to the IAM user in OCI and securely store the corresponding private key. Obtain the API key fingerprint required to configure the OCI connection in Fortanix Key Insight. ### 7.1 Generate the RSA Key Pair Generate the RSA private and public key pair in PEM format for OCI authentication. Securely store the private key for use when configuring the OCI connection. 1. Run the following command to create a directory to store the keys: ```bash mkdir -p ~/.oci ``` 2. Run the following command to generate a 2048-bit RSA private key: ```bash openssl genrsa -out ~/.oci/keyinsight_api_key.pem 2048 ``` > [!NOTE] > NOTE > > When configuring the OCI connection, enter only the Base64-encoded content of the RSA private key. Do not include the private key header and footer. 3. Run the following command to restrict permissions on the private key: ```bash chmod 600 ~/.oci/keyinsight_api_key.pem ``` 4. Run the following command to generate a public key from the private key: ```bash openssl rsa -pubout -in ~/.oci/keyinsight_api_key.pem -out ~/.oci/keyinsight_api_key_public.pem ``` ### 7.2 Add the Public Key to OCI Add the generated public key to the IAM user in OCI to enable authentication using the corresponding private key. 1. Sign in to the **OCI Console** as the IAM user created in [Section 5.0](/v1/docs/oci-connection-scanning-configuration#50-create-a-user). 2. Open the **Profile** menu and select **My Profile**. 3. Select **Tokens and keys**. 4. Click **Add API key**. **Add API key** panel opens. 5. Select **Choose public key file**. 6. Drag and drop the created RSA public key file into the upload area, or click **Drop a file or Select one** to select the file from your local system. 7. Click **Add**. OCI adds the public key to the IAM user and displays the API key fingerprint and configuration information. ```bash [DEFAULT] user=ocid1.user.oc1..xxxxx fingerprint=xx:xx:xx:... tenancy=ocid1.tenancy.oc1..xxxxx region=us-ashburn-1 key_file=~/.oci/keyinsight_api_key.pem ``` Copy the **user**, **fingerprint**, **tenancy**, and **region** displayed in the OCI configuration snippet. These values are required when onboarding the OCI connection in Key Insight. *For more information, refer to* [*Getting Started with OCI Cloud Connection*](/v1/docs/fortanix-key-insight-getting-started-with-oci-connection)*.* Fortanix Key Insight identifies encryption keys and data services across on-premises and hybrid multicloud environments, providing a unified dashboard for tracking key mappings and cryptographic security. It offers security and compliance teams data-driven insights to assess risks, align with best practices, and meet industry regulations. Iy also supports continuous risk mitigation and crypto-agility, adapting to evolving security needs, including preparation for the post-quantum era. ## Related - [OCI Connection Permissions](/oci-connection-permissions.md) - [OCI Connection Concepts](/oci-connection-concepts.md) - [OCI Connection - User Interface Components](/oci-connection-user-interface-components.md) - [Getting Started with OCI Cloud Connection](/fortanix-key-insight-getting-started-with-oci-connection.md)