Description:
Enable encryption at rest for PostgreSQL Databases.
Rationale:
If Double Encryption is enabled, another layer of encryption is implemented at the hardware level before the storage or network level. Information will be encrypted before it is even accessed, preventing both interception of data in motion if the network layer encryption is broken and data at rest in system resources such as memory or processor cache. Encryption will also be in place for any backups taken of the database, so the key will secure access the data in all forms. For the most secure implementation of key based encryption, it is recommended to use a Customer Managed asymmetric RSA 2048 Key in Azure Key Vault.
The read and write speeds to the database will be impacted if both default encryption and Infrastructure Encryption are checked, as a secondary form of encryption requires more resource overhead for the cryptography of information. This cost is justified for information security.
Customer managed keys are recommended for the most secure implementation, leading to overhead of key management. The key will also need to be backed up in a secure location, as loss of the key will mean loss of the information in the database.
From Azure Portal
For the creation of a new server;
For existing servers;
From Azure CLI
Creating a New Server with Infrastructure Encryption Enabled
Enter the command as follows;
az postgres server create --resource-group --name --location --admin-user --admin-password --sku-name GP_Gen4_2 --version 11 --infrastructure-encryption 'Enabled'
Updating a Server's Configuration
az postgres server configuration set -g -s --infrastructure-encryption