Skip to content

Commit ee77515

Browse files
committed
Adding docs content for validation of Data encryption
1 parent 55049c8 commit ee77515

File tree

6 files changed

+111
-0
lines changed

6 files changed

+111
-0
lines changed

articles/mysql/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@
248248
href: howto-data-encryption-portal.md
249249
- name: Azure CLI
250250
href: howto-data-encryption-cli.md
251+
- name: Data encryption validation
252+
href: howto-data-encryption-validation.md
251253
- name: Azure AD Integration
252254
items:
253255
- name: Configure Azure AD integration
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: How to ensure validation of the Azure Database for MySQL - Data encryption
3+
description: Learn how to validate the encryption of the Azure Database for MySQL - Data encryption using the customers managed key.
4+
author: kummanish
5+
ms.author: manishku
6+
ms.service: postgresql
7+
ms.topic: conceptual
8+
ms.date: 04/28/2020
9+
---
10+
11+
# Validating data encryption for Azure Database for MySQL
12+
13+
This articles helps you validate that data encryption using customer managed key for Azure Database for MySQL is working as expected.
14+
15+
## Check the encryption status
16+
17+
### From portal
18+
19+
* If you want to verify that the customer's key is used for encryption, follow these steps:
20+
21+
1. In the Azure portal, navigate to the **Azure Key Vault** -> **Keys**
22+
2. Select the key used for server encryption.
23+
3. Set the status of the key **Enabled** to **No**.
24+
25+
After some time (**~15 min**), the Azure Database for MySQL server **Status** should be **Inaccessible**. Any I/O operation done against the server will fail which validates that the server is indeed encrypted with customers key and the key is currently not valid.
26+
27+
In order to make the server **Available** against, you can revalidate the key.
28+
29+
4. Set the status of the key in the Key Vault to **Yes**.
30+
4. On the server **Data Encryption** select **Revalidate key**.
31+
5. After the revalidation of the key is successful, the server resumes its normal functionality.
32+
33+
* On the Azure Portal if can ensure that the encryption key is set this would mean that the data is encrypted using the key used in the Azure portal.
34+
35+
![Access policy overview](media/concepts-data-access-and-security-data-encryption/byokvalidate.png)
36+
37+
This ensures that the data encryption using the customers key in the Azure key vault is being used.
38+
39+
### From CLI
40+
41+
* We can use *az cli* command to validate the key resources being used for the Azure Database for MySQL server.
42+
43+
```azurecli-interactive
44+
az mysql server key list --name '<server_name>' -g '<resource_group_name>'
45+
```
46+
47+
For a server without Data encryption set, this command will results in empty set [].
48+
49+
* [Audit Reports](https://servicetrust.microsoft.com) can also be reviewed that provides information about the compliance with data protection standards and regulatory requirements.
50+
51+
## Next steps
52+
53+
To learn more about data encryption, see [Azure Database for MySQL data encryption with customer-managed key](concepts-data-encryption-mysql.md).
134 KB
Loading

articles/postgresql/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@
273273
href: howto-data-encryption-portal.md
274274
- name: Azure CLI
275275
href: howto-data-encryption-cli.md
276+
- name: Data encryption validation
277+
href: howto-data-encryption-validation.md
276278
- name: Restart server
277279
items:
278280
- name: Azure portal
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: How to ensure validation of the Azure Database for PostgreSQL - Data encryption
3+
description: Learn how to validate the encryption of the Azure Database for PostgreSQL - Data encryption using the customers managed key.
4+
author: kummanish
5+
ms.author: manishku
6+
ms.service: postgresql
7+
ms.topic: conceptual
8+
ms.date: 04/28/2020
9+
---
10+
11+
# Validating data encryption for Azure Database for PostgreSQL
12+
13+
This articles helps you validate that data encryption using customer managed key for Azure Database for PostgreSQL is working as expected.
14+
15+
## Check the encryption status
16+
17+
### From portal
18+
19+
* If you want to verify that the customer's key is used for encryption, follow these steps:
20+
21+
1. In the Azure portal, navigate to the **Azure Key Vault** -> **Keys**
22+
2. Select the key used for server encryption.
23+
3. Set the status of the key **Enabled** to **No**.
24+
25+
After some time (**~15 min**), the Azure Database for PostgreSQL server **Status** should be **Inaccessible**. Any I/O operation done against the server will fail which validates that the server is indeed encrypted with customers key and the key is currently not valid.
26+
27+
In order to make the server **Available** against, you can revalidate the key.
28+
29+
4. Set the status of the key in the Key Vault to **Yes**.
30+
4. On the server **Data Encryption** select **Revalidate key**.
31+
5. After the revalidation of the key is successful, the server resumes its normal functionality.
32+
33+
* On the Azure Portal if can ensure that the encryption key is set this would mean that the data is encrypted using the key used in the Azure portal.
34+
35+
![Access policy overview](media/concepts-data-access-and-security-data-encryption/byokvalidate.png)
36+
37+
This ensures that the data encryption using the customers key in the Azure key vault is being used.
38+
39+
40+
### From CLI
41+
42+
* We can use *az cli* command to validate the key resources being used for the Azure Database for PostgreSQL server.
43+
44+
```azurecli-interactive
45+
az postgres server key list --name '<server_name>' -g '<resource_group_name>'
46+
```
47+
48+
For a server without Data encryption set, this command will results in empty set [].
49+
50+
* [Audit Reports](https://servicetrust.microsoft.com) can also be reviewed that provides information about the compliance with data protection standards and regulatory requirements.
51+
52+
## Next steps
53+
54+
To learn more about data encryption, see [Azure Database for PostgreSQL Single server data encryption with customer-managed key](concepts-data-encryption-postgresql.md).
119 KB
Loading

0 commit comments

Comments
 (0)