Skip to content

Commit

Permalink
skip: update CI 297
Browse files Browse the repository at this point in the history
  • Loading branch information
vit-corp committed Sep 28, 2024
1 parent e20b18f commit b0b90cb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions auto_policy_testing/red/postgresql/postgresql_server.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "azurerm_postgresql_server" "this" {

threat_detection_policy {
enabled = false
disabled_alerts = [ "Sql_Injection", "Sql_Injection_Vulnerability", "Access_Anomaly", "Data_Exfiltration", "Unsafe_Action"]
}

identity {
Expand Down
8 changes: 7 additions & 1 deletion auto_policy_testing/red/sql/sql_managed_instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ resource "azurerm_mssql_managed_instance" "this" {
azurerm_subnet_network_security_group_association.this,
azurerm_subnet_route_table_association.this,
]
}
}

resource "azurerm_mssql_managed_instance_security_alert_policy" "this" {
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
managed_instance_name = azurerm_mssql_managed_instance.this.name
enabled = false
}
6 changes: 6 additions & 0 deletions auto_policy_testing/red/sql/sql_server.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ resource "azurerm_mssql_firewall_rule" "this" {
end_ip_address = "0.0.0.1"
}

resource "azurerm_mssql_server_security_alert_policy" "this" {
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
server_name = azurerm_mssql_server.this.name
state = "Disabled"
}

resource "azurerm_mssql_server" "audit" {
name = "${module.naming.resource_prefix.sql-server}-audit"
location = data.terraform_remote_state.common.outputs.location
Expand Down

0 comments on commit b0b90cb

Please sign in to comment.