-
Notifications
You must be signed in to change notification settings - Fork 380
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
feat(wafv2): add webacl [WIP] #2152
base: master
Are you sure you want to change the base?
Conversation
407e11f
to
44ba5bf
Compare
Needs rebase on #2154 (or master if it is merged). |
# NOTE(teeverr): this config file was used for generation of types WAFV2 API(make services SERVICES=wafv2) via ack-code-generator v0.38.1, | ||
# then these types where backported to v0.28.1(current version in January 2025), and then the controller code was generated(make generate) by ack-code-generator v0.28.1. | ||
# The reason is that ack-code-generator support specific options(which are needed) like empty shapes and set[].ignore only since version v0.38.0, but this version | ||
# requires rigs.k8s.io/controller-runtime v0.18.4(current version is v0.17.0) and controller-runtime in turn requires | ||
# crossplane-runtime(>=1.17). But newer versions of crossplane-runtime bring a new additinal method `Disconnect()` to `external` | ||
# object, Delete method also has been changed(probably something else). But ack-code-generator doesn't generate it for crossplane. | ||
# It means ack-code-generator should be enhanced to generate relevant controller code for newer versions of crossplane-runtime | ||
# In addition, it is required that all manually written controllers be updated to accommodate these new methods. | ||
# This far away from my current story - add support for wafv2 webacl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the ACK update necessary to include custom status update? If yes, this can be done with #2161 already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is totally redundant. Thanks for noticing. I removed the custom status fields.
Originally I used this config as an example/tip when I was looking for how to implement wafv2, but then I forgot about output fields.
Needs rebase on #2154 (or master if it is merged).
Done.
d41170e
to
8de059e
Compare
Description
This PR brings wafv2 WebACL.
https://docs.aws.amazon.com/waf/latest/APIReference/API_WebACL.html
The resource works but testing is still in progress. It would be nice to get some feedback, that's why the PR is open.
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Testing in progress, it takes time due to a massive combination of parameters and infinite recursion for some fields. The unit tests will be extended soon.