# Source: https://infisical.com/docs/integrations/app-connections/oci.md

> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OCI Connection

> Learn how to configure an Oracle Cloud Infrastructure Connection for Infisical.

<Info>
  OCI App Connection is a paid feature.

  If you're using Infisical Cloud, then it is available under the **Enterprise Tier**. If you're self-hosting Infisical,
  then you should contact [team@infisical.com](mailto:team@infisical.com) to purchase an enterprise license to use it.
</Info>

Infisical supports the use of [API Signing Key Authentication](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm) to connect with OCI.

## Create OCI User

<Steps>
  <Step title="Search for 'Domains' and click as shown">
        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/search-domains.png" alt="Search Domains" />
  </Step>

  <Step title="Select domain">
    Select the domain in which you want to create the Infisical user account.

        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/select-domain.png" alt="Select Domain" />
  </Step>

  <Step title="Navigate to 'Users'">
        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/select-users.png" alt="Select Users" />
  </Step>

  <Step title="Click 'Create user'">
        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/click-create-user.png" alt="Click Create User" />
  </Step>

  <Step title="Create user">
    The name, email, and username can be anything.

        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/create-user.png" alt="Create User" />
  </Step>

  <Step title="Navigate to 'API keys'">
    After you've created a user, you'll be redirected to the user's page. Navigate to 'API keys'.

        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/select-api-keys.png" alt="Select API Keys" />
  </Step>

  <Step title="Add API key">
    Click on 'Add API key' and then download or import the private key. After you've obtained the private key, click 'Add'.

        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/add-api-key.png" alt="Add API Key" />
  </Step>

  <Step title="Store configuration">
    After creating the API key, you'll be shown a modal with relevant information. Save the highlighted values (and the private key) for later steps.

        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/user-info.png" alt="User Info" />
  </Step>
</Steps>

## Create OCI Group

<Steps>
  <Step title="Search for 'Domains' and click as shown">
        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/search-domains.png" alt="Search Domains" />
  </Step>

  <Step title="Select domain">
    Select the domain in which you want to create the Infisical user account.

        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/select-domain.png" alt="Select Domain" />
  </Step>

  <Step title="Navigate to 'Groups'">
        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/select-groups.png" alt="Select Groups" />
  </Step>

  <Step title="Create group">
    The name and description can be anything. **Ensure that you assign the user created in earlier steps to this group**.

        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/create-group.png" alt="Create Group" />
  </Step>

  <Step title="Store group name">
    After creating the group, take note of its name. It will be used in later steps.
  </Step>
</Steps>

## Create OCI Policy

<Steps>
  <Step title="Search for 'Policies' and click as shown">
        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/search-policies.png" alt="Search Policies" />
  </Step>

  <Step title="Click 'Create Policy'">
        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/click-create-policy.png" alt="Click Create Policy" />
  </Step>

  <Step title="Create policy">
    The name and description can be anything. Click 'Show manual editor' and paste in the policy rules relevant to your task:

    <Tabs>
      <Tab title="Secret Sync">
        ```
        Allow group <group name> to manage secret-family in compartment <compartment name>
        Allow group <group name> to use keys in compartment <compartment name>
        Allow group <group name> to use vaults in compartment <compartment name>
        Allow group <group name> to inspect compartments in tenancy
        ```

        * **Group Name:** The name of the group you created in earlier steps.
        * **Compartment Name:** The name of the compartment which has your secrets vault.

        If you'd like to grant Infisical access to all compartments, replace instances of `compartment <compartment name>` with `tenancy`.
      </Tab>
    </Tabs>

        <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/create-policy.png" alt="Create Policy" />

    <Note>
      **You must create this policy on the root compartment**, otherwise some functionality may not work.
    </Note>
  </Step>
</Steps>

## Create OCI Connection in Infisical

