Autonomous AI Database (Serverless) - AKV

Oracle AI Database@Azure now supports integration with Azure Key Vault. This capability allows you to manage transparent data encryption (TDE) master encryption keys (MEKs) using Azure Key Vault. Previously, TDE master encryption keys can only be stored in a file-based Oracle Wallet, Oracle Cloud Infrastructure (OCI) Vault, or Oracle Key Vault (OKV).

With this update, you can now store and manage CMKs directly in Azure Key Vault , providing improved key lifecycle control and alignment with your organization’s security policies.

To configure Azure Key Vault to encrypt your database, complete the following steps.

Note

Note: Customer-managed key option is not available during the Autonomous AI Database instance creation. This option is available after the database instance is created.

  1. Create an Autonomous AI Database from the OCI Console

  2. Create an Azure Key Vault from the Azure Portal

  3. Create a Key on Azure Key Vault from the Azure Portal

  4. Disable Azure Key Vault Public Access from the Azure Portal

  5. Obtain Azure Key Vault DNS Zones Information from the Azure Portal

  6. Add Private DNS Zones in OCI from the OCI Console

  7. Enable Azure Service Principal Authentication from the Azure Portal

  8. Provide the Azure Application Permission to Access to Azure Resources from the Azure Portal

  9. Obtain the Azure Application ID from the Azure Portal

  10. Assign the Roles for the Azure Application to Access to Azure Key Vault from the Azure Portal

  11. Enforce Network Routing to Use Private Endpoint from the OCI Console

  12. Modify an Autonomous AI Database to Use Azure Key Vault from the OCI Console

    1. Create an Autonomous AI Database

      For step-by-step instructions, see Create Autonomous AI Database.

    2. Create an Azure Key Vault

      For step-by-step instructions, see the CMK - AKV tab in the Prerequisites section.

    3. Create a Key on Azure Key Vault

      For step-by-step instructions, see the CMK - AKV tab in the Prerequisites section.

    4. Disable Azure Key Vault Public Access

      1. From the Azure portal, select Key vaults.

      2. Select the Name field of the Key vault that you want to use.

      3. Expand the Settings section, and then select Networking.

      4. From the Firewalls and virtual networks tab, select the Disable public access option. This screenshot shows how to disable public access.

      Note

      Note: After the public access is disabled, Azure Key Vault is accessible only through a Private Endpoint.

      1. Select the Apply button to save the changes.
    5. Obtain Azure Key Vault DNS Zones Information

      Note

      Note: During Azure Key Vault creation, when the private endpoint (privatelink.vaultcore.azure.net) is set up, a private DNS zone is created by the workflow. To allow Autonomous AI Database to resolve private endpoint URLs to the correct private IP addresses, add two private DNS zones in OCI.

      1. From the Azure portal, select Key vaults.

      2. Select the Name field of the Key vault that you want to use.

      3. Expand the Settings section, and then select Networking.

      4. From the Private endpoint connections tab, select the Private endpoint name. This screenshot shows how to access private endpoint connections.

      5. From the left menu, expand the Settings section, and then select DNS configuration. Note the FQDN and IP addresses information. This screenshot shows how to obtain the FQDN and IP addresses information

      6. Navigate to Azure portal and then select Private DNS zones.

      7. From the list, select the privatelink.vaultcore.azure.net DNS zone. Expand the DNS Management section, and then select Recordsets.

      8. Note the A record created for Azure Key Vault. This screenshot shows how to obtain record.

    6. Add Private DNS Zones in OCI

      Complete the step-by-step instructions from the OCI Console.

    7. Enable Azure Service Principal Authentication

      1. Obtain your Microsoft Azure Active Directory tenant ID

        1. From the Azure portal, select Key vaults.

        2. Select the Name field of the Key vault that you want to use.

        3. From the Overview page, navigate Essentials section to identify to note of the Directory ID. This screenshot shows how to obtain Directory ID.

      2. Connect to Autonomous AI Database with the ADMIN user.

        Note

        Note: To connect to Autonomous AI Database, you need to use a SQL client tool such as SQL*Plus or Oracle AI Database actions.

      3. Enable the Azure service principal using the DBMS_CLOUD_ADMIN.ENABLE_PRINCIPAL_AUTH subprogram, and replace the <azure_directoryID> with Directory ID copied in the previous step.

        BEGIN
        DBMS_CLOUD_ADMIN.ENABLE_PRINCIPAL_AUTH(
            provider => 'AZURE',
            params   => JSON_OBJECT('azure_tenantid' value '<azure_directoryID>'));
        END;
         /

        This enables the Azure service principal authentication and creates an Azure application for Autonomous AI Database on the Azure portal. For more information, see Enable Azure Service Principal.

    8. Provide the Azure Application Permission to Access the Azure Resources

      1. Execute the following query in your Autonomous AI Database.

        SELECT * FROM CLOUD_INTEGRATIONS;
        
        PARAM_NAME        PARAM_VALUE
        
        --------------- ------------------------------------------------------------------------------------------------------------------------------------------
        azure_tenantid    29...eb
        azure_consent_url https://login.microsoftonline.com/f8...5a/oauth2/v2.0/authorize?client_id=d4f5...d5&response_type=code&scope=User.read
        azure_app_name    ADBS_APP_OCID1.AUTONOMOUSDATABASE...

        Note

        Note: The view CLOUD_INTEGRATIONS is available to the ADMIN user or to a user with DWROLE role.

      2. In a browser, open the Azure consent URL specified by the azure_consent_url parameter then select the Accept button.

        For example: ` `https://login.microsoftonline.com/f8...5a/oauth2/v2.0/authorize?client_id=d4f5...d5&response_type=code&scope=User.read

      3. The Permissions requested page opens and shows a consent request, similar to the following screenshot. This screenshot shows how to accept the permission.

        Note

        Note: The Application Administrator and Application Developer roles are required to consent the permissions and view the application within the Azure Portal.

    9. Obtain the Azure Application ID

      1. Execute the following query in your Autonomous AI Database.

        SELECT * FROM CLOUD_INTEGRATIONS;
        
        PARAM_NAME        PARAM_VALUE
        
        --------------- ------------------------------------------------------------------------------------------------------------------------------------------
        azure_tenantid    29...eb
        azure_consent_url https://login.microsoftonline.com/f8...5a/oauth2/v2.0/authorize?client_id=d4f5...d5&response_type=code&scope=User.read
        azure_app_name    ADBS_APP_OCID1.AUTONOMOUSDATABASE...
      2. Copy the client_id value included in the consent_url.

        For example: https://login.microsoftonline.com/f8...5a/oauth2/v2.0/authorize?**client_id=d4f5...d5**&response_type=code&scope=User.read

      3. From the Azure portal, search for the client_id. The application ID is displayed under Microsoft Entra ID. This screenshot shows how to obtain Microsoft Entra ID.

      4. Note the application id value. This value is required for the following steps to allow the application to access keys in the Azure Key Vault. This screenshot shows how to obtain application ID.

    10. Assign the Roles for the Azure Application to Access Azure Key Vault

      1. From the Azure portal, select Key vaults, and then select the Name field of the key vault that you want to use.

      2. From the left menu, select Access policies.

      3. Select the Create button.

        1. From the Create an access policy page, select the Permissions tab. Select Get and List permissions located under the Key Management Operations section, and then select the Next button. The screenshot shows the list of permissions.

        2. From the Principal tab, complete the following substeps:

          1. Paste the application id that you copied in the previous step, and then select ADBS_APP. This screenshot shows how to create an access policy.

          2. Select the Next button.

        3. The Application (optional) section is optional. Select the Next button.

        4. From the Review + create section, verify your configuration, and then select the Create button. This screenshot shows how to create an access policy.

        5. From the Key Vault page, select the Refresh button and search for the application name. It is included in the list of applications that have permission to access keys in this Azure Key Vault. This screenshot shows how to view policies.

    11. Enforce Network Routing to Use Private Endpoint

      Complete the step-by-step instructions from the OCI Console.

    12. Modify an Autonomous AI Database to Use Azure Key Vault

      Complete the step-by-step instructions from the OCI Console.

    1. Add Private DNS Zones in OCI

      1. From the OCI console, select Oracle AI Database, and then select Autonomous AI Database.

      2. From the list, select your Autonomous AI Database.

      3. Navigate to Network section, and then select Virtual Cloud Network.

      4. From the Details tab, select DNS Resolver link.

      5. From the Private resolvers page, select the Default private view link.

      6. In the Private view page, select the Private zones tab. This screenshot shows how to create private zone.

      7. In the Private Zones section, select the Create zone button to create the first private zone.

        1. The Zone type field is set to Primary by default.

        2. Enter a descriptive Zone name. Select the zone name that matches the domain FQDN copied in the previous step. For example, vault.azure.net.

        3. From the dropdown list, select the Compartment in which you want to create a private zone.

        4. The Tags section is optional.

        5. Select the Create.

        6. Select the Zone name field of the zone created previously, and then select the Records tab.

        7. Select the Manage records button.

        8. From the Manage records page, select the Add record button.

          1. For the Name field, enter the FQDN name that you noted previously.

          2. Select the A- IPv4 address option as your Type.

          3. Adjust the TTL in seconds based on your requirements.

          4. Select your RDATA mode.

          5. In the Address field, enter the IP address that you noted previously, then select the Save changes button.

        9. Select the Review changes button, then select the Publish Changes button. This screenshot shows how to create private zone.

      8. To create a second zone, select the Create zone button.

        1. The Zone type field is set to Primary by default.

        2. In the Zone name field, enter a zone name based on your Private DNS Zone domain. For example, privatelink.vaultcore.azure.net.

        3. From the dropdown list, select the Compartment in which you want to create a private zone.

        4. The Tags section is optional.

        5. Select the Create button.

        6. Select the Zone name field of the zone created previously, and then select the Records tab.

        7. Select the Manage records button.

        8. From the Manage records page, select the Add record button.

          1. For the Name field, enter your Azure Private zone record set name.

          2. Select the A- IPv4 address option as your Type.

          3. Adjust the TTL in seconds based on your requirements.

          4. Select your RDATA mode.

          5. In the Address field, enter the IP address that you noted previously, then select the Save changes button.

        9. Select the Review changes button, then select the Publish Changes button. This screenshot shows how to create a record.

    2. Enforce Network Routing to Use Private Endpoint

      1. Connect to Autonomous AI Database with the ADMIN user.

      2. Enforce network routing using private endpoint by running the following command:

         alter database property set route_outbound_connections = 'enforce_private_endpoint';
      3. Verify the changes by executing the following command:

         SELECT * FROM DATABASE_PROPERTIES WHERE PROPERTY_NAME = 'ROUTE_OUTBOUND_CONNECTIONS';
        Note

        Note:

        If you need to unset the database to use public endpoint instead of private endpoint, use the following command:

    3. Modify an Autonomous AI Database to Use Azure Key Vault

      1. From the OCI console, select Oracle AI Database, and then select Autonomous AI Database.

      2. Select the Display name field of your Autonomous AI Database.

      3. Select the More action button, then select the Manage encryption key option.

        1. Select the Encrypt using a customer-managed key option.

        2. From the dropdown list, select Microsoft Azure as your Key type.

        3. Enter the Vault URI of your Azure Key Vault. For more information, see the Obtain the Azure Key Vault URI section described in the CMK - AKV tab of the Prerequisites documentation.

        4. Enter the Name of the Azure Key Vault that you want to use.

      4. Select the Save button. This screenshot shows how to view Encryption key details.

      5. To validate your encryption detail, see the View Encryption Details section for step-by-step instructions in the OMK - Oracle Wallet tab.

      6. In the Encryption section, you can view the Encryption key details which is set to Customer-managed key (Microsoft Azure) This screenshot shows how to view Encryption key details.

  • There is currently no content for this page. Oracle AI Database@Azure team intends to add content here, and this placeholder text is provided until that text is added. The Oracle AI Database@Azure team is excited about future new features, enhancements, and fixes to this product and this accompanying documentation. We strongly recommend you watch this page for those updates.

  • There is currently no content for this page. Oracle AI Database@Azure team intends to add content here, and this placeholder text is provided until that text is added. The Oracle AI Database@Azure team is excited about future new features, enhancements, and fixes to this product and this accompanying documentation. We strongly recommend you watch this page for those updates.

  • There is currently no content for this page. Oracle AI Database@Azure team intends to add content here, and this placeholder text is provided until that text is added. The Oracle AI Database@Azure team is excited about future new features, enhancements, and fixes to this product and this accompanying documentation. We strongly recommend you watch this page for those updates.