Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Conversation

jaredfholgate
Copy link
Member

@jaredfholgate jaredfholgate commented Jun 21, 2024

This PR updates to the latest avm tflint version.

It also lists out the WAF rules for easy reference moving forward.

@jaredfholgate jaredfholgate changed the title Add WAF rules ahd update version Add WAF rules and update version Jun 21, 2024
@jaredfholgate jaredfholgate self-assigned this Jun 21, 2024
@jaredfholgate jaredfholgate marked this pull request as ready for review June 26, 2024 07:33
Copy link
Member

@matt-FFFFFF matt-FFFFFF left a 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

Comment on lines +194 to +259

# 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
}
Copy link
Member

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

Copy link
Member Author

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
}

Copy link
Member

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
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

@lonegunmanb lonegunmanb deleted the update-tflint-to-0-8-0 branch July 29, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants