feat(firewall): add named sets to FirewallConfiguration#3155
feat(firewall): add named sets to FirewallConfiguration#3155riccardotornesello wants to merge 12 commits intoliqotech:masterfrom
Conversation
|
Hi @riccardotornesello. Thanks for your PR! I am @adamjensenbot.
Make sure this PR appears in the liqo changelog, adding one of the following labels:
|
cdcf4f4 to
ac00cec
Compare
|
I also added another side change: a fix to the port range parsing function that always returned an error. |
|
@cheina97 I noticed that there are some conflicts in this PR. Do you usually squash and merge or use a normal merge commit? If you squash I can merge the master in the branch and resolve the conflicts, otherwise I have to do some cherry picking |
We always squash the PR in a single commit and then merge it using the rebase, if you have conflicts rebasing on top of master should be enough |
1b76761 to
9a7c025
Compare
6ee6e21 to
d06aef5
Compare
Description
This Pull Request (PR) extends the functionality introduced in PR #2966 (firewalling rules implementation within
FirewallConfiguration).The primary goal of these changes is to enable the creation and utilization of named sets within the
FirewallConfigurationCustom Resource (CR) to support the definition of more complex nftables rules. Named sets significantly improve the readability and management of firewall rules, especially when dealing with large lists of IP addresses or other match criteria.Changes
Mandatory Modifications
setsField Addition: TheFirewallConfigurationCR now includes a new field,sets, allowing users to specify a list of sets to be created and used. This includes defining the key and value types for each set (at the moment onlyipv4_addris supported).FirewallConfigurationreconciler logic has been updated to handle the addition, modification, and removal of these named sets within the firewall configuration.@<set_name>in the match value.Strongly Recommended Modification (Separate Commit)
Example Usage
This example demonstrates how to define and use a named set (
test_set) containing multiple IPv4 addresses within afilterRule.