Configure Enterprise Key Management - Azure Key Vault

Files uploaded to Egnyte are encrypted with keys that are unique to each customer. When you want a higher level of control over key management, rotation, and storage of the encryption keys, you can use Microsoft Azure Key Vault to accomplish this.

In this article, we'll show you how to set up Enterprise Key Management with Azure Key Vault. Before you begin, make sure you already have an Azure account created.

If you configure a key to be managed externally, you'll need to be extremely cautious when changing settings or when disabling the key. Accidentally deleting the key or making it unavailable for your Egnyte domain can make it impossible to regain access to your Egnyte data.

Skip Ahead to...

Create an Azure App

Create a Key Vault

Add an Access Policy

FAQs

Create an Azure App

For Egnyte to access the encryption key in Azure Key Vault, you need to create an App in Azure. The steps below will walk you through the process.

  1. Once logged into your Azure account, select Azure Active Directory, then App registrations, and click + New registration.

    Screen_Shot_2019-06-11_at_10.01.04_AM.png

  2. Enter the Application Name and click Register.

    Screen_Shot_2019-06-11_at_11.21.14_AM.png

  3. You'll be taken back to the App registration page. From here, click on the new application you created.

    Screen_Shot_2019-06-11_at_11.22.54_AM.png

  4. Within in the App, you'll need to copy the Application (client) ID and Directory (tenant) ID and input the parameters into the Enterprise Key Management settings of your Egnyte domain.

    The Application (client) ID from Azure will be inputted into the Username field in the Enterprise Key Management settings in Egnyte.

    Screen_Shot_2019-06-11_at_11.27.40_AM.png

    Screen_Shot_2019-06-11_at_11.34.01_AM.png


Create a Shared Secret Password

  1. From the App page, open the Certificates & secrets tab and click + New client secret.

    Screen_Shot_2019-06-11_at_12.34.14_PM.png

  2. Enter a description for the secret, choose an expiration date, and click Add.

    If you choose to have the secret expire, you’ll need to update it in Azure Key Vault and Egnyte at that time. If you do not update the secret, you’ll temporarily lose access to your Egnyte data until this is updated.


    Screen_Shot_2019-06-11_at_12.37.56_PM.png

  3. You'll only be able to see the secret one time, so copy it to your clipboard and immediately input it into the Password field in the Enterprise Key Management settings within Egnyte.

    Screen_Shot_2019-06-11_at_12.49.05_PM.png

    Screen_Shot_2019-06-11_at_12.50.57_PM.png

Add API Permissions

  1. From the App page, open the API permissions tab and click + Add a permission.

    Screen_Shot_2019-06-11_at_12.53.52_PM.png

  2. In the Request API permissions page, select the Microsoft APIs tab and and choose Azure Key Vault.

    Screen_Shot_2019-06-11_at_12.53.52_PM.png

  3. Select the checkbox next to user_impersonation and click Add permissions.

    Screen_Shot_2019-06-11_at_12.59.24_PM.png


You'll be able to see the newly added permission on the API permissions page.

Create a Key Vault

  1. From the main, left-hand menu, click + Create a resource.

    Screen_Shot_2019-06-11_at_1.06.50_PM.png

  2. Select the Key Vault resource. If you do not see this resource, use the search bar to locate Key Vault.

    Screen_Shot_2019-06-11_at_1.09.21_PM.png

  3. Click Create

    Screen_Shot_2019-06-11_at_1.11.18_PM.png

  4. Enter a name for the Key Vault, create a new resource group or add the Key Vault to an existing resource group, and click Create.

    Screen_Shot_2019-06-11_at_1.16.33_PM.png

  5. Once the new Key Vault has been created, select Keys from the Settings section.

    Screen_Shot_2019-06-11_at_1.19.36_PM.png

  6. Click + Generate/Import

    Screen_Shot_2019-06-11_at_1.20.51_PM.png

  7. Enter a name for the key, select the desired parameters, ensure the key is enabled, and click Create.

    Screen_Shot_2019-06-11_at_1.50.43_PM.png

  8. Once the key is created, you'll need to click New Version to create a new version for the key.

    Screen_Shot_2019-06-11_at_1.54.28_PM.png

  9. Now that the key has been finalized, you'll need to copy the following information and input it into the corresponding fields within the Enterprise Key Management settings in Egnyte.

    Key Vault name = HSM name
    Key name = Key name
    Current Version name (long string of letters and numbers) = Key version

    Screen_Shot_2019-06-11_at_2.03.10_PM.png

Add an Access Policy

  1. From the Key Vault page, select Access policies under Settings and click + Add new.

    Screen_Shot_2019-06-11_at_2.09.23_PM.png

  2. Click the Select principal option, highlight your Egnyte app, and click Select.

    Screen_Shot_2019-06-11_at_2.12.14_PM.png

  3. From the Key permissions drop-down, select the following options:

    Key Management Operations: Get and List
    Cryptographic Operations: Decrypt, Encrypt, Unwrap Key, and Wrap Key

    Screen_Shot_2019-06-11_at_2.15.33_PM.png

  4. Click OK and then click Save in the Azure Key Vault form.
  5. Navigate back to Egnyte and verify all information has been entered in the Enterprise Key Management section. Click Save to verify the set up. If an OK status appears in the settings, the operation was completed successfully!

    Screen_Shot_2019-06-11_at_2.18.08_PM.png

 

FAQs

Can I switch back to having the Enterprise Key managed by Egnyte?

Yes, as long as the key is still accessible in Azure Key Vault. If you delete the key from your Key Vault, it may be impossible to switch and the data in your Egnyte domain could be inaccessible.

What if I delete the key from my Azure Key Vault? Will my data in Egnyte be accessible?

When your users stop accessing the data, the key will still remain in cache for the time you specified in the Cache duration field. After that, the key will be deleted from the cache and your data will become inaccessible. If the key has been deleted from your Azure Key Vault, it will be impossible to recover the access to the domain data (impossible to decrypt the content).

Screen_Shot_2019-06-12_at_9.45.38_AM.png

What happens if my Application Secret expires?

When the shared secret expires, your data will become inaccessible until you update it. You'll need to create a new shared secret for the app in Azure Key Vault and enter the new shared secret as the password in the Enterprise Key Management settings within Egnyte.

Can I change the key in Azure Key Vault?

Yes! Simply add a new key in Azure Key Vault and enter the new key name in your Egnyte Enterprise Key Management settings. Once you Save the changes, make sure you get an OK status to ensure it worked correctly.

Screen_Shot_2019-06-12_at_9.50.29_AM.png

Egnyte Community

Egnyte Community

Want to connect with other Egnyte users and our Egnyte team? Share ideas and ask questions in our Community .