feat!: migrate firewall to custom resources - #324
Conversation
c2f3788 to
b24e527
Compare
|
I just skimmed over it and three questions popped up:
|
b24e527 to
6dd613c
Compare
thanks for the feedback. |
97cf023 to
0d5df99
Compare
0d5df99 to
ee94bf9
Compare
|
@a7b81a9086 does that make more sense now? |
|
@damacus I have been thinking about and I think we need a sort of design decision first. I remember that when I was starting to work on the Onother note: I assume that the MR was generated with the help of AI. May I suggest, that you split the MR into smaller chunks? That would make it way easier to follow what is going on. One commit for making each of the firewalls resource based, one for updating the test suites, one for the updating all the metadata of the repo. If this is done, please try to avoid force pushing over your previous commits, because it is really hard for me to see what has changed. Last remark: I am currently using a fork of just the nftables-part of this cookbook, so I do not actually use this cookbook (but I would like to in the future). So I am not sure how much I weight my opinion should have here, maybe someone else wants to chime in? |
|
Thanks for the feedback there @a7b81a9086 I think I'm going to merge as is. I've decided to move to a router model, where we pick the correct backend based on platform. The user can still pick their backend or just use the backend directly.
Yes indeed, it was, it's literally the only way I can keep up with my OSS work! |
Rename the firewall selector from solution to backend and make firewall_rule delegate to backend-specific rule resources. Keep nftables as the Debian default while preserving explicit iptables, ufw, firewalld, and windows backends.
Signed-off-by: Dan Webb <dan.webb@damacus.io>
500791f to
907059a
Compare
Slowest examplesTop 10 slowest examples (0.78 seconds, 46.9% of total time)
|
|
@a7b81a9086 what do you think about this shape? |
|
Hi Dan, Same (but different) for the |
Summary
firewallfirewalland unifiedfirewall_rulecustom resources for UFW, iptables, firewalld, and Windows backendsrecipes/andattributes/public APItest/cookbooks, adds InSpec profile metadata, and updates the platform matrix to currently supportable platformsBreaking changes
firewall 'default'directly.firewallresource properties directly.resources/.Platform and support evidence
oraclelinux-*.