Skip to content

Commit

Permalink
Fix: Add missing api path check on APP WAF rule (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-robitaille authored Nov 22, 2024
1 parent 11b40f3 commit 9adb41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/load_balancer/waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ resource "aws_wafv2_regex_pattern_set" "valid_app_uri_paths" {

# App paths
regular_expression {
regex_string = "^\\/(?:en|fr)?\\/?(?:(admin|form-builder|forms|id|auth|profile|support|contact|unlock-publishing)(?:\\/[\\w-]+)?)(?:\\/.*)?$"
regex_string = "^\\/(?:en|fr)?\\/?(?:(admin|api|form-builder|forms|id|auth|profile|support|contact|unlock-publishing)(?:\\/[\\w-]+)?)(?:\\/.*)?$"
}

# Static Pages
Expand Down

0 comments on commit 9adb41d

Please sign in to comment.