waf.tf 930 B

12345678910111213141516171819202122
  1. module "waf" {
  2. source = "../../submodules/wafv2"
  3. # Custom to resource
  4. allowed_ips = [ ] # bypasses filters, so should not be needed/used unless warranted. We previously did var.admin_remote_ipset, but that seems like a bad idea
  5. additional_blocked_ips = [ ] # NOTE: There is a standard list in the submodule
  6. admin_ips = concat(var.zscalar_ips, var.admin_ips)
  7. resource_arn = aws_alb.portal.arn
  8. fqdns = keys(module.public_dns_record.forward) # first entry in list will be the WAF name
  9. excluded_rules_AWSManagedRulesCommonRuleSet = [
  10. "SizeRestrictions_BODY",
  11. "GenericRFI_BODY", # Blocks portal lambda MSOCI-2060
  12. "CrossSiteScripting_BODY", # Blocks portal API MSOCI-2121
  13. ]
  14. # These are passed through and should be the same for module
  15. tags = merge(var.standard_tags, var.tags)
  16. aws_partition = var.aws_partition
  17. aws_region = var.aws_region
  18. aws_account_id = var.aws_account_id
  19. }