Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup per-site WAF policy #1574

Open
benlau opened this issue Oct 8, 2023 · 1 comment
Open

Setup per-site WAF policy #1574

benlau opened this issue Oct 8, 2023 · 1 comment

Comments

@benlau
Copy link

benlau commented Oct 8, 2023

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

@akshaysngupta
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants