Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associate Cloudfront Distributions to WAF WEB ACL #58682

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

cat5inthecradle
Copy link
Contributor

Associate our cloudfront distributions to our WAF ACL via code. Without this here, any other changes to this DistributionConfig will disassociate the distribution from our WAF ACL.

Links

Testing story

IN PROGRESS - generating and linting templates for staging, test and production.

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@cat5inthecradle cat5inthecradle requested a review from a team May 16, 2024 15:43
@@ -227,7 +227,8 @@ def self.distribution_config(app, origin, aliases, ssl_cert = nil)
CloudFrontDefaultCertificate: true,
MinimumProtocolVersion: 'TLSv1' # accepts SSLv3, TLSv1
},
HttpVersion: 'http2'
HttpVersion: 'http2',
WebACLId: {'Fn::Sub': 'arn:aws:wafv2:${AWS::Region}:${AWS::AccountId}:global/webacl/code-dot-org/a79a67de-dabf-4555-a8dc-98c3a20b562f'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this apply to adhocs? E.g. will it put the bugcrowd adhoc behind the prod WAF?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would. There isn't a different ACL existing today that we would want to use for adhocs, so the question is whether they should be added to the ACL or have no ACL.

@cat5inthecradle cat5inthecradle changed the title Associate Cloudfront Distributions to wAF WEB ACL Associate Cloudfront Distributions to WAF WEB ACL May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants