MariaDB Server Geo-redundant Backup Disabled
- Query id: 0a70d5f3-1ecd-4c8e-9292-928fc9a8c4f1
- Query name: MariaDB Server Geo-redundant Backup Disabled
- Platform: Terraform
- Severity: Low
- Category: Backup
- URL: Github
Description¶
MariaDB Server Geo-redundant Backup should be enabled
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Postitive test num. 1 - tf file
resource "azurerm_mariadb_server" "positive1" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "mariadbadmin"
administrator_login_password = "H@Sh1CoR3!"
sku_name = "B_Gen5_2"
storage_mb = 5120
version = "10.2"
auto_grow_enabled = true
backup_retention_days = 7
geo_redundant_backup_enabled = false
public_network_access_enabled = false
ssl_enforcement_enabled = true
}
Postitive test num. 2 - tf file
resource "azurerm_mariadb_server" "positive2" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "mariadbadmin"
administrator_login_password = "H@Sh1CoR3!"
sku_name = "B_Gen5_2"
storage_mb = 5120
version = "10.2"
auto_grow_enabled = true
backup_retention_days = 7
public_network_access_enabled = false
ssl_enforcement_enabled = true
}
Code samples without security vulnerabilities¶
Negative test num. 1 - tf file
resource "azurerm_mariadb_server" "negative" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "mariadbadmin"
administrator_login_password = "H@Sh1CoR3!"
sku_name = "B_Gen5_2"
storage_mb = 5120
version = "10.2"
auto_grow_enabled = true
backup_retention_days = 7
geo_redundant_backup_enabled = true
public_network_access_enabled = false
ssl_enforcement_enabled = true
}