Skip to content

Commit 07cb37e

Browse files
committed
fix blocking issues
1 parent 01da85c commit 07cb37e

9 files changed

Lines changed: 34 additions & 27 deletions

‎azure-sql/database/always-encrypted-enclaves-configure-attestation.md‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,20 @@ authorizationrules
6565
The policy verifies:
6666

6767
- 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+
6971
- 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+
7175
- 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+
7379
- 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.
7582

7683
> [!IMPORTANT]
7784
> 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.

‎azure-sql/database/always-encrypted-enclaves-getting-started-sgx.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ In this step, you'll create a new Azure SQL Database logical server and a new da
6666
1. Leave **Want to use SQL elastic pool** set to **No**.
6767
1. Under **Compute + storage**, select **Configure database**, and select **Change configuration**.
6868

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":::
7070

7171
1. Select the **DC-series** hardware configuration, and then select **OK**.
7272

@@ -85,7 +85,7 @@ In this step, you'll create a new Azure SQL Database logical server and a new da
8585
1. For **Encrypted connections**, leave **Minimum TLS version** to **TLS 1.2**.
8686
1. Select **Review + create** at the bottom of the page.
8787

88-
:::image type="content" source="./media/always-encrypted-enclaves/portal-configure-database-networking.png" alt-text="New SQL database - networking":::
88+
:::image type="content" source="./media/always-encrypted-enclaves/portal-configure-database-networking.png" alt-text="Screenshot of the Azure portal Create SQL Database, networking tab.":::
8989

9090
1. On the **Review + create** page, after reviewing, select **Create**.
9191

@@ -167,19 +167,19 @@ In this step, you'll create and configure an attestation provider in Microsoft A
167167

168168
1. After you provide the required inputs, select **Review + create**.
169169

170-
:::image type="content" source="./media/always-encrypted-enclaves/portal-create-attestation-provider-basics.png" alt-text="Create attestation provider":::
170+
:::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.":::
171171

172172
1. Select **Create**.
173173
1. Once the attestation provider is created, select **Go to resource**.
174174
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.
175175

176-
:::image type="content" source="./media/always-encrypted-enclaves/portal-attest-uri.png" alt-text="Attestation URL":::
176+
:::image type="content" source="./media/always-encrypted-enclaves/portal-attest-uri.png" alt-text="Screenshot of the attestation URL in the Azure portal.":::
177177

178178
1. Select **Policy** on the resource menu on the left side of the window or on the lower pane.
179179
1. Set **Attestation Type** to **SGX-IntelSDK**.
180180
1. Select **Configure** on the upper menu.
181181

182-
:::image type="content" source="./media/always-encrypted-enclaves/portal-configure-attestation-policy.png" alt-text="Configure attestation policy":::
182+
:::image type="content" source="./media/always-encrypted-enclaves/portal-configure-attestation-policy.png" alt-text="Screenshot of configuring attestation policy in the Azure portal.":::
183183

184184
1. Set **Policy Format** to **Text**. Leave **Policy options** set to **Enter policy**.
185185
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
198198
199199
1. Select **Save**.
200200
201-
:::image type="content" source="./media/always-encrypted-enclaves/portal-edit-attestation-policy.png" alt-text="Edit attestation policy":::
201+
:::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.":::
202202
203203
1. Select **Refresh** on the upper menu to view the configured policy.
204204
@@ -269,7 +269,7 @@ In this step, you'll create a table and populate it with some data that you'll l
269269
3. Select the **Always Encrypted** tab.
270270
4. Make sure the **Enable Always Encrypted (column encryption)** checkbox is **not** selected.
271271

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.":::
273273

274274
5. Select **Connect**.
275275

@@ -328,7 +328,7 @@ In this step, you'll create a column master key and a column encryption key that
328328
4. Select either **Azure Key Vault** (recommended) or **Windows Certificate Store** (**Current User** or **Local Machine**).
329329
- If you select Azure Key Vault, sign into Azure, select an Azure subscription containing a key vault you want to use, and select your key vault. Select **Generate Key** to create a new key.
330330
- If you select Windows Certificate Store, select the **Generate Certificate** button to create a new certificate.
331-
:::image type="content" source="./media/always-encrypted-enclaves/ssms-new-cmk-enclave-key-vault.png" alt-text="Allow enclave computations":::
331+
:::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.":::
332332
5. Select **OK**.
333333

334334
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
352352
7. Set **Protocol** to **Microsoft Azure Attestation**. (This step applies to SSMS 19 or later.)
353353
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.
354354

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.":::
356356

357357
9. Select **Connect**.
358358
10. If you're prompted to enable Parameterization for Always Encrypted queries, select **Enable**.

‎azure-sql/database/always-encrypted-enclaves-getting-started-vbs.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ In this step, you'll create a table and populate it with some data that you'll l
130130
3. Select the **Always Encrypted** tab.
131131
4. Make sure the **Enable Always Encrypted (column encryption)** checkbox is **not** selected.
132132

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.":::
134134

135135
5. Select **Connect**.
136136

@@ -189,7 +189,7 @@ In this step, you'll create a column master key and a column encryption key that
189189
4. Select either **Azure Key Vault** (recommended) or **Windows Certificate Store** (**Current User** or **Local Machine**).
190190
- If you select Azure Key Vault, sign into Azure, select an Azure subscription containing a key vault you want to use, and select your key vault. Select **Generate Key** to create a new key.
191191
- If you select Windows Certificate Store, select the **Generate Certificate** button to create a new certificate.
192-
:::image type="content" source="./media/always-encrypted-enclaves/ssms-new-cmk-enclave-key-vault.png" alt-text="Allow enclave computations":::
192+
:::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.":::
193193
5. Select **OK**.
194194

