Skip to content

Azure Function App doesn't redirect HTTP to HTTPS

Description

By ensuring that function apps are only accessible over HTTPS, you can help to protect the data transmitted to and from your app from being accessed or modified by unauthorized parties. This can help to improve the security of your app and protect it from potential threats such as man-in-the-middle attacks or data breaches.

Code Example

go
resource "azurerm_app_service" "example" {
                            ...
 +            https_only          = true
            }

Remediation

Terraform

  • Resource: azurerm_app_service
  • Arguments: https_only

Rule Details

FieldValue
IDIAC-0578
SeverityMEDIUM
IaC Typearm
FrameworksTerraform,
Checkov IDCKV_AZURE_70

References