-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Zone attribute change breaks compatibility with Oracle 8 & 9 (probably RHEL 8 & 9 as well) #298
Comments
This is a HUGE issue!!! Without this being fixed, it prevents you from using this cookbook [Using Rocky Linux 9.4] Especially if there is no workaround. |
I tried downgrading to v6.3.4 and it still fails. Any workaround? |
@breisig how are you applying v6.3.4? Also double check the Chef cache to see if the template it wants to apply actually contains the --zone option. |
What I did was download the firewall code from git and checkout the 6.3.4 branch and uploaded it to Chef. I installed a FRESH Rocky Linux 9.4 linux VM with the latest updates applied and bootstrapped the server with the following recipe
And it fails with the initial bootstrap of the server
And I still get the error. |
@breisig sorry for being pedantic, need to double/sanity check. When you bootstrap a VM, near the beginning, after possibly the installation of the client, you get a list of cookbooks and the versions that are being deployed/applied, please paste that into a comment. In version 6.3.4 of the firewall cookbook and earlier there is no |
Sorry, I should of seen this. The newer cookbook was still around which the recipe defaulted to use it. I deleted it and now it work wth 6.3.4, Again, this is just a workaround. |
@breisig it happens mate, that is why it is always a good idea to double/sanity check. Tbh after some looking at the code, I see the following that needs to be changed:
If I have time, I will try and submit a PR. |
The resource was specifying --zone when creating --direct rules, which is not allowed for direct rules in firewalld. Fixes sous-chefs#298 Signed-off-by: Joseph Larionov <[email protected]>
The resource was specifying --zone when creating --direct rules, which is not allowed for direct rules in firewalld. Fixes sous-chefs#298 Signed-off-by: Joseph Larionov <[email protected]>
* Remove FreeBSD from Test Kitchen; it's not supported by this cookbook Signed-off-by: Joseph Larionov <[email protected]> * Correct the suite platform matrix in Test Kitchen Suites now correctly test against all compatible platforms for each firewall solution. Signed-off-by: Joseph Larionov <[email protected]> * Add modern platforms and remove obsolete ones Signed-off-by: Joseph Larionov <[email protected]> * Update list of platforms that the cookbook supports Signed-off-by: Joseph Larionov <[email protected]> * Get firewalld working in kitchen-dokken containers Signed-off-by: Joseph Larionov <[email protected]> * Fixed: firewall_rule resource fails on firewalld The resource was specifying --zone when creating --direct rules, which is not allowed for direct rules in firewalld. Fixes #298 Signed-off-by: Joseph Larionov <[email protected]> * Ensure firewalld service remains enabled and started when installed Signed-off-by: Joseph Larionov <[email protected]> * Fixed: New zones are created with forwarding enabled Due to firewalld/firewalld#1438 Signed-off-by: Joseph Larionov <[email protected]> * Fixed: firewalld resources ignore properties whose value is false Signed-off-by: Joseph Larionov <[email protected]> * Test firewalld on all compatible Linux platforms Signed-off-by: Joseph Larionov <[email protected]> * Add support for firewalld 2.0.0 The firewalld_zone resource has been updated to support priority, ingress_priority, and egress_priority zone options introduced in firewalld 2.0.0. As a result, this update extends support to RHEL 10, its derivatives, and Ubuntu 24.04, all of which utilize firewalld 2.0.0 or later. Signed-off-by: Joseph Larionov <[email protected]> * Fixed ufw test when running in kitchen-dokken Signed-off-by: Joseph Larionov <[email protected]> * Disable Oracle 9 iptables test, its iptables package fails to install Signed-off-by: Joseph Larionov <[email protected]> * Fixed: firewalld resources were not idempotent Signed-off-by: Joseph Larionov <[email protected]> * Add firewalld_rich_rule resource Signed-off-by: Joseph Larionov <[email protected]> * Migrate firewall_rule to a modern custom resource Signed-off-by: Joseph Larionov <[email protected]> * Remove deprecated disabled property from firewall resource Signed-off-by: Joseph Larionov <[email protected]> * firewall_rule now implements firewalld rich rules on firewalld platforms Refactors firewalld support to use rich rules instead of the "--direct" interface, which was deprecated with the firewalld 1.0.0 release [1]. Adds IPv6 support for firewalld platforms (fixes #86). [1] https://firewalld.org/2021/06/the-upcoming-1-0-0 Signed-off-by: Joseph Larionov <[email protected]> * Fixed: ufw provider doesn't ensure ufw service is enabled Signed-off-by: Joseph Larionov <[email protected]> * Allow any compatible firewall solution on Linux platforms Signed-off-by: Joseph Larionov <[email protected]> * Pin dokken to Chef 18.3 due to bug in latest Chef container Until chef/chef#14760 is fixed. Signed-off-by: Joseph Larionov <[email protected]> * Add upgrade instructions for this release Signed-off-by: Joseph Larionov <[email protected]> * Linting Signed-off-by: Joseph Larionov <[email protected]> * Run tests with kitchen-dokken in GitHub Actions CI Signed-off-by: Joseph Larionov <[email protected]> --------- Signed-off-by: Joseph Larionov <[email protected]>
🗣️ Foreword
The change to the cookbook in v6.3.5 by adding
--zone
options to allfirewall-cmd
commands, conflicts with the--direct
option and causes it to error out.👻 Brief Description
🥞 Cookbook version
6.3.5+
👩🍳 Chef-Infra Version
18.3.0
🎩 Platform details
Oracle Linux 8
Oracle Linux 9
Most likely:
RHEL 8
RHEL 9
Steps To Reproduce
Try and deploy firewall rules on Oracle Linux 8 or 9.
🚓 Expected behavior
No errors and running the same as v6.3.4
The text was updated successfully, but these errors were encountered: