You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Web Application Firewall on Application Gateway for Containers (Preview)
2
+
title: Web Application Firewall on Application Gateway for Containers
3
3
description: Help protect your containerized applications with a web application firewall (WAF) on Azure Application Gateway.
4
4
author: halkazwini
5
5
ms.author: halkazwini
6
6
ms.service: azure-web-application-firewall
7
7
ms.topic: overview
8
-
ms.date: 07/22/2025
8
+
ms.date: 10/21/2025
9
9
10
10
#CustomerIntent: As a developer, I want to secure my containerized applications so that I can protect them from web vulnerabilities.
11
11
---
12
12
13
-
# What is Azure Web Application Firewall on Application Gateway for Containers (preview)?
13
+
# What is Azure Web Application Firewall on Application Gateway for Containers?
14
14
15
15
Azure Web Application Firewall on [Azure Application Gateway for Containers](../../application-gateway/for-containers/overview.md) provides comprehensive protection for your Kubernetes workloads against common web vulnerabilities and attacks. For example, it addresses SQL injection, cross-site scripting (XSS), and other Open Web Application Security Project (OWASP) top 10 threats.
16
16
17
17
Application Gateway for Containers is an application-layer (Layer 7) solution for [load balancing](/azure/architecture/guide/technology-choices/load-balancing-overview) and dynamic traffic management. It's designed specifically for workloads running in Kubernetes clusters. It represents the evolution of the [Application Gateway Ingress Controller (AGIC)](../../application-gateway/ingress-controller-overview.md).
18
18
19
-
Azure Web Application Firewall provides real-time protection for these application-layer workloads through a set of proprietary managed rule sets and a framework for the creation of user-generated custom rules. All of these protections exist as part of a web application firewall (WAF) policy that's attached to your Application Gateway for Containers deployment via a `SecurityPolicy` resource. You can apply these protections at the listener or route path level.
19
+
Azure Web Application Firewall provides real-time protection for these application-layer workloads through a set of proprietary managed rule sets and a framework for the creation of user-generated custom rules. All of these protections exist as part of a web application firewall (WAF) policy that's attached to your Application Gateway for Containers deployment via a `SecurityPolicy` resource.
20
20
21
-
> [!IMPORTANT]
22
-
> Azure Web Application Firewall on Application Gateway for Containers is currently in preview. For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
21
+
### Security policy
23
22
24
-
## Configuration
23
+
Application Gateway for Containers introduces a new child resource called `SecurityPolicy` in Azure Resource Manager. The `SecurityPolicy` resource brings scope to which Azure Web Application Firewall policies the ALB Controller can reference.
25
24
26
-
To use Azure Web Application Firewall on your Application Gateway for Containers deployment, you need to attach your [WAF policy](create-waf-policy-ag.md) via a `SecurityPolicy`resource. This new Azure Resource Manager child resource is part of the Application Gateway for Containers integration. It's referenced by your Application Load Balancer (ALB) Controller and helps define the scope of how your WAF policy is applied to your application's traffic.
25
+
### Kubernetes custom resource
27
26
28
-
Application Gateway for Containers also introduces a new resource called `WebApplicationFirewallPolicy`. This custom resource defines at which point the WAF policy is applied. You can configure it at the listener or route path level, via your Kubernetes resource's YAML file.
27
+
Application Gateway for Containers introduces a new custom resource called `WebApplicationFirewallPolicy`. The custom resource is responsible for defining which Azure Web Application Firewall policy should be used at which scope.
29
28
30
-
Here's an example YAML configuration that shows targeting a specific path called `pathA` on an `HTTPRoute` resource:
29
+
The WebApplicationFirewallPolicy resource can target the following Kubernetes resources:
30
+
31
+
*`Gateway`
32
+
*`HTTPRoute`
33
+
34
+
The WebApplicationFirewallPolicy resource can also reference the following sections by name for further granularity:
35
+
36
+
*`Gateway`: `Listener`
37
+
38
+
### Example implementations
39
+
40
+
#### Scope a policy to a Gateway resource
41
+
42
+
Here's an example YAML configuration that shows targeting a Gateway resource, which would apply to all listeners on a given Application Gateway for Containers' frontend resource.
#### Scope policy to a specific listener of a Gateway resource
61
+
62
+
Within a `Gateway` resource, you may have different hostnames defined by different listeners (e.g. contoso.com and fabrikam.com). If contoso.com is a hostname of listenerA and fabrikam.com is a hostname of listenerB, you can define the `sectionNames` property to select the proper listener (for example, listenerA for contoso.com).
To use different WAF policies to different paths of the same `Gateway` or Gateway -> Listener sectionName, you can define two HTTPRoute resources, each with a unique path, that each references its applicable WAF policy.
The following functionality isn't supported on a WAF policy that's associated with an Application Gateway for Containers instance:
52
138
53
139
- **Cross-region, cross-subscription policy**: Your WAF policy must be in the same subscription and region as your Application Gateway for Containers resource.
54
140
- **Core Rule Set (CRS) managed rules**: An Application Gateway for Containers WAF supports only Default Rule Set (DRS) managed rule sets.
55
-
- **Legacy Bot Manager Rule Set**: Bot Manager Rule Set 0.1 isn't supported, but all newer Bot Manager Rule Set versions are supported.
56
-
- **JavaScript challenge actions on Bot Manager rules**: You can't set the action on a Bot Manager rule to JavaScript challenge during the preview.
57
-
- **Microsoft Security Copilot**: This offering isn't supported during the preview.
141
+
- **Legacy Bot Manager Rule Set**: Bot Manager Ruleset 0.1 isn't supported, but Bot Manager Ruleset versions 1.0 and 1.1 are supported.
142
+
- **JavaScript challenge actions on Bot Manager rules**: You can't set the action on a Bot Manager rule to JavaScript challenge.
143
+
- **Captcha challenge actions on Bot Manager rules**: You can't set the action on a Bot Manager rule to Captcha.
144
+
- **Microsoft Security Copilot**: The Security Copilot is not supported on Application Gateway for Containers WAF.
145
+
- **Custom Block Response**: Setting a custom block response in your WAF policy is not supported on Application Gateway for Containers WAF.
146
+
- **X-Forwarded-For Header (XFF)**: Application Gateway for Containers WAF doesn't support the XFF variable in custom rules.
147
+
148
+
## Pricing
149
+
150
+
For pricing details, see [Application Gateway for Containers pricing](../../application-gateway/for-containers/understanding-pricing.md).
0 commit comments