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

feat(wafv2): add webacl [WIP] #2152

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

teeverr
Copy link

@teeverr teeverr commented Jan 30, 2025

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:

  • Read and followed Crossplane's contribution process.
  • Run 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.

@teeverr teeverr force-pushed the feature/wafv2-webacl branch from 407e11f to 44ba5bf Compare January 30, 2025 20:04
@teeverr teeverr changed the title feat(wafv2) add webacl [WIP] feat(wafv2): add webacl [WIP] Jan 30, 2025
@teeverr teeverr marked this pull request as draft January 31, 2025 08:35
@MisterMX
Copy link
Collaborator

MisterMX commented Feb 3, 2025

Needs rebase on #2154 (or master if it is merged).

Comment on lines 1 to 9
# 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.
Copy link
Collaborator

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.

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.

2 participants