π Azure PostgreSQL Single Server Infrastructure Double Encryption is not enabled π’
- Contextual name: π Single Server Infrastructure Double Encryption is not enabled π’
- ID:
/ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption
- Located in: π Azure PostgreSQL Database
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
BEST_PRACTICE
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-6ed26167
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-6ed26167 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Azure Database for PostgreSQL servers should be created with 'infrastructure double encryption' enabled.
NOTE: This recommendation currently only applies to Single Server, not Flexible Server. See additional information below for details about the planned retirement of Azure PostgreSQL Single Server.
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.
Impactβ
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.
... see more
Remediationβ
Remediationβ
It is not possible to enable
infrastructure double encryption
on an existing Azure Database for PostgreSQL server. The remediation steps detail the creation of a new Azure Database for PostgreSQL server withinfrastructure double encryption
enabled.From Azure Portalβ
- Go through the normal process of database creation.
- On step 2 titled
Additional settings
ensure thatInfrastructure double encryption enabled
ischecked
.- Acknowledge that you understand this will impact database performance.
- Finish database creation as normal.
From Azure CLIβ
az postgres server create --resource-group <resourcegroup> --name <servername> --location <location> --admin-user <adminusername> --admin-password <server_admin_password> --sku-name GP_Gen4_2 --version 11 --infrastructure-encryption Enabled