-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Add Oversize_Handling to AWS WAF v2 #25545
Comments
Per an inbound e-mail from AWS, this could become a blocker to using AWS WAFv2 with Terraform by October 1st. AWS will be requiring oversize handling to be specified on all rules. This would make any creates or updates with the provider to fail until Here's the e-mail we received:
|
@KnightOfReyn I think this is soon to be a bug instead of enhancement. |
I agree. New to raising issues on this, so do you know a way I can update labels to reflect that? |
Hi, is the "body" field still on the roadmap? Currently I cannot assign the oversize_handling configuration to "body" type field? (Its not on the provider docs so thought I would ask)
Managed to assign oversize_handling fine to "json_body" type Cheers |
Weirdly, oversize_handling body was removed here: 7a292ba - I can't say I understand why |
This is because adding oversize_handling as a required property to body's schema would have been a breaking change, requiring a new major version of the aws provider. Since the deadline/urgency got pushed back to Feb 2023, tf didn't want to do a whole major version just for this. This is why we've gotten the update for some objects like header and cookies, that didn't have a present schema, and didn't require this breaking change. You can view the issues whole history for detailed explanation, but I gave a summary. |
It would be great if we could add in the oversize handling as optional now avoiding the breaking change that would occur if it were required, at the same time allowing it to be configured in advance of AWS requiring the field in Q1 2023. |
When creating a body rule there are 2 kind of possible content-type : "Plain text" or "JSON" : In the aws_wafv2_rule_group terraform resource they are respectively equivalent to attributes
and
Currently something like this works :
but not :
So it looks like the issue has partly been solved but the missing Any chance for the aws provider to support it before February 2023, when setting Oversize Handling will become mandatory ? |
Hello, Any news for this case highlighted by @fclerg ? I noticed that oversize_handling is now available for json_body, header and cookies in aws provider, but what about for body ? |
I have tried the below
in |
after upgrading aws provider to latest, above block actually worked |
Confirm that with json_body is working but not with body. In February will not be possible to deploy a rule with the body as field to inspect. There is any update? |
Confirm this is still not working with |
This still isn't fixed. This has been known about since before October, and the February deadline is fast approaching. When can we expect the provider to handle this properly? |
Just tried adding to |
Just to note to say that we will be adding |
@breathingdust It's appreciated, thanks. If that helps, AWS has sent another email recently detailing the new deadline to make that change (Feb 28)
|
This functionality has been released in v4.52.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
Add oversize_handling configuration to AWS WAF
New or Affected Resource(s)
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: