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

Support for JS Challenge in resource azurerm_cdn_frontdoor_firewall_policy #27325

Closed
1 task done
jsc-vertica opened this issue Sep 10, 2024 · 2 comments · Fixed by #28284
Closed
1 task done

Support for JS Challenge in resource azurerm_cdn_frontdoor_firewall_policy #27325

jsc-vertica opened this issue Sep 10, 2024 · 2 comments · Fixed by #28284

Comments

@jsc-vertica
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

I would like support for the new preview feature called JS Challenge for Azure Web Application Firewall, but used with Azure Frontdoor. See this link for more information: https://learn.microsoft.com/en-us/azure/web-application-firewall/waf-javascript-challenge

image

New or Affected Resource(s)/Data Source(s)

azurerm_cdn_frontdoor_firewall_policy

Potential Terraform Configuration

resource "azurerm_cdn_frontdoor_firewall_policy" "website" {
  managed_rule {
    type = "Microsoft_BotManagerRuleSet"

    override {
      rule_group_name = "GoodBots"
      rule {
        rule_id = "Bot200100"
        action  = "JSChallenge"
        enabled = true
      }
    }
  }
}

References

https://learn.microsoft.com/en-us/azure/web-application-firewall/waf-javascript-challenge

#26878

@WodansSon
Copy link
Collaborator

Adding link to blog article

@vjdbj
Copy link

vjdbj commented Feb 11, 2025

Front Door Web Application Firewall Policy Name: "fwprule1"): performing PoliciesCreateOrUpdate: webapplicationfirewallpolicies.WebApplicationFirewallPoliciesClient#PoliciesCreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="WebApplicationFirewallPolicy validation failed. More information ""JavascriptChallengeExpirationInMinutes" is only supported for Premium Sku."."

I'm facing this issue while creating firewall policy, even though my sku is standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment