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

Fixes ordering for ipsets so that ipsets are defined before they are used #373

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

jbirdman
Copy link
Contributor

Pull Request (PR) description

This pull request addresses an ordering issue for ipsets.

Previous behaviour potentially left the running firewall in a state that allowed no traffic to or
from the host. This could be triggered by adding a new ipset.

An earlier commit added autorequires for ipsets that referenced an incorrect type of :ipset and not the correct :firewalld_ipset.

There was an additional ordering issue in the application of the hiera defined configuration in the firewalld class,
where ipsets were being applied after resources that could potentially make use of them.

I have re-ordered the resources in code to ensure that that dependencies can be met.

This Pull Request (PR) fixes the following issues

before they are used.

Confirm autorequires for rich_rules and ipsets.

Make sure the ipset autorequires is actually for :firewalld_ipset.

Code error.

Code error.

Ensure the custom service name is correctly formed for rich rule autorequire.

Ensure ipsets are created before they are used.

Updated ordering for other resource types as well.

Updated ordering for port resources  as well.

Cleanup code style for pull request.
@jcpunk jcpunk added the bug Something isn't working label Jun 26, 2024
@jcpunk jcpunk merged commit 9ce513a into voxpupuli:master Jun 26, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants