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
{{ message }}
Repository navigation
Commit 07cb37e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: azure-sql/database/always-encrypted-enclaves-configure-attestation.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,13 +65,20 @@ authorizationrules
65
65
The policy verifies:
66
66
67
67
- The enclave inside Azure SQL Database doesn't support debugging.
68
-
> Enclaves can be loaded with debugging disabled or enabled. Debugging support is designed to allow developers to troubleshoot the code running in an enclave. In a production system, debugging could enable an administrator to examine the content of the enclave, which would reduce the level of protection the enclave provides. The recommended policy disables debugging to ensure that if a malicious admin tries to turn on debugging support by taking over the enclave machine, attestation will fail.
68
+
69
+
Enclaves can be loaded with debugging disabled or enabled. Debugging support is designed to allow developers to troubleshoot the code running in an enclave. In a production system, debugging could enable an administrator to examine the content of the enclave, which would reduce the level of protection the enclave provides. The recommended policy disables debugging to ensure that if a malicious admin tries to turn on debugging support by taking over the enclave machine, attestation will fail.
70
+
69
71
- The product ID of the enclave matches the product ID assigned to Always Encrypted with secure enclaves.
70
-
> Each enclave has a unique product ID that differentiates the enclave from other enclaves. The product ID assigned to the Always Encrypted enclave is 4639.
72
+
73
+
Each enclave has a unique product ID that differentiates the enclave from other enclaves. The product ID assigned to the Always Encrypted enclave is 4639.
74
+
71
75
- The security version number (SVN) of the library is greater than or equal to 2.
72
-
> The SVN allows Microsoft to respond to potential security bugs identified in the enclave code. In case a security issue is dicovered and fixed, Microsoft will deploy a new version of the enclave with a new (incremented) SVN. The recommended policy will be updated to reflect the new SVN. By updating your policy to match the recommended policy you can ensure that if a malicious administrator tries to load an older and insecure enclave, attestation will fail.
76
+
77
+
The SVN allows Microsoft to respond to potential security bugs identified in the enclave code. In case a security issue is dicovered and fixed, Microsoft will deploy a new version of the enclave with a new (incremented) SVN. The recommended policy will be updated to reflect the new SVN. By updating your policy to match the recommended policy you can ensure that if a malicious administrator tries to load an older and insecure enclave, attestation will fail.
78
+
73
79
- The library in the enclave has been signed using the Microsoft signing key (the value of the x-ms-sgx-mrsigner claim is the hash of the signing key).
74
-
> One of the main goals of attestation is to convince clients that the binary running in the enclave is the binary that is supposed to run. Attestation policies provide two mechanisms for this purpose. One is the **mrenclave** claim which is the hash of the binary that is supposed to run in an enclave. The problem with the **mrenclave** is that the binary hash changes even with trivial changes to the code, which makes it hard to rev the code running in the enclave. Hence, we recommend the use of the **mrsigner**, which is a hash of a key that is used to sign the enclave binary. When Microsoft revs the enclave, the **mrsigner** stays the same as long as the signing key does not change. In this way, it becomes feasible to deploy updated binaries without breaking customers' applications.
80
+
81
+
One of the main goals of attestation is to convince clients that the binary running in the enclave is the binary that is supposed to run. Attestation policies provide two mechanisms for this purpose. One is the **mrenclave** claim which is the hash of the binary that is supposed to run in an enclave. The problem with the **mrenclave** is that the binary hash changes even with trivial changes to the code, which makes it hard to rev the code running in the enclave. Hence, we recommend the use of the **mrsigner**, which is a hash of a key that is used to sign the enclave binary. When Microsoft revs the enclave, the **mrsigner** stays the same as long as the signing key does not change. In this way, it becomes feasible to deploy updated binaries without breaking customers' applications.
75
82
76
83
> [!IMPORTANT]
77
84
> Microsoft may need to rotate the key used to sign the Always Encrypted enclave binary, which is expected to be a rare event. Before a new version of the enclave binary, signed with a new key, is deployed to Azure SQL Database, this article will be updated to provide a new recommended attestation policy and instructions on how you should update the policy in your attestation providers to ensure your applications continue to work uninterrupted.
Copy file name to clipboardExpand all lines: azure-sql/database/always-encrypted-enclaves-getting-started-sgx.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ In this step, you'll create a new Azure SQL Database logical server and a new da
66
66
1. Leave **Want to use SQL elastic pool** set to **No**.
67
67
1. Under **Compute + storage**, select **Configure database**, and select **Change configuration**.
68
68
69
-
:::image type="content" source="./media/always-encrypted-enclaves/portal-configure-database.png" alt-text="Screenshot of Azure portal, hardware configuration, where to configure database." lightbox="./media/always-encrypted-enclaves/portal-configure-database.png":::
69
+
:::image type="content" source="./media/always-encrypted-enclaves/portal-configure-database.png" alt-text="Screenshot of Azure portal hardware configuration, and where to configure database." lightbox="./media/always-encrypted-enclaves/portal-configure-database.png":::
70
70
71
71
1. Select the **DC-series** hardware configuration, and then select **OK**.
72
72
@@ -85,7 +85,7 @@ In this step, you'll create a new Azure SQL Database logical server and a new da
85
85
1. For **Encrypted connections**, leave **Minimum TLS version** to **TLS 1.2**.
86
86
1. Select **Review + create** at the bottom of the page.
:::image type="content" source="./media/always-encrypted-enclaves/portal-create-attestation-provider-basics.png" alt-text="Screenshot of the Azure portal Create attestation provider menu.":::
171
171
172
172
1. Select **Create**.
173
173
1. Once the attestation provider is created, select **Go to resource**.
174
174
1. On the **Overview** tab for the attestation provider, copy the value of the **Attest URI** property to clipboard and save it in a file. This is the attestation URL, you'll need in later steps.
:::image type="content" source="./media/always-encrypted-enclaves/portal-attest-uri.png" alt-text="Screenshot of the attestation URL in the Azure portal.":::
177
177
178
178
1. Select **Policy** on the resource menu on the left side of the window or on the lower pane.
:::image type="content" source="./media/always-encrypted-enclaves/portal-configure-attestation-policy.png" alt-text="Screenshot of configuring attestation policy in the Azure portal.":::
183
183
184
184
1. Set **Policy Format** to **Text**. Leave **Policy options** set to **Enter policy**.
185
185
1. In the **Policy text** field, replace the default policy with the below policy. For information about the below policy, see [Create and configure an attestation provider](always-encrypted-enclaves-configure-attestation.md#create-and-configure-an-attestation-provider).
@@ -198,7 +198,7 @@ In this step, you'll create and configure an attestation provider in Microsoft A
:::image type="content" source="./media/always-encrypted-enclaves/portal-edit-attestation-policy.png" alt-text="Screenshot of editing an attestation policy in the Azure portal.":::
202
202
203
203
1. Select **Refresh** on the upper menu to view the configured policy.
204
204
@@ -269,7 +269,7 @@ In this step, you'll create a table and populate it with some data that you'll l
269
269
3. Select the **Always Encrypted** tab.
270
270
4. Make sure the **Enable Always Encrypted (column encryption)** checkbox is **not** selected.
271
271
272
-
:::image type="content" source="./media/always-encrypted-enclaves/ssms-connect-disabled.png" alt-text="Connect without Always Encrypted":::
272
+
:::image type="content" source="./media/always-encrypted-enclaves/ssms-connect-disabled.png" alt-text="Screenshot of Connect to Server using SSMS without Always Encrypted enabled.":::
273
273
274
274
5. Select **Connect**.
275
275
@@ -328,7 +328,7 @@ In this step, you'll create a column master key and a column encryption key that
- If you select Azure Key Vault, sign into Azure, select an Azure subscription containing a key vault you want to use, andselect your key vault. Select**Generate Key** to create a new key.
330
330
- If you select Windows Certificate Store, select the **Generate Certificate** button to create a new certificate.
:::image type="content" source="./media/always-encrypted-enclaves/ssms-new-cmk-enclave-key-vault.png" alt-text="Screenshot of the allow enclave computations selection in SSMS when creating a new column master key.":::
332
332
5. Select**OK**.
333
333
334
334
1. Create a new enclave-enabled column encryption key:
@@ -352,7 +352,7 @@ In this step, you'll encrypt the data stored in the **SSN** and **Salary** colum
352
352
7. Set **Protocol** to **Microsoft Azure Attestation**. (This step applies to SSMS 19 or later.)
353
353
8. Specify your enclave attestation URL that you've obtained by following the steps in [Step 2: Configure an attestation provider](#step-2-configure-an-attestation-provider). See the below screenshot.
354
354
355
-
:::image type="content" source="./media/always-encrypted-enclaves/ssms-connect-microsoft-azure-attestation.png" alt-text="Connect with attestation":::
355
+
:::image type="content" source="./media/always-encrypted-enclaves/ssms-connect-microsoft-azure-attestation.png" alt-text="Screenshot of the SSMS Connect to Server dialog Always Encrypted tab, with with attestation enabled.":::
356
356
357
357
9. Select**Connect**.
358
358
10. If you're prompted to enable Parameterization for Always Encrypted queries, select **Enable**.
Copy file name to clipboardExpand all lines: azure-sql/database/always-encrypted-enclaves-getting-started-vbs.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ In this step, you'll create a table and populate it with some data that you'll l
130
130
3. Select the **Always Encrypted** tab.
131
131
4. Make sure the **Enable Always Encrypted (column encryption)** checkbox is **not** selected.
132
132
133
-
:::image type="content" source="./media/always-encrypted-enclaves/ssms-connect-disabled.png" alt-text="Connect without Always Encrypted":::
133
+
:::image type="content" source="./media/always-encrypted-enclaves/ssms-connect-disabled.png" alt-text="Screenshot of Connect to Server using SSMS without Always Encrypted enabled.":::
134
134
135
135
5. Select **Connect**.
136
136
@@ -189,7 +189,7 @@ In this step, you'll create a column master key and a column encryption key that
- If you select Azure Key Vault, sign into Azure, select an Azure subscription containing a key vault you want to use, andselect your key vault. Select**Generate Key** to create a new key.
191
191
- If you select Windows Certificate Store, select the **Generate Certificate** button to create a new certificate.
:::image type="content" source="./media/always-encrypted-enclaves/ssms-new-cmk-enclave-key-vault.png" alt-text="Screenshot of the allow enclave computations selection in SSMS when creating a new column master key.":::
193
193
5. Select**OK**.
194
194
195
195
1. Create a new enclave-enabled column encryption key:
@@ -209,10 +209,10 @@ In this step, you'll encrypt the data stored in the **SSN** and **Salary** colum
209
209
3. Select **Options >>** and select the **Connection Properties** tab. Make sure to select the **ContosoHR** database (not the default, `master` database).
210
210
4. Select the **Always Encrypted** tab.
211
211
5. Select the **Enable Always Encrypted (column encryption)** checkbox.
212
-
6. Select **Enable secure enclaves**.
212
+
6. Select **Enable secure enclaves**.
213
213
7. Set **Protocol** to **None**. See the below screenshot.
214
214
215
-
:::image type="content" source="./media/always-encrypted-enclaves/ssms-connect-vbs-protocol-none.png" alt-text="Connect with Protocol None":::
215
+
:::image type="content" source="./media/always-encrypted-enclaves/ssms-connect-vbs-protocol-none.png" alt-text="Screenshot of the SSMS Connect to Server dialog Always Encrypted tab, with with attestation protocol set to None.":::
216
216
217
217
8. Select **Connect**.
218
218
9. If you're prompted to enable Parameterization for Always Encrypted queries, select**Enable**.
This tutorial teaches you how to develop an application that issues database queries that uses a server-side secure enclave for [Always Encrypted with secure enclaves](../../../relational-databases/security/encryption/always-encrypted-enclaves.md).
20
+
This tutorial teaches you how to develop an application that issues database queries that use a server-side secure enclave for [Always Encrypted with secure enclaves](../../../relational-databases/security/encryption/always-encrypted-enclaves.md).
Copy file name to clipboardExpand all lines: docs/relational-databases/security/encryption/always-encrypted-enclaves-no-attestation-plan.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ For information about client driver versions that support using secure enclaves
58
58
59
59
To check if VBS is running, open the System Information tool by running `msinfo32.exe` and find the `Virtualization-based security` items towards the bottom of the System Summary.
60
60
61
-

61
+

62
62
63
63
The first item to check is `Virtualization-based security`, which can have the following three values:
Copy file name to clipboardExpand all lines: docs/relational-databases/security/encryption/always-encrypted-tutorial-getting-started.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -368,7 +368,7 @@ SSMS provides a wizard that helps you easily configure Always Encrypted by setti
368
368
SELECT [SSN], [Salary] FROM [HR].[Employees]
369
369
```
370
370
371
-
:::image type="content" source="media/always-encrypted-database-engine/always-encrypted-ssms-retrieving-cyphertext.png" alt-text="Screenshot of cyphertext results from encrypted columns.":::
371
+
:::image type="content" source="media/always-encrypted-database-engine/always-encrypted-ssms-retrieving-ciphertext.png" alt-text="Screenshot of cipher text results from encrypted columns.":::
372
372
373
373
1. Connect to your database with Always Encrypted enabled for your connection.
374
374
1. Right-click anywhere in the query window and select **Connection** > **Change Connection**. This will open the **Connect to Database Engine** dialog.

271
271
272
272
1. Create a new enclave-enabled column encryption key:
273
273
@@ -289,7 +289,7 @@ In this step, you'll encrypt the data stored in the **SSN** and **Salary** colum
289
289
1. Set**Protocol** to **Host Guardian Service**. (This step applies to SSMS 19or later.)
290
290
1. Specify your enclave attestation URL (for example, ht<span>tp://</span>hgs.bastion.local/Attestation).
291
291
292
-

292
+

293
293
294
294
1. Select**Connect**.
295
295
1. If you're prompted to enable Parameterization for Always Encrypted queries, select **Enable**.
Copy file name to clipboardExpand all lines: docs/relational-databases/security/tutorial-getting-started-with-always-encrypted-enclaves.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The computer hosting your SQL Server instance (referred to as SQL Server compute
52
52
53
53
1. Sign in to your SQL Server computer as an administrator, open an elevated Windows PowerShell console, and run msinfo32.exe. Check if VBS is running. If VBS is running, skip the remaining steps in this section and go to the next section.
54
54
55
-

55
+

56
56
57
57
2. Enable VBS by running the following cmdlet in the PowerShell session.
58
58
@@ -182,7 +182,7 @@ In this step, you'll create a column master key and a column encryption key that
182
182
6. Select your certificate or Azure Key Value key if it already exists, or select the **Generate Certificate** button to create a new one.

186
186
187
187
1. Create a new enclave-enabled column encryption key:
188
188
@@ -200,10 +200,10 @@ In this step, you'll encrypt the data stored in the **SSN** and **Salary** colum
200
200
1. In the **Connect to Server** dialog, specify your server name, select an authentication method and specify your credentials.
201
201
1. Select**Options >>**andselect the **Always Encrypted** tab.
202
202
1. Select the **Enable Always Encrypted (column encryption)** checkbox.
203
-
1. Select**Enable secure enclaves**.
204
-
1. Set**Protocol** to **None**.
203
+
1. Select**Enable secure enclaves**.
204
+
1. Set**Protocol** to **None**.
205
205
206
-

206
+

207
207
208
208
1. Select**Connect**.
209
209
1. If you're prompted to enable Parameterization for Always Encrypted queries, select **Enable**.
0 commit comments