Self-Managed KMS for Azure

To encrypt your data, you can use your own Azure Key vault keys.

Prerequisites

Before you use your own Azure Key vault keys for Cohesity DataProtect as a Service to encrypt the data in flight and at rest.

Ensure the following prerequisites:

  1. Copy the details of your Azure Key Vault:

    • Directory ID

    • Vault URL

    • Key Identifier

    For detailed instructions, see Copy the Required Details of your Azure Key Vault on the Azure Portal.

  2. Register an app on Azure Portal for Cohesity to access your Azure Key Vault. For detailed instructions, see Register an App on the Azure Portal.

  3. Configure the required access policy for the app to access your key vault. For detailed instructions, see Configure the Required Access Policy for the App to Access your Key Vault.

Copy the Required Details of your Azure Key Vault on the Azure Portal

From the Azure Portal, copy the following details related to your Azure Key vault:

  • Directory ID

  • Vault URL

  • Key Identifier

To copy the details related to your Azure Key vault:

  1. Log in to the Azure Portal with your Microsoft Azure administrator user credentials.

  2. Under Azure Services, click Key Vaults.

  3. In the Key Vaults page, select your Azure Key vault.

  4. On the Azure Key vault page, perform the following:

    1. Copy the Directory ID and the Vault URL.

    2. Under Objects, select Keys and click on your key.

    3. Click on the current version of the key.

    4. Copy the Key Identifier.

Register an App on the Azure Portal

To register an app on Azure Portal:

  1. Log in to the Azure Portal with your Microsoft 365 administrator user credentials.

  2. Search for and select App registrations.

  3. Click New registration.

  4. Enter a Name for your app, select the Supported account types that can access the app, and click Register.

  5. On the RegisteredApp page, click Overview and copy the Application (client) ID. You need to use this ID when you set up the Self Managed KMS for the Azure region on Cohesity DataProtect as a Service.

  6. Next, you need to add a new client secret (or “App Secret Key”) that the app can use to prove its identity when requesting a token. Click Certificates & Secret > New client secret.

  7. Enter a Description, select the recommended number of days under Expires, and click Add.

  8. Under Client secrets, click the Copy button next to the string under Value. Also, note down the Expiry date.

Configure the Required Access Policy for the App to Access your Key Vault

The app must have proper authentication and authorization to access a key vault. Access to your key vault can be provided using an Azure RBAC or Key Vault access policy.

Microsoft recommends using Azure RBAC instead of Key Vault access policy.

If you choose to use Azure RBAC, ensure that you create a custom role and add the following entries under “permissions” in the JSON file of the custom role. Then, assign the custom role to the app.

 "permissions": [
            {
                "actions": [
                    "Microsoft.KeyVault/vaults/keys/read"
                ],
                "notActions": [],
                "dataActions": [
                    "Microsoft.KeyVault/vaults/keys/read",
                    "Microsoft.KeyVault/vaults/keys/encrypt/action",
                    "Microsoft.KeyVault/vaults/keys/decrypt/action"
                ],
                "notDataActions": []

If you choose to use the Key Vault access policy, then ensure that you create a custom access policy with the following permissions and assign it to the app:

Type Permissions
Key Management Operations Get
Cryptographic Operations
  • Decrypt

  • Encrypt

Sample:

Configure Self-Managed KMS for Azure

To use your own Azure Key Vault keys, on the Set Up Region dialog, perform the following:

  1. Choose the Region and select the Self Managed KMS as the Encryption Option.

  2. Under the Key Vault and App Registration sections, enter the following details:

    1. The Directory (Tenant) ID, Key Identifier, and Key Vault URL that you have copied from your Azure Key Vault on Azure Portal.

    2. The Application (Client) ID, Client Secret Value, and the expiry date of the Client Secret that you have noted down while registering the app on Azure Portal.

  3. Click Save.

Next > Add users to access the Cohesity DataProtect as a Service.