Ensure HTTPS is enabled for Azure Windows Function App

MEDIUM

Description

Azure Windows Function App allows HTTP access, this may lead to MiTM and a host of other attacks.

Remediation

In Azure Console -

  1. Open the Azure Portal and go to Function App.
  2. Choose the Function App you wish to edit.
  3. Under Settings, select Configuration, then the General Settings tab.
  4. Set HTTPS Only to on.

In Terraform -

  1. In the azurerm_windows_function_app resource, set https_only to true.

References:
https://learn.microsoft.com/en-us/azure/azure-functions/
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/windows_function_app#https_only

Policy Details

Rule Reference ID: AC_AZURE_0121
CSP: Azure
Remediation Available: Yes
Resource Category: Serverless
Resource Type: Function App

Frameworks