Skip to content

Update firewall manifests to use jump instead of action#372

Merged
bastelfreak merged 5 commits into
puppetlabs:mainfrom
david22swan:bugfix/main/firewall_fix
Feb 14, 2024
Merged

Update firewall manifests to use jump instead of action#372
bastelfreak merged 5 commits into
puppetlabs:mainfrom
david22swan:bugfix/main/firewall_fix

Conversation

@david22swan

Copy link
Copy Markdown
Member

As part of the Firewall module rewrite the functionality of the action attribute has been rolled into the jump attribute, the two of them both managing the Firewall jump value.

Comment thread manifests/server/firewall.pp Outdated
@joshcooper

Copy link
Copy Markdown
Contributor

Is the jump parameter supported by all versions of the firewall module listed in metadata.json?

@david22swan

david22swan commented Sep 14, 2023

Copy link
Copy Markdown
Member Author

jump was always present, action was created to represent 3 different possible values that can be passed to the iptables jump value but with the release of v7.0.0 action has been removed and jump is now one value.

It was an odd piece of code added to enforce the use of those 3 values above any of the others. There would likely be errors from this if used alongside versions of firewall less than 7, but is needed for versions greater than 7. You may need to label this backwards incompatible and do an x release

@joshcooper

Copy link
Copy Markdown
Contributor

There would likely be errors from this if used alongside versions of firewall less than 7, but is needed for versions greater than 7.

Should this be bumped to >= 7 and < 8?

"version_requirement": ">= 1.1.3 < 7.0.0"

@david22swan

Copy link
Copy Markdown
Member Author

There would likely be errors from this if used alongside versions of firewall less than 7, but is needed for versions greater than 7.

Should this be bumped to >= 7 and < 8?

"version_requirement": ">= 1.1.3 < 7.0.0"

Updated.
Sorry on the wait, was on PTO friday

@corporate-gadfly

Copy link
Copy Markdown
Contributor

Any thoughts on a release?

@david22swan

Copy link
Copy Markdown
Member Author

@joshcooper Could you take a look

@joshcooper joshcooper left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok to me, but honestly I have no idea.

@austb

austb commented Sep 28, 2023

Copy link
Copy Markdown
Contributor

Since this will require an X release, I am planning to do a release of the changes that have landed on main before we merge this.

@smortex smortex left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to go when we are ready for a major version bump

@corporate-gadfly

Copy link
Copy Markdown
Contributor

Looks good to go when we are ready for a major version bump

Any estimates on when approximately that might be?

@corporate-gadfly

Copy link
Copy Markdown
Contributor

Looks good to go when we are ready for a major version bump

Any updates? TY.

@rafiqueh

rafiqueh commented Jan 4, 2024

Copy link
Copy Markdown

Looks good to go when we are ready for a major version bump

Happy New Year. Any updates?

@david22swan

Copy link
Copy Markdown
Member Author

@austb Thoughts on when this could go in?

@bastelfreak bastelfreak left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@david22swan looks good to me. maybe correct BUDFIX? :D and I think we should keep this as breaking change because it bumps a dependency by a view versions.

As part of the Firewall module rewrite the functionality of the `action` attribute has been rolled into the `jump` attribute, the two of them both managing the Firewall jump value.
@david22swan david22swan force-pushed the bugfix/main/firewall_fix branch from 241a867 to 4e620a5 Compare February 14, 2024 10:34
@david22swan david22swan changed the title (BUGFIX) Update firewall manifests to use jump instead of action (BACKWARDS-INCOMPATIBLE) Update firewall manifests to use jump instead of action Feb 14, 2024
@david22swan

Copy link
Copy Markdown
Member Author

Had BUGFIX just because I didn't have a ticket for it.
Does this look better?
Or at least more accurate

@bastelfreak

Copy link
Copy Markdown
Collaborator

Can you unpin the module in https://github.com/puppetlabs/puppetlabs-puppetdb/blob/main/.fixtures.yml#L22 ? Then tests should/could pass.

@bastelfreak bastelfreak merged commit bf22956 into puppetlabs:main Feb 14, 2024
@h0tw1r3 h0tw1r3 changed the title (BACKWARDS-INCOMPATIBLE) Update firewall manifests to use jump instead of action Update firewall manifests to use jump instead of action Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants