application-gateway-kubernetes-ingress icon indicating copy to clipboard operation
application-gateway-kubernetes-ingress copied to clipboard

Setup per-site WAF policy

Open benlau opened this issue 2 years ago • 1 comments

Hello,

According to the document for waf-policy-for-path, it should choose the WAF policy via annotation, but it will apply to all the site and all paths. How can I associate a different WAF policy per different site?

For example, apply WAF Policy 1 to www.example1.com and WAF Policy 2 to www.example2.com .

The document: https://github.com/Azure/application-gateway-kubernetes-ingress/blob/master/docs/annotations.md#azure-waf-policy-for-path

Thanks for any advice

benlau avatar Oct 08 '23 13:10 benlau

If you can split your ingress by host name, you can set different waf-policy-for-path annotation allowing you to have two waf policies.

akshaysngupta avatar Nov 27 '23 03:11 akshaysngupta