-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WAF rules and update version #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments but nothing preventing merging
|
||
# AVM WAF Rules | ||
|
||
rule "azurerm_application_gateway.zones" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_application_gateway.sku.name" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_cosmosdb_account.backup.type" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_kubernetes_cluster.zones" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_lb.sku" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_mysql_flexible_server.high_availability.mode" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_mysql_flexible_server.maintenance_window.day_of_week" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_postgresql_flexible_server.high_availability.mode" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_postgresql_flexible_server.maintenance_window.day_of_week" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_public_ip.sku" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_public_ip.zones" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_service_plan.zone_balancing_enabled" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_storage_account.account_replication_type" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_virtual_machine.zone" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_virtual_machine.zones" { | ||
enabled = true | ||
} | ||
|
||
rule "azurerm_virtual_network_gateway.sku" { | ||
enabled = true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need these entries? they are enabled by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need them, you are correct.
We just don't have any other method to easily identify the names of these rules. Putting them here makes it easier to make changes if you need to turn them off, etc. Admittedly that is an advanced use case and requires some overhead to maintain this.
If we can automate the generation of these from the avm tflint plugin and add to the read me or similar, then this would not be needed. I can look into this alternative when I have some time.
@@ -190,3 +190,69 @@ rule "role_assignments" { | |||
rule "tags" { | |||
enabled = false | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
@@ -191,3 +191,69 @@ rule "role_assignments" { | |||
rule "tags" { | |||
enabled = true | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
This PR updates to the latest avm tflint version.
It also lists out the WAF rules for easy reference moving forward.