hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.47k stars 4.55k forks source link

Support setting minTlsCipherSuite on App Service #24223

Open camtittle opened 7 months ago

camtittle commented 7 months ago

Is there an existing issue for this?

Community Note

Description

Azure app service supports specifying the minimum TLS cipher suite to allow for incoming traffic. This can be set via the update config API's minTlsCipherSuite field.

See the Azure App Service blog for more details.

It would be great to be able specify this field in Terraform configuration.

New or Affected Resource(s)/Data Source(s)

azurerm_linux_web_app, azurerm_windows_web_app

Potential Terraform Configuration

resource "azurerm_linux_web_app" "example" {
  name                = "example"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_service_plan.example.location
  service_plan_id     = azurerm_service_plan.example.id

  site_config {
    minTlsCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"
  }
}

References

No response

xiaxyi commented 7 months ago

Thanks @camtittle for raising this request, let me check and add it to our backlog once confirmed.

xiaxyi commented 6 months ago

The property is available in next api version 2023-01-01, may not be able to put it with high priority, need to check.

rajeeshmenoth commented 6 months ago

This is crucial for cybersecurity weak cipher suite certification clearance, and we need this fix to be available immediately. We can't maintain this manually because whenever we execute Terraform, the manual changes will be overridden, creating a high risk to the production environment.

lzarus commented 6 months ago

thanks @camtittle @xiaxyi for this request, when will we be able to get this version, since it's not yet available? This problem now affects our entire platform, and we run the same risk as @rajeeshmenoth

joshfrias commented 3 months ago

The above PR doesn't cover azurerm_windows_web_app. I hope this issue isn't closed before that.

cleverer commented 2 months ago

@xiaxyi it looks like the new properties got never implemented/dropped (even though the API version got upgraded to 2023-01-01) when #24447 got superseded by #24483. Is that correct?

Is there anything I can help to get those implemented?

atsernouski commented 1 week ago

@xiaxyi any update here?

this is feature is really important, any pentest brings up the point with App Service TLS Cipher Suite

xiaxyi commented 6 days ago

Hi all, the property is added in the mentioned pr. Feel free to track it for any progress.