You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/encrypt-data-at-rest.md
+42-13Lines changed: 42 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: mrbullwinkle
6
6
manager: nitinme
7
7
ms.service: azure-ai-openai
8
8
ms.topic: conceptual
9
-
ms.date: 11/14/2022
9
+
ms.date: 2/21/2024
10
10
ms.author: mbullwin
11
11
---
12
12
@@ -22,37 +22,66 @@ Azure OpenAI is part of Azure AI services. Azure AI services data is encrypted a
22
22
23
23
By default, your subscription uses Microsoft-managed encryption keys. There's also the option to manage your subscription with your own keys called customer-managed keys (CMK). CMK offers greater flexibility to create, rotate, disable, and revoke access controls. You can also audit the encryption keys used to protect your data.
24
24
25
-
## Customer-managed keys with Azure Key Vault
25
+
## Use customer-managed keys with Azure Key Vault
26
26
27
27
Customer-managed keys (CMK), also known as Bring your own key (BYOK), offer greater flexibility to create, rotate, disable, and revoke access controls. You can also audit the encryption keys used to protect your data.
28
28
29
29
You must use Azure Key Vault to store your customer-managed keys. You can either create your own keys and store them in a key vault, or you can use the Azure Key Vault APIs to generate keys. The Azure AI services resource and the key vault must be in the same region and in the same Microsoft Entra tenant, but they can be in different subscriptions. For more information about Azure Key Vault, see [What is Azure Key Vault?](../../key-vault/general/overview.md).
30
30
31
-
To enable customer-managed keys, you must also enable both the **Soft Delete** and **Do Not Purge** properties on the key vault.
31
+
To enable customer-managed keys, the key vault containing your keys must meet these requirements:
32
32
33
-
Only RSA keys of size 2048 are supported with Azure AI services encryption. For more information about keys, see **Key Vault keys** in [About Azure Key Vault keys, secrets and certificates](../../key-vault/general/about-keys-secrets-certificates.md).
33
+
- You must enable both the **Soft Delete** and **Do Not Purge** properties on the key vault.
34
+
- If you use the [Key Vault firewall](/azure/key-vault/general/access-behind-firewall), you must allow trusted Microsoft services to access the key vault.
35
+
- The key vault must use [legacy access policies](/azure/key-vault/general/assign-access-policy).
36
+
- You must grant the Azure OpenAI resource's system-assigned managed identity the following permissions on your key vault: *get key*, *wrap key*, *unwrap key*.
34
37
35
-
## Enable customer-managed keys for your resource
38
+
Only RSA and RSA-HSM keys of size 2048 are supported with Azure AI services encryption. For more information about keys, see **Key Vault keys** in [About Azure Key Vault keys, secrets and certificates](../../key-vault/general/about-keys-secrets-certificates.md).
39
+
40
+
### Enable your Azure OpenAI resource's managed identity
41
+
42
+
1. Go to your Azure AI services resource.
43
+
1. On the left, under **Resource Management**, select **Identity**.
44
+
1. Switch the system-assigned managed identity status to **On**.
45
+
1. Save your changes, and confirm that you want to enable the system-assigned managed identity.
46
+
47
+
### Configure your key vault's access permissions
48
+
49
+
1. In the Azure portal, go to your key vault.
50
+
1. On the left, select **Access policies**.
51
+
52
+
If you see a message advising you that access policies aren't available, [reconfigure your key vault to use legacy access policies](/azure/key-vault/general/assign-access-policy) before continuing.
53
+
1. Select **Create**.
54
+
1. Under **Key permissions**, select **Get**, **Wrap Key**, and **Unwrap Key**. Leave the remaining checkboxes unselected.
55
+
56
+
:::image type="content" source="../media/cognitive-services-encryption/key-vault-access-policy.png" alt-text="Screenshot of the Azure portal page for a key vault access policy. The permissions selected are Get Key, Wrap Key, and Unwrap Key.":::
57
+
58
+
1. Select **Next**.
59
+
1. Search for the name of your Azure OpenAI resource and select its managed identity.
60
+
1. Select **Next**.
61
+
1. Select **Next** to skip configuring any application settings.
62
+
1. Select **Create**.
63
+
64
+
### Enable customer-managed keys on your Azure OpenAI resource
36
65
37
66
To enable customer-managed keys in the Azure portal, follow these steps:
38
67
39
68
1. Go to your Azure AI services resource.
40
-
1. On the left, select **Encryption**.
69
+
1. On the left, under **Resource Management**, select **Encryption**.
41
70
1. Under **Encryption type**, select **Customer Managed Keys**, as shown in the following screenshot.
42
71
43
-
> [!div class="mx-imgBorder"]
44
-
> 
72
+
> [!div class="mx-imgBorder"]
73
+
> 
45
74
46
-
## Specify a key
75
+
###Specify a key
47
76
48
77
After you enable customer-managed keys, you can specify a key to associate with the Azure AI services resource.
49
78
50
-
### Specify a key as a URI
79
+
####Specify a key as a URI
51
80
52
81
To specify a key as a URI, follow these steps:
53
82
54
83
1. In the Azure portal, go to your key vault.
55
-
1. Under **Settings**, select **Keys**.
84
+
1. Under **Objects**, select **Keys**.
56
85
1. Select the desired key, and then select the key to view its versions. Select a key version to view the settings for that version.
57
86
1. Copy the **Key Identifier** value, which provides the URI.
58
87
@@ -67,9 +96,9 @@ To specify a key as a URI, follow these steps:
67
96
1. Under **Subscription**, select the subscription that contains the key vault.
68
97
1. Save your changes.
69
98
70
-
###Specify a key from a key vault
99
+
#### Select a key from a key vault
71
100
72
-
To specify a key from a key vault, first make sure that you have a key vault that contains a key. Then follow these steps:
101
+
To select a key from a key vault, first make sure that you have a key vault that contains a key. Then follow these steps:
73
102
74
103
1. Go to your Azure AI services resource, and then select **Encryption**.
75
104
1. Under **Encryption key**, select **Select from Key Vault**.
0 commit comments