Spike: Front Door WAF rules to block crawling on invalid paths (#2613)#223
Open
shaheislamdfe wants to merge 4 commits intomasterfrom
Open
Spike: Front Door WAF rules to block crawling on invalid paths (#2613)#223shaheislamdfe wants to merge 4 commits intomasterfrom
shaheislamdfe wants to merge 4 commits intomasterfrom
Conversation
Add block_paths variable to environment_domains module that creates custom WAF rules to block requests matching specified URL patterns (e.g. .php, .asp, /wp-admin). Review config included with placeholder origin hostname. Ticket: #2613
…-by-path # Conflicts: # terraform/application/.terraform.lock.hcl # terraform/domains/environment_domains/.terraform.lock.hcl
Contributor
Author
|
Date: 2026-03-18 Infrastructure Deployed
WAF Rules
Test ResultsAll blocked paths correctly returned HTTP 429 from the WAF. Non-matching paths passed through to the origin. |
|
Review app deployed to https://technical-guidance-223.test.teacherservices.cloud/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add
block_pathsvariable to theenvironment_domainsmodule that creates custom WAF rules to block requests matching specified URL patterns.Why
Ticket #2613 — Front Door should block web crawling on invalid paths (e.g.
.php,.asp,/wp-admin) at the WAF level before requests reach the origin.How
block_pathsvariable accepts a list of rule objects with name, priority, patterns, and optional operatorcustom_ruleblocks added to the existing rate-limit firewall policy in theterraform-modulesrepo (branch2613-spike-fd-block-by-path)BlockPHP(.php, .asp, .aspx) andBlockWordPress(/wp-admin, /wp-login, /wp-content)review-domains-plan,review-domains-apply,review-domains-destroyTesting
Deploy to review domain and verify:
Notes
terraform-modulesbranch2613-spike-fd-block-by-path