Skip to content

Commit a4ca7b7

Browse files
authored
Merge pull request #113163 from kummanish/byokvalidate
Adding docs content for validation of Data encryption
2 parents 53d215f + c0e68fa commit a4ca7b7

File tree

6 files changed

+110
-0
lines changed

6 files changed

+110
-0
lines changed

articles/mysql/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@
258258
href: howto-data-encryption-portal.md
259259
- name: Azure CLI
260260
href: howto-data-encryption-cli.md
261+
- name: Data encryption validation
262+
href: howto-data-encryption-validation.md
261263
- name: Azure AD Integration
262264
items:
263265
- 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: mysql
7+
ms.topic: conceptual
8+
ms.date: 04/28/2020
9+
---
10+
11+
# Validating data encryption for Azure Database for MySQL
12+
13+
This article 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+
1. If you want to verify that the customer's key is used for encryption, follow these steps:
20+
21+
* In the Azure portal, navigate to the **Azure Key Vault** -> **Keys**
22+
* Select the key used for server encryption.
23+
* 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+
* Set the status of the key in the Key Vault to **Yes**.
30+
* On the server **Data Encryption**, select **Revalidate key**.
31+
* After the revalidation of the key is successful, the server **Status** changes to **Available**.
32+
33+
2. On the Azure portal, if you can ensure that the encryption key is set, then data is encrypted using the customers key used in the Azure portal.
34+
35+
![Access policy overview](media/concepts-data-access-and-security-data-encryption/byokvalidate.png)
36+
37+
### From CLI
38+
39+
1. We can use *az CLI* command to validate the key resources being used for the Azure Database for MySQL server.
40+
41+
```azurecli-interactive
42+
az mysql server key list --name '<server_name>' -g '<resource_group_name>'
43+
```
44+
45+
For a server without Data encryption set, this command results in empty set [].
46+
47+
### Azure audit reports
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
@@ -277,6 +277,8 @@
277277
href: howto-data-encryption-portal.md
278278
- name: Azure CLI
279279
href: howto-data-encryption-cli.md
280+
- name: Data encryption validation
281+
href: howto-data-encryption-validation.md
280282
- name: Restart server
281283
items:
282284
- name: Azure portal
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 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 article 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+
1. If you want to verify that the customer's key is used for encryption, follow these steps:
20+
21+
* In the Azure portal, navigate to the **Azure Key Vault** -> **Keys**
22+
* Select the key used for server encryption.
23+
* 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+
* Set the status of the key in the Key Vault to **Yes**.
30+
* On the server **Data Encryption**, select **Revalidate key**.
31+
* After the revalidation of the key is successful, the server **Status** changes to **Available**
32+
33+
2. On the Azure portal, if you can ensure that the encryption key is set, then data is encrypted using the customers key used in the Azure portal.
34+
35+
![Access policy overview](media/concepts-data-access-and-security-data-encryption/byokvalidate.png)
36+
37+
### From CLI
38+
39+
1. We can use *az CLI* command to validate the key resources being used for the Azure Database for PostgreSQL server.
40+
41+
```azurecli-interactive
42+
az postgres server key list --name '<server_name>' -g '<resource_group_name>'
43+
```
44+
45+
For a server without Data encryption set, this command will results in empty set [].
46+
47+
### Azure audit reports
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 PostgreSQL Single server data encryption with customer-managed key](concepts-data-encryption-postgresql.md).
119 KB
Loading

0 commit comments

Comments
 (0)