]>
review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/log
david22swan [Mon, 28 Feb 2022 14:09:37 +0000 (14:09 +0000)]
Merge pull request #1030 from puppetlabs/SEC-944-handle_duplicate_rule_comments_v2
(SEC-944) Handle duplicate system rules
Craig Gumbley [Fri, 25 Feb 2022 20:07:07 +0000 (20:07 +0000)]
(SEC-944) Add test cases
Prior to this commit there we no test cases to validate our
changes to the module.
This commit adds test cases for each of the configurations for
onduplicaterulebehaviour.
Craig Gumbley [Tue, 22 Feb 2022 16:25:18 +0000 (16:25 +0000)]
Adding PR Commit Suggestions
Co-authored-by: Michael T Lombardi (He/Him) <michael.lombardi@puppet.com>
Craig Gumbley [Tue, 22 Feb 2022 15:21:51 +0000 (15:21 +0000)]
(SEC-994) Add section on duplicate rules
This commit adds a new section to inform users about how the module will behave when it encounters duplicate rules.
It also inclues a small bit of house keeping.
Craig Gumbley [Tue, 22 Feb 2022 12:23:35 +0000 (12:23 +0000)]
(SEC-944) Configurable duplicate behaviour
Here we add a new parameter that determines how the puppet run will
behave if a duplicate system rule is encountered. The default is to
warn and continue.
Craig Gumbley [Tue, 22 Feb 2022 12:33:01 +0000 (12:33 +0000)]
(SEC-944) Identify duplicate system rules
In certain situations it is possible for an unmanaged rule to exist on
the target system that has the same comment as the rule specified in
the manifest.
When this condition is true puppet will ignore the the unmanaged rule
and continue to apply the rule in the manifest. This is because the
firewall module uses the comment field in IPT as it's namevar and
therefore expects it to be a unique identifier. In the case of IPT this
is not true given that you can have multiple rules with the same
comment.
This commit adds a check that will identify system rules that have their
comment field set to the same value as a rule in the manifest. If we
enter a situation where any of the duplicate counts are greater than 1
then we will respond with a configurable action. The behaviour of this
can be configured via the onduplicaterulebehaviour parameter.
Craig Gumbley [Tue, 8 Feb 2022 15:52:27 +0000 (15:52 +0000)]
Merge pull request #1027 from puppetlabs/pdksync_IAC-1787/main/remove_centos_6_support
pdksync - (IAC-1787) Remove Support for CentOS 6
22swan [Tue, 8 Feb 2022 15:22:12 +0000 (15:22 +0000)]
(IAC-1787) Remove Support for CentOS 6
Adrian Iurca [Wed, 15 Dec 2021 10:16:21 +0000 (12:16 +0200)]
Merge pull request #1025 from puppetlabs/release-prep
Release prep v3.3.0
GitHub Action [Wed, 15 Dec 2021 10:14:30 +0000 (10:14 +0000)]
Release prep v3.3.0
sanfrancrisko [Tue, 14 Dec 2021 18:01:07 +0000 (18:01 +0000)]
Merge pull request #1024 from puppetlabs/depmod-not-found-on-rocky
install module-init-tools on pre_setup step
adrianiurca [Tue, 14 Dec 2021 17:34:42 +0000 (19:34 +0200)]
install module-init-tools on pre_setup step
daianamezdrea [Mon, 13 Dec 2021 19:32:09 +0000 (21:32 +0200)]
Merge pull request #981 from tskirvin/main
(MODULES-6876) lib/puppet/provider/firewall/iptables.rb - comments cleanup for parsing
Tim Skirvin [Mon, 13 Dec 2021 17:20:39 +0000 (11:20 -0600)]
Merge branch 'puppetlabs:main' into main
daianamezdrea [Fri, 22 Oct 2021 14:00:14 +0000 (17:00 +0300)]
Merge pull request #1020 from puppetlabs/pdksync_IAC-1752/main/add_almalinux_8_support
pdksync - (IAC-1753) - Add Support for AlmaLinux 8
David Swan [Fri, 22 Oct 2021 10:22:44 +0000 (11:22 +0100)]
(IAC-1771) Update acceptance test setup
David Swan [Tue, 19 Oct 2021 09:20:20 +0000 (10:20 +0100)]
(IAC-1771) Update code for AlmaLinux
Tim Skirvin [Fri, 8 Oct 2021 14:28:14 +0000 (09:28 -0500)]
CHANGELOG.md updates
David Swan [Tue, 5 Oct 2021 15:24:06 +0000 (16:24 +0100)]
(IAC-1752) - Add Support for AlmaLinux 8
Adrian Iurca [Mon, 4 Oct 2021 15:04:53 +0000 (18:04 +0300)]
Merge pull request #1018 from adamboutcher/fedora34
Fedora 34 and iptables-compat fix; properly utilising iptables param.
Adrian Iurca [Mon, 4 Oct 2021 13:55:51 +0000 (16:55 +0300)]
Merge pull request #1019 from cmd-ntrf/bug11203
Bugfix MODULES-11203: error on second apply when uid or gid is specified as a range
Adam Boutcher [Mon, 4 Oct 2021 13:40:46 +0000 (14:40 +0100)]
Package_Name param was used in a clever way, moved to iptables_name
Félix-Antoine Fortin [Fri, 1 Oct 2021 18:17:45 +0000 (14:17 -0400)]
Fix comment in uid and gid insync
Félix-Antoine Fortin [Fri, 1 Oct 2021 18:11:39 +0000 (14:11 -0400)]
Fix gid insync regex for converting to GID
Félix-Antoine Fortin [Fri, 1 Oct 2021 18:08:24 +0000 (14:08 -0400)]
Fix uid insync regex for converting to UID
Add support for uid range
Adam Boutcher [Tue, 28 Sep 2021 15:27:44 +0000 (16:27 +0100)]
Fedora 34 and iptables-compat fix, along with properly utilising iptables variable
Adrian Iurca [Tue, 28 Sep 2021 12:58:04 +0000 (15:58 +0300)]
Merge pull request #1017 from puppetlabs/pdksync_IAC-1751/main/add_rocky_8_support
pdksync - (IAC-1751) - Add Support for Rocky 8
David Swan [Tue, 28 Sep 2021 09:32:51 +0000 (10:32 +0100)]
(IAC-1751) - Add Support for Rocky 8
Adrian Iurca [Thu, 23 Sep 2021 09:04:27 +0000 (12:04 +0300)]
Merge pull request #1015 from puppetlabs/pdksync_IAC-1598/main/remove_debian_8_support
pdksync - (IAC-1598) - Remove Support for Debian 8
David Swan [Wed, 15 Sep 2021 12:43:36 +0000 (13:43 +0100)]
(IAC-1598) - Remove Support for Debian 8
carabasdaniel [Fri, 10 Sep 2021 10:49:00 +0000 (13:49 +0300)]
Merge pull request #1014 from puppetlabs/pull-back-pr-945
Add carp protocol to :proto property
adrianiurca [Fri, 10 Sep 2021 06:43:37 +0000 (09:43 +0300)]
add unit test for carp protocol
pellisesol [Fri, 2 Oct 2020 17:06:33 +0000 (12:06 -0500)]
Update firewall.rb
On Gentoo using 'vrrp' sets the proto to 112 but when puppet runs it interprets 112 as 'carp' which it then corrects to 'vrrp' which is still 112. So it redoes the rule every time puppet runs. Adding carp here allows carp to be set as a valid option which removes the loop.
Adrian Iurca [Mon, 6 Sep 2021 18:29:41 +0000 (21:29 +0300)]
Merge pull request #1006 from bastelfreak/testpr
Replace travis link in README.md with GHA
Tim Meusel [Mon, 16 Aug 2021 11:49:34 +0000 (13:49 +0200)]
Replace travis link in README.md with GHA
Adrian Iurca [Mon, 6 Sep 2021 13:12:32 +0000 (16:12 +0300)]
Merge pull request #1012 from puppetlabs/release-prep
Release prep v3.2.0
GitHub Action [Mon, 6 Sep 2021 13:10:59 +0000 (13:10 +0000)]
Release prep v3.2.0
sheenaajay [Mon, 6 Sep 2021 13:07:30 +0000 (14:07 +0100)]
Merge pull request #1011 from puppetlabs/pdksync-changelog-max-issues-500
pdksync: changelog_max_issues set to 500
adrianiurca [Mon, 6 Sep 2021 12:33:50 +0000 (15:33 +0300)]
pdksync: changelog_max_issues set to 500
Adrian Iurca [Mon, 6 Sep 2021 12:17:41 +0000 (15:17 +0300)]
Merge pull request #1010 from drivenet/feature/fix-nil-gsub-for-uid-setup
Fix "undefined method `gsub' for nil:NilClass" when changing existing rule UID from absent to any present
Aristarkh Zagorodnikov [Tue, 31 Aug 2021 09:31:01 +0000 (12:31 +0300)]
Fix "undefined method `gsub' for nil:NilClass" when changing existing rule UID from absent to present
Michael T Lombardi (He/Him) [Mon, 30 Aug 2021 16:54:41 +0000 (11:54 -0500)]
Merge pull request #1009 from smortex/stdlib-ci
(IAC-1739) Fix CI with stdlib 8.0.0
adrianiurca [Mon, 30 Aug 2021 15:52:21 +0000 (18:52 +0300)]
oracle-7 is using iptables instead of iptables-services
Romain Tartière [Thu, 26 Aug 2021 17:34:27 +0000 (07:34 -1000)]
(IAC-1741) Prefer 'installed' to 'present' for packages
stdlib 8.0.0 fixed this value for `ensure_package`, so we have to sync
with it. While here, also use `installed` for package resources.
Because 'present' is still something that works, this is not a breaking
change.
david22swan [Wed, 25 Aug 2021 10:24:35 +0000 (11:24 +0100)]
(IAC-1741) Allow stdlib v8.0.0
daianamezdrea [Mon, 9 Aug 2021 08:46:58 +0000 (11:46 +0300)]
Merge pull request #1005 from puppetlabs/pdksync_IAC-1709/main/add_debian_11_support
pdksync - (IAC-1709) - Add Support for Debian 11
adrianiurca [Sun, 8 Aug 2021 21:21:50 +0000 (00:21 +0300)]
mac_source is downcased by iptables also on debian-11
David Swan [Wed, 4 Aug 2021 14:42:25 +0000 (15:42 +0100)]
(IAC-1709) - Add Support for Debian 11
Adrian Iurca [Mon, 26 Jul 2021 08:52:30 +0000 (11:52 +0300)]
Merge pull request #1003 from puppetlabs/release-prep
Release prep v3.1.0
GitHub Action [Mon, 26 Jul 2021 08:47:12 +0000 (08:47 +0000)]
Release prep v3.1.0
daianamezdrea [Fri, 23 Jul 2021 06:56:48 +0000 (09:56 +0300)]
Merge pull request #1002 from puppetlabs/modules-11138-Facter-fact-error
(MODULES-11138) - Fix mac_source Facter.fact().value() issue with Facter 3
adrianiurca [Thu, 22 Jul 2021 15:27:35 +0000 (18:27 +0300)]
use new facts instead of legacy facts
adrianiurca [Wed, 21 Jul 2021 12:58:09 +0000 (15:58 +0300)]
(MODULES-11138) - Facter.fact().value() not supported by facter 3
david22swan [Wed, 21 Jul 2021 10:09:45 +0000 (11:09 +0100)]
Merge pull request #1001 from puppetlabs/pdksync_iac-1149
pdksync - (maint) - Updating Contribution Guidelines
Paula Muir [Tue, 20 Jul 2021 14:28:52 +0000 (15:28 +0100)]
(maint) Updating CONTRIBUTING guidelines
Adrian Iurca [Mon, 19 Jul 2021 12:42:59 +0000 (15:42 +0300)]
Merge pull request #998 from vchepkov/rocky
add compatibility with Rocky Linux
carabasdaniel [Mon, 19 Jul 2021 12:35:10 +0000 (15:35 +0300)]
Merge pull request #1000 from puppetlabs/release-prep
Release prep v3.0.2
adrianiurca [Mon, 19 Jul 2021 12:04:30 +0000 (15:04 +0300)]
update HISTORY.md and cleanup CHANGELOG.md
GitHub Action [Mon, 19 Jul 2021 11:24:16 +0000 (11:24 +0000)]
Release prep v3.0.2
carabasdaniel [Mon, 19 Jul 2021 11:08:35 +0000 (14:08 +0300)]
Merge pull request #999 from puppetlabs/update-since-tag
Update changelog_since_tag
adrianiurca [Mon, 19 Jul 2021 10:17:42 +0000 (13:17 +0300)]
pdksync v2.1.1
Adrian Iurca [Tue, 13 Jul 2021 11:37:12 +0000 (14:37 +0300)]
Update changelog_since_tag
Vadym Chepkov [Sat, 10 Jul 2021 22:46:53 +0000 (18:46 -0400)]
add compatibility with Rocky Linux
Adrian Iurca [Tue, 6 Jul 2021 11:29:51 +0000 (14:29 +0300)]
Merge pull request #996 from operasoftware-osp/fix-parsing
fix: parsing random_fully in ip6tables
Łukasz Czapliński [Thu, 1 Jul 2021 13:21:29 +0000 (15:21 +0200)]
fix: parsing random_fully in ip6tables
Looks like
https://github.com/puppetlabs/puppetlabs-firewall/commit/
9a4bc6a81cf0cd4a56ba458fadac830a2c4df529
added relevant params only to iptables, not ip6tables.
This results in warnings like
```
Warning: Puppet::Type::Firewall::ProviderIp6tables: Skipping unparsable iptables rule: keys (3) and values (4) count mismatch on line: -A KUBE-POSTROUTING -m comment --comment "kubernetes service traffic requiring SNAT" -j MASQUERADE --random-fully
```
carabasdaniel [Mon, 5 Jul 2021 14:58:31 +0000 (17:58 +0300)]
Merge pull request #997 from puppetlabs/mac_source-idempotency
sles-15: mac_source is downcased by iptables
adrianiurca [Mon, 5 Jul 2021 10:34:49 +0000 (13:34 +0300)]
mac_source is downcased by iptables
sheenaajay [Mon, 21 Jun 2021 14:26:36 +0000 (15:26 +0100)]
Merge pull request #995 from puppetlabs/release-prep
Release prep v3.0.1
GitHub Action [Mon, 21 Jun 2021 11:50:51 +0000 (11:50 +0000)]
Release prep v3.0.1
Michael T Lombardi (He/Him) [Mon, 7 Jun 2021 15:21:19 +0000 (10:21 -0500)]
Merge pull request #994 from puppetlabs/pdksync_pdkupdate
pdksync - (maint) PDKSync - PDK Update
Daniel Carabas [Mon, 7 Jun 2021 10:07:18 +0000 (13:07 +0300)]
(maint) pdksync - PDK Update
Adrian Iurca [Mon, 17 May 2021 08:45:18 +0000 (11:45 +0300)]
Merge pull request #993 from Samgarr/patch-1
Fixed link to REFERENCE.md
Jan Pechek [Thu, 29 Apr 2021 15:35:07 +0000 (17:35 +0200)]
Fixed link to REFERENCE.md
daianamezdrea [Tue, 27 Apr 2021 11:40:54 +0000 (14:40 +0300)]
Merge pull request #992 from puppetlabs/pdksync_pdk_update
pdksync - (maint) Running pdk update
Paula Muir [Mon, 26 Apr 2021 20:07:53 +0000 (21:07 +0100)]
(maint) Running a pdk update to consume latest pdk-template changes
Paula Muir [Thu, 22 Apr 2021 16:43:41 +0000 (17:43 +0100)]
Merge pull request #989 from puppetlabs/nightly-failures
mount /lib/modules/5.4.0-azure to docker containers
adrianiurca [Thu, 22 Apr 2021 16:13:28 +0000 (19:13 +0300)]
mount /lib/modules/5.4.0-azure to docker containers
daianamezdrea [Wed, 21 Apr 2021 15:07:32 +0000 (18:07 +0300)]
Merge pull request #983 from puppetlabs/pdksync_releaseprepupdate
pdksync - PDK Update for auto release prep workflow
adrianiurca [Thu, 8 Apr 2021 12:53:59 +0000 (15:53 +0300)]
mount kernel for docker container
david22swan [Mon, 19 Apr 2021 09:24:26 +0000 (10:24 +0100)]
Merge pull request #986 from arjenz/patch-1
Update README.md
Arjen Zonneveld [Thu, 15 Apr 2021 12:21:42 +0000 (14:21 +0200)]
Update README.md
`state` does not allow inversion, nor in the puppet code in this project nor in iptables rules.
Adrian Iurca [Mon, 12 Apr 2021 11:18:05 +0000 (14:18 +0300)]
Merge pull request #985 from pmcmaw/manage_inventory_loc
(GH-380) - Litmus, move inventory location
Paula Muir [Thu, 8 Apr 2021 09:21:07 +0000 (10:21 +0100)]
(GH-380) - Litmus, move inventory location
Disha-maker [Thu, 8 Apr 2021 08:46:22 +0000 (09:46 +0100)]
Merge pull request #984 from puppetlabs/pdksync-locales_remove
pdksync - (maint) - Remove Locales Folder
David Swan [Wed, 7 Apr 2021 14:40:51 +0000 (15:40 +0100)]
(maint) - Removal of Locales Folder
Daniel Carabas [Fri, 2 Apr 2021 11:19:36 +0000 (14:19 +0300)]
PDK Update for release prep workflow
Tim Skirvin [Mon, 29 Mar 2021 15:04:17 +0000 (10:04 -0500)]
typo fix in CHANGELOG
Tim Skirvin [Wed, 17 Mar 2021 15:54:49 +0000 (10:54 -0500)]
regex style change to make rubocop happy
Tim Skirvin [Wed, 10 Mar 2021 15:03:40 +0000 (09:03 -0600)]
lib/puppet/provider/firewall/iptables.rb - comments cleanup for parsing
Per <https://tickets.puppetlabs.com/browse/MODULES-6876>, there are
problems with parsing some iptables rules with space and quotes
(specifically ones created by podman). This re-clears the comments
field if it made it through earlier parsing.
Adrian Iurca [Mon, 1 Mar 2021 15:41:06 +0000 (17:41 +0200)]
Merge pull request #973 from puppetlabs/release-prep
Release prep v3.0.0
GitHub Action [Mon, 1 Mar 2021 14:57:38 +0000 (14:57 +0000)]
Release prep v3.0.0
Paula Muir [Wed, 24 Feb 2021 21:33:19 +0000 (21:33 +0000)]
Merge pull request #977 from puppetlabs/pdksync_maint/main/deprecate_sles11
pdksync - (MAINT) Remove SLES 11 support
Ciaran McCrisken [Wed, 24 Feb 2021 17:04:19 +0000 (17:04 +0000)]
(MAINT) Remove SLES 11 support
Paula Muir [Wed, 24 Feb 2021 15:07:06 +0000 (15:07 +0000)]
Merge pull request #976 from puppetlabs/pdksync_maint/main/deprecate_rhel_5_family
pdksync - (MAINT) Remove RHEL 5 family support
Ciaran McCrisken [Wed, 24 Feb 2021 13:56:19 +0000 (13:56 +0000)]
(MAINT) Remove RHEL 5 OS family support
Michael T Lombardi (He/Him) [Tue, 23 Feb 2021 01:30:42 +0000 (19:30 -0600)]
Merge pull request #974 from puppetlabs/maint/main/update_dependency
(maint) Update major dependencies prior to release
Paula Muir [Mon, 22 Feb 2021 16:19:32 +0000 (16:19 +0000)]
(maint) Update major dependencies prior to release
David Schmitt [Thu, 18 Feb 2021 09:20:11 +0000 (09:20 +0000)]
Merge pull request #972 from puppetlabs/pdksync_remove_puppet5
pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0
Daniel Carabas [Tue, 16 Feb 2021 17:19:03 +0000 (19:19 +0200)]
Add auto_release.yml to sync.yml
Daniel Carabas [Tue, 16 Feb 2021 13:36:49 +0000 (15:36 +0200)]
pdk update