<Tabs>
  <Tab title="Infisical UI">
    <Steps>
      <Step title="Navigate to App Connections">
        In your Infisical dashboard, navigate to the **Integrations** tab in the desired project, then select **App Connections**.

                <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/general/add-connection.png" alt="App Connections Tab" />
      </Step>

      <Step title="Select OCI Connection">
        Click the **+ Add Connection** button and select the **OCI Connection** option from the available integrations.

                <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/app-connection-option.png" alt="Select OCI Connection" />
      </Step>

      <Step title="Fill out the OCI Connection Modal">
        Complete the OCI Connection form by entering:

        * A descriptive name for the connection
        * An optional description for future reference
        * The User OCID from [earlier steps](https://infisical.com/docs/integrations/app-connections/oci#create-oci-user)
        * The Tenancy OCID from [earlier steps](https://infisical.com/docs/integrations/app-connections/oci#create-oci-user)
        * The Region from [earlier steps](https://infisical.com/docs/integrations/app-connections/oci#create-oci-user)
        * The Fingerprint from [earlier steps](https://infisical.com/docs/integrations/app-connections/oci#create-oci-user)
        * The Private Key PEM from [earlier steps](https://infisical.com/docs/integrations/app-connections/oci#create-oci-user)

                <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/app-connection-modal.png" alt="OCI Connection Modal" />
      </Step>

      <Step title="Connection Created">
        After clicking Create, your **OCI Connection** is established and ready to use with your Infisical project.

                <img src="https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/oci/app-connection-created.png" alt="OCI Connection Created" />
      </Step>
    </Steps>
  </Tab>

  <Tab title="API">
    To create an OCI Connection, make an API request to the [Create OCI Connection](/api-reference/endpoints/app-connections/oci/create) API endpoint.

    ### Sample request

    ```bash Request theme={"dark"}
    curl    --request POST \
            --url https://app.infisical.com/api/v1/app-connections/oci \
            --header 'Content-Type: application/json' \
            --data '{
                "name": "my-oci-connection",
                "method": "access-key",
                "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
                "credentials": {
                    "userOcid": "ocid1.user.oc1..aaaaaaaagrp35tbkvvad4y2j7sug7xonua7dl2gfp4at2u5i5xj4ghnitg3a",
                    "tenancyOcid": "ocid1.tenancy.oc1..aaaaaaaaotfma465m4zumfe2ua64mj2m5dwmlw2llh4g4dnfttnakiifonta",
                    "region": "us-ashburn-1",
                    "fingerprint": "9c:f6:18:23:92:73:f8:e1:85:2c:6a:e3:2c:7d:ec:8f",
                    "privateKey": "[PRIVATE KEY PEM]"
                }
            }'
    ```

    ### Sample response

    ```bash Response theme={"dark"}
    {
      "appConnection": {
          "id": "e5d18aca-86f7-4026-a95e-efb8aeb0d8e6",
          "name": "my-oci-connection",
          "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
          "description": null,
          "version": 1,
          "orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",
          "createdAt": "2025-04-23T19:46:34.831Z",
          "updatedAt": "2025-04-23T19:46:34.831Z",
          "isPlatformManagedCredentials": false,
          "credentialsHash": "7c2d371dec195f82a6a0d5b41c970a229cfcaf88e894a5b6395e2dbd0280661f",
          "app": "oci",
          "method": "access-key",
          "credentials": {
            "userOcid": "ocid1.user.oc1..aaaaaaaagrp35tbkvvad4y2j7sug7xonua7dl2gfp4at2u5i5xj4ghnitg3a",
            "tenancyOcid": "ocid1.tenancy.oc1..aaaaaaaaotfma465m4zumfe2ua64mj2m5dwmlw2llh4g4dnfttnakiifonta",
            "region": "us-ashburn-1",
            "fingerprint": "9c:f6:18:23:92:73:f8:e1:85:2c:6a:e3:2c:7d:ec:8f"
          }
      }
    }
    ```
  </Tab>
</Tabs>