195195
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
209209
3. Select **Options >>** and select the **Connection Properties** tab. Make sure to select the **ContosoHR** database (not the default, `master` database).
210210
4. Select the **Always Encrypted** tab.
211211
5. Select the **Enable Always Encrypted (column encryption)** checkbox.
212-
6. Select **Enable secure enclaves**.
212+
6. Select **Enable secure enclaves**.
213213
7. Set **Protocol** to **None**. See the below screenshot.
214214
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.":::
216216
217217
8. Select **Connect**.
218218
9. If you're prompted to enable Parameterization for Always Encrypted queries, select **Enable**.

‎docs/connect/ado-net/sql/tutorial-always-encrypted-enclaves-develop-net-apps.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.custom: event-tier1-build-2022
1717

1818
[!INCLUDE [appliesto-netfx-netcore-xxxx-md](../../../includes/appliesto-netfx-netcore-xxxx-md.md)]
1919

20-
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).
2121

2222
## Prerequisites
2323

‎docs/relational-databases/security/encryption/always-encrypted-enclaves-no-attestation-plan.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ For information about client driver versions that support using secure enclaves
5858
5959
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.
6060

61-
![System Information screenshot showing virtualization-based security status and configuration](./media/always-encrypted-enclaves/msinfo32-vbs-status.png)
61+
![Screenshot of System Information showing virtualization-based security status and configuration.](./media/always-encrypted-enclaves/msinfo32-vbs-status.png)
6262

6363
The first item to check is `Virtualization-based security`, which can have the following three values:
6464

‎docs/relational-databases/security/encryption/always-encrypted-tutorial-getting-started.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ SSMS provides a wizard that helps you easily configure Always Encrypted by setti
368368
SELECT [SSN], [Salary] FROM [HR].[Employees]
369369
```
370370
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.":::
372372
373373
1. Connect to your database with Always Encrypted enabled for your connection.
374374
1. Right-click anywhere in the query window and select **Connection** > **Change Connection**. This will open the **Connect to Database Engine** dialog.

docs/relational-databases/security/encryption/media/always-encrypted-database-engine/always-encrypted-ssms-retrieving-cyphertext.png renamed to docs/relational-databases/security/encryption/media/always-encrypted-database-engine/always-encrypted-ssms-retrieving-ciphertext.png

File renamed without changes.

‎docs/relational-databases/security/tutorial-getting-started-with-always-encrypted-enclaves-hgs.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ In this step, you'll create a column master key and a column encryption key that
267267
6. Select your certificate or Azure Key Value key if it already exists, or select the **Generate Certificate** button to create a new one.
268268
7. Select **OK**.
269269
270-
![Allow enclave computations](encryption/media/always-encrypted-enclaves/allow-enclave-computations.png)
270+
![Screenshot of the allow enclave computations selection in SSMS when creating a new column master key.](encryption/media/always-encrypted-enclaves/allow-enclave-computations.png)
271271
272272
1. Create a new enclave-enabled column encryption key:
273273
@@ -289,7 +289,7 @@ In this step, you'll encrypt the data stored in the **SSN** and **Salary** colum
289289
1. Set **Protocol** to **Host Guardian Service**. (This step applies to SSMS 19 or later.)
290290
1. Specify your enclave attestation URL (for example, ht<span>tp://</span>hgs.bastion.local/Attestation).
291291

292-
![Connect to server with attestation using SSMS](./encryption/media/always-encrypted-enclaves/ssms-connect-hgs.png)
292+
![Screenshot of the connect to server Always Encrypted tab with attestation using SSMS.](./encryption/media/always-encrypted-enclaves/ssms-connect-hgs.png)
293293

294294
1. Select **Connect**.
295295
1. If you're prompted to enable Parameterization for Always Encrypted queries, select **Enable**.

‎docs/relational-databases/security/tutorial-getting-started-with-always-encrypted-enclaves.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The computer hosting your SQL Server instance (referred to as SQL Server compute
5252

5353
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.
5454

55-
![System information - virtualization-based security](./encryption/media/always-encrypted-enclaves/msinfo32-vbs-status.png)
55+
![Screenshot of the System Information virtualization-based security details.](./encryption/media/always-encrypted-enclaves/msinfo32-vbs-status.png)
5656

5757
2. Enable VBS by running the following cmdlet in the PowerShell session.
5858

@@ -182,7 +182,7 @@ In this step, you'll create a column master key and a column encryption key that
182182
6. Select your certificate or Azure Key Value key if it already exists, or select the **Generate Certificate** button to create a new one.
183183
7. Select **OK**.
184184
185-
![Allow enclave computations](encryption/media/always-encrypted-enclaves/allow-enclave-computations.png)
185+
![Screenshot of the allow enclave computations selection in SSMS when creating a new column master key.](encryption/media/always-encrypted-enclaves/allow-enclave-computations.png)
186186
187187
1. Create a new enclave-enabled column encryption key:
188188
@@ -200,10 +200,10 @@ In this step, you'll encrypt the data stored in the **SSN** and **Salary** colum
200200
1. In the **Connect to Server** dialog, specify your server name, select an authentication method and specify your credentials.
201201
1. Select **Options >>** and select the **Always Encrypted** tab.
202202
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**.
205205

206-
![Connect to server without attestation using SSMS](./encryption/media/always-encrypted-enclaves/ssms-connect-none.png)
206+
![Screenshot of the connect to server Always Encrypted tab without attestation using SSMS.](./encryption/media/always-encrypted-enclaves/ssms-connect-none.png)
207207

208208
1. Select **Connect**.
209209
1. If you're prompted to enable Parameterization for Always Encrypted queries, select **Enable**.

0 commit comments

Comments
 (0)