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/synapse-analytics/security/workspaces-encryption.md
+35-29Lines changed: 35 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,19 @@
2
2
title: Azure Synapse Analytics encryption
3
3
description: Understand encryption of data at rest in Synapse Analytics workspaces, configuration of encryption, key management, and Transparent Data Encryption (TDE).
4
4
author: meenalsri
5
-
ms.service: azure-synapse-analytics
6
-
ms.topic: conceptual
7
-
ms.subservice: security
8
-
ms.date: 03/24/2022
9
5
ms.author: mesrivas
10
6
ms.reviewer: whhender, wiassaf
11
-
12
-
7
+
ms.date: 07/31/2024
8
+
ms.service: azure-synapse-analytics
9
+
ms.subservice: security
10
+
ms.topic: conceptual
13
11
---
14
12
# Encryption for Azure Synapse Analytics workspaces
15
13
16
14
This article will describe:
17
-
* Encryption of data at rest in Synapse Analytics workspaces.
18
-
* Configuration of Synapse workspaces to enable encryption with a customer managed key.
19
-
* Managing keys used to encrypt data in workspaces.
15
+
- Encryption of data at rest in Synapse Analytics workspaces.
16
+
- Configuration of Synapse workspaces to enable encryption with a customer managed key.
17
+
- Managing keys used to encrypt data in workspaces.
20
18
21
19
## Encryption of data at rest
22
20
@@ -25,7 +23,7 @@ A complete Encryption-at-Rest solution ensures the data is never persisted in un
25
23
The first layer of encryption for Azure services is enabled with platform-managed keys. By default, Azure Disks, and data in Azure Storage accounts are automatically encrypted at rest. Learn more about how encryption is used in Microsoft Azure in the [Azure Encryption Overview](../../security/fundamentals/encryption-overview.md).
26
24
27
25
> [!NOTE]
28
-
> Some items considered customer content, such as table names, object names, and index names, may be transmitted in log files for support and troubleshooting by Microsoft.
26
+
> Some items considered customer content, such as table names, object names, and index names, might be transmitted in log files for support and troubleshooting by Microsoft.
29
27
30
28
## Azure Synapse encryption
31
29
@@ -35,12 +33,12 @@ This section will help you better understand how customer-managed key encryption
35
33
> Synapse workspaces do not support the use of EC, EC-HSM, and oct-HSM keys for encryption.
36
34
37
35
The data in the following Synapse components is encrypted with the customer-managed key configured at the workspace level:
38
-
* SQL pools
39
-
* Dedicated SQL pools
40
-
* Serverless SQL pools
41
-
* Data Explorer pools
42
-
* Apache Spark pools
43
-
* Azure Data Factory integration runtimes, pipelines, datasets.
36
+
- SQL pools
37
+
- Dedicated SQL pools
38
+
- Serverless SQL pools
39
+
- Data Explorer pools
40
+
- Apache Spark pools
41
+
- Azure Data Factory integration runtimes, pipelines, datasets.
44
42
45
43
## Workspace encryption configuration
46
44
@@ -49,46 +47,54 @@ Workspaces can be configured to enable double encryption with a customer-managed
49
47
> [!IMPORTANT]
50
48
> The configuration setting for double encryption cannot be changed after the workspace is created.
51
49
52
-
:::image type="content" source="./media/workspaces-encryption/workspaces-encryption.png" alt-text="This diagram shows the option that must be selected to enable a workspace for double encryption with a customer-managed key." lightbox="./media/workspaces-encryption/workspaces-encryption.png":::
50
+
:::image type="content" source="media/workspaces-encryption/workspaces-encryption.png" alt-text="This diagram shows the option that must be selected to enable a workspace for double encryption with a customer-managed key." lightbox="media/workspaces-encryption/workspaces-encryption.png":::
53
51
54
52
### Key access and workspace activation
55
53
56
54
The Azure Synapse encryption model with customer-managed keys involves the workspace accessing the keys in Azure Key Vault to encrypt and decrypt as needed. The keys are made accessible to the workspace either through an access policy or [Azure Key Vault RBAC](../../key-vault/general/rbac-guide.md). When granting permissions via an Azure Key Vault access policy, choose the ["Application-only"](../../key-vault/general/security-features.md#key-vault-authentication-options) option during policy creation (select the workspaces managed identity and do not add it as an authorized application).
57
55
58
56
The workspace managed identity must be granted the permissions it needs on the key vault before the workspace can be activated. This phased approach to workspace activation ensures that data in the workspace is encrypted with the customer-managed key. Encryption can be enabled or disabled for individual dedicated SQL Pools. Each dedicated pool is not enabled for encryption by default.
Workspaces can be configured to use a [User-assigned Managed identity](../../active-directory/managed-identities-azure-resources/overview.md) to access your customer-managed key stored in Azure Key Vault. Configure a User-assigned Managed identity to avoid phased activation of your Azure Synapse workspace when using double encryption with customer-managed keys. The Managed Identity Contributor built-in role is required to assign a user-assigned managed identity to an Azure Synapse workspace.
62
62
63
63
> [!NOTE]
64
64
> A User-assigned Managed Identity cannot be configured to access customer-managed key when Azure Key Vault is behind a firewall.
65
65
66
-
:::image type="content" source="./media/workspaces-encryption/workspaces-encryption-uami.png" alt-text="This diagram shows the option that must be selected to enable a workspace to use user-assigned managed-identity for double encryption with a customer-managed key." lightbox="./media/workspaces-encryption/workspaces-encryption-uami.png":::
67
-
66
+
:::image type="content" source="media/workspaces-encryption/workspaces-encryption-uami.png" alt-text="This diagram shows the option that must be selected to enable a workspace to use user-assigned managed-identity for double encryption with a customer-managed key." lightbox="media/workspaces-encryption/workspaces-encryption-uami.png":::
68
67
69
68
#### Permissions
70
69
71
70
To encrypt or decrypt data at rest, the managed identity must have the following permissions. Similarly, if you are using a Resource Manager template to create a new key, the 'keyOps' parameter of the template must have the following permissions:
72
71
73
-
* WrapKey (to insert a key into Key Vault when creating a new key).
74
-
* UnwrapKey (to get the key for decryption).
75
-
* Get (to read the public part of a key)
72
+
- WrapKey (to insert a key into Key Vault when creating a new key).
73
+
- UnwrapKey (to get the key for decryption).
74
+
- Get (to read the public part of a key)
76
75
77
76
#### Workspace activation
78
77
79
78
If you do not configure a user-assigned managed identity to access customer managed keys during workspace creation, your workspace will remain in a "Pending" state until activation succeeds. The workspace must be activated before you can fully use all functionality. For example, you can only create a new dedicated SQL pool once activation succeeds. Grant the workspace managed identity access to the key vault and select the activation link in the workspace Azure portal banner. Once the activation completes successfully, your workspace is ready to use with the assurance that all data in it's protected with your customer-managed key. As previously noted, the key vault must have purge protection enabled for activation to succeed.
80
79
81
-
:::image type="content" source="./media/workspaces-encryption/workspace-activation.png" alt-text="This diagram shows the banner with the activation link for the workspace." lightbox="./media/workspaces-encryption/workspace-activation.png":::
80
+
:::image type="content" source="media/workspaces-encryption/workspace-activation.png" alt-text="This diagram shows the banner with the activation link for the workspace." lightbox="media/workspaces-encryption/workspace-activation.png":::
82
81
83
82
84
-
### Manage the workspace customer-managed key
83
+
### Manage the workspace customer-managed key
85
84
86
85
You can change the customer-managed key used to encrypt data from the **Encryption** page in the Azure portal. Here too, you can choose a new key using a key identifier or select from Key Vaults that you have access to in the same region as the workspace. If you choose a key in a different key vault from the ones previously used, grant the workspace-managed identity "Get", "Wrap", and "Unwrap" permissions on the new key vault. The workspace will validate its access to the new key vault and all data in the workspace will be re-encrypted with the new key.
87
86
88
-
:::image type="content" source="./media/workspaces-encryption/workspace-encryption-management.png" alt-text="This diagram shows the workspace Encryption section in the Azure portal." lightbox="./media/workspaces-encryption/workspace-encryption-management.png":::
87
+
:::image type="content" source="media/workspaces-encryption/workspace-encryption-management.png" alt-text="This diagram shows the workspace Encryption section in the Azure portal." lightbox="media/workspaces-encryption/workspace-encryption-management.png":::
88
+
89
+
> [!IMPORTANT]
90
+
>
91
+
> When changing the encryption key of a workspace, retain the old key until you replace it in the workspace with a new key. This allows decryption of data with the old key before it gets re-encrypted with the new key.
92
+
> The state of the SQL pool (Online/Offline) does not affect the workspace customer managed key (CMK) rotation process.
93
+
>- SQL pools that are offline during the CMK rotation will remain encrypted with the old key or key version. If the old key or key version is disabled or expired, the pools will not resume as decryption is not possible. Upon resuming these pools, the old key or key version must 1) be enabled and 2) have an expiration date set in the future to allow decryption and subsequent re-encryption with the new key or key version.
94
+
>
95
+
>- To ensure a smooth CMK rotation, if some SQL pools are offline during the process, the old key or key version should remain enabled and have its expiration date set in the future. This is crucial until the offline pools are successfully resumed and re-encrypted with the new key or key version.
96
+
>- It is highly recommended not to *delete* old keys or key versions, as they might still be needed to decrypt backups. Instead, after all SQL pools have been re-encrypted with the new key or key version, *disable* the old key or key version. This ensures the old key or key version remains available for decrypting older backups if necessary.
89
97
90
-
>[!IMPORTANT]
91
-
>When changing the encryption key of a workspace, retain the key until you replace it in the workspace with a new key. This is to allow decryption of data with the old key before it gets re-encrypted with the new key.
92
98
93
99
Azure Key Vaults policies for automatic, periodic rotation of keys, or actions on the keys can result in the creation of new key versions. You can choose to re-encrypt all the data in the workspace with the latest version of the active key. To-re-encrypt, change the key in the Azure portal to a temporary key and then switch back to the key you wish to use for encryption. As an example, to update data encryption using the latest version of active key Key1, change the workspace customer-managed key to temporary key, Key2. Wait for encryption with Key2 to finish. Then switch the workspace customer-managed key back to Key1-data in the workspace will be re-encrypted with the latest version of Key1.
94
100
@@ -117,7 +123,7 @@ Use the following cmdlets for Azure Synapse workspace.
117
123
118
124
119
125
120
-
## Next steps
126
+
## Related content
121
127
122
128
-[Use built-in Azure Policies to implement encryption protection for Synapse workspaces](../policy-reference.md)
123
129
-[Create an Azure key vault and a key by using Resource Manager template](../../key-vault/keys/quick-create-template.md)
0 commit comments