Add WAF protection to application load balancers#197
Closed
devin-ai-integration[bot] wants to merge 17 commits intomainfrom
Closed
Add WAF protection to application load balancers#197devin-ai-integration[bot] wants to merge 17 commits intomainfrom
devin-ai-integration[bot] wants to merge 17 commits intomainfrom
Conversation
Co-Authored-By: Loren Yu <loren@navapbc.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
lorenyu
reviewed
Apr 17, 2025
Collaborator
lorenyu
left a comment
There was a problem hiding this comment.
My mistake on the plan. Some changes:
- Get rid of infra/app/service/network.tf
- Replace the waf_arn input to infra/modules/service with an enable_waf input
- In infra/modules/service/waf.tf, use module.network.waf_arn if enable_waf is true rather than var.enable_waf, since module.network already exists in infra/modules/service/networking.tf
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
Co-Authored-By: Loren Yu <loren@navapbc.com>
lorenyu
reviewed
Apr 17, 2025
Collaborator
lorenyu
left a comment
There was a problem hiding this comment.
Stick to the original plan. If you run into errors with the PR environment checks workflow don't try to fix it yourself, ask me for guidance instead.
…network modules Co-Authored-By: Loren Yu <loren@navapbc.com>
Collaborator
|
@coilysiren could use another pair of eyes. This was mostly implemented by Devin. One thing to note is that the way it's implemented right now is you enable WAF for all environments or none. |
Collaborator
|
Done in navapbc/template-infra#924 |
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.
Add WAF Protection to Application Load Balancers
This PR adds Web Application Firewall (WAF) protection to the service layer by:
The WAF uses the AWS Managed Common Rule Set for baseline protection.
Test Results
Tested against preview environment to try to trigger XSS ruleset and compared with main endpoint:
Related
Link to Devin run: https://app.devin.ai/sessions/d3b02e5cf8194d24a1133291748ee2d5
Requested by: Loren Yu (loren@navapbc.com)
Preview environment for app-rails
♻️ Environment destroyed ♻️
Preview environment for app
♻️ Environment destroyed ♻️