Skip to content

Commit

Permalink
PLT-585: Add override to aws-common ruleset for XSS check (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfreeman-navapbc authored Sep 5, 2024
1 parent fd91d12 commit 18642f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/api-waf-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- .github/workflows/api-waf-apply.yml
- terraform/services/api-waf/**
- terraform/modules/firewall/**
workflow_dispatch: # Allow manual trigger

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/api-waf-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- .github/workflows/api-waf-plan.yml
- terraform/services/api-waf/**
- terraform/modules/firewall/**
workflow_dispatch: # Allow manual trigger

jobs:
Expand Down
8 changes: 8 additions & 0 deletions terraform/modules/firewall/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ resource "aws_wafv2_web_acl" "this" {
managed_rule_group_statement {
name = "AWSManagedRulesCommonRuleSet"
vendor_name = "AWS"

# Override for XSS block on request body, DPC team sends HTML blocks in requests to certain endpoints
rule_action_override {
name = "CrossSiteScripting_BODY"
action_to_use {
count {}
}
}
}
}

Expand Down

0 comments on commit 18642f1

Please sign in to comment.