]>
review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/log
david22swan [Fri, 24 Mar 2023 16:37:20 +0000 (16:37 +0000)]
Merge pull request #1115 from puppetlabs/CONT-751-Implement_reusable_workflows
(CONT-752) - Implement reusable workflows
jordanbreen28 [Mon, 20 Mar 2023 13:40:20 +0000 (13:40 +0000)]
(CONT-752) - Implement reusable workflows
jordanbreen28 [Tue, 21 Mar 2023 15:57:16 +0000 (15:57 +0000)]
Merge pull request #1113 from puppetlabs/maint-pin_puppet_agent_fixture
(MAINT) Pin puppetlabs-puppet_agent
Craig Gumbley [Tue, 21 Mar 2023 10:18:04 +0000 (10:18 +0000)]
(MAINT) Pin puppetlabs-puppet_agent
This change pins the puppetlabs-puppet_agent module to v4.12.1.
Previosuly, the fixutre was configured to pull from main. Given the
recent changes when moving towards puppet8, main is unsafe.
david22swan [Wed, 8 Mar 2023 09:57:52 +0000 (09:57 +0000)]
Merge pull request #1107 from buzzdeee/main
Ignore OpenBSD, similarly to FreeBSD
david22swan [Wed, 8 Mar 2023 09:57:19 +0000 (09:57 +0000)]
Merge pull request #1110 from puppetlabs/CONT-352-Syntax_update
(CONT-352) Syntax update
Lukas Audzevicius [Thu, 16 Feb 2023 14:51:07 +0000 (14:51 +0000)]
bugfix
Lukas Audzevicius [Tue, 14 Feb 2023 16:53:04 +0000 (16:53 +0000)]
parameter datatypes
Lukas Audzevicius [Tue, 14 Feb 2023 11:25:18 +0000 (11:25 +0000)]
top scope facts
Lukas Audzevicius [Tue, 14 Feb 2023 11:09:45 +0000 (11:09 +0000)]
relative classname inclusion
Lukas Audzevicius [Tue, 14 Feb 2023 11:01:42 +0000 (11:01 +0000)]
(CONT-352) Syntax update
Code now compliant with rules regarding:
legacy facts
Lukas Audzevicius [Wed, 1 Feb 2023 15:11:46 +0000 (15:11 +0000)]
Merge pull request #1108 from puppetlabs/pdksync_CONT-211-add_mend_config
pdksync - (CONT-211) Adding mend config
Paula Muir [Wed, 1 Feb 2023 12:04:54 +0000 (12:04 +0000)]
Adding mend file
Lukas Audzevicius [Fri, 27 Jan 2023 12:12:39 +0000 (12:12 +0000)]
Merge pull request #1095 from ahrefs/main
debian: service: fix `ensure` parameter usage
Sebastian Reitenbach [Wed, 25 Jan 2023 10:52:43 +0000 (11:52 +0100)]
Ignore OpenBSD, similarly to FreeBSD
jordanbreen28 [Wed, 18 Jan 2023 16:04:01 +0000 (16:04 +0000)]
Merge pull request #1106 from puppetlabs/pdksync_CONT-494/pin_github_changelog_generator
pdksync - (CONT-494) Pin github_changelog_generator and JSON gem versions
david22swan [Wed, 18 Jan 2023 14:20:37 +0000 (14:20 +0000)]
(CONT-494) Fix for .sync.yml
david22swan [Tue, 17 Jan 2023 18:12:32 +0000 (18:12 +0000)]
(CONT-494) PDK Update
david22swan [Tue, 17 Jan 2023 18:02:56 +0000 (18:02 +0000)]
(CONT-494) Pin github_changelog_generator gem version
Lukas Audzevicius [Mon, 9 Jan 2023 10:14:12 +0000 (10:14 +0000)]
Merge pull request #1103 from robertc99/main
redhat9 needs iptables service
Damon Breeden [Fri, 6 Jan 2023 19:20:32 +0000 (19:20 +0000)]
firewall: tests: add required `facts` declarations
https://github.com/puppetlabs/puppetlabs-firewall/actions/runs/
3857494896 /jobs/
6575029953 #step:9:1110
Damon Breeden [Fri, 6 Jan 2023 18:17:09 +0000 (18:17 +0000)]
firewall: tests: add `debian` tests for `ensure => stopped`
also `with Debian unstable, ensure => stopped`, seems to have been overlooked
Damon Breeden [Fri, 6 Jan 2023 17:08:03 +0000 (17:08 +0000)]
firewall: tests: update `contain_service` to `running` for `debian`
bc its necessary with the new changes https://github.com/puppetlabs/puppetlabs-firewall/pull/1095#issuecomment-
1339654976
damonbreeden [Fri, 6 Jan 2023 16:59:36 +0000 (11:59 -0500)]
Merge branch 'puppetlabs:main' into main
Robert Cohen [Fri, 23 Dec 2022 03:43:47 +0000 (14:43 +1100)]
redhat9 needs iptables service
Gavin Patton [Tue, 13 Dec 2022 10:30:31 +0000 (10:30 +0000)]
Merge pull request #1101 from puppetlabs/pdksync_maint-remove_stale_bot
pdksync - (MAINT) Remove stalebot
Craig Gumbley [Tue, 13 Dec 2022 10:00:15 +0000 (10:00 +0000)]
(MAINT) Remove stalebot workflow
jordanbreen28 [Wed, 7 Dec 2022 09:42:49 +0000 (09:42 +0000)]
Merge pull request #1099 from puppetlabs/release-prep
Release prep v4.0.1
GitHub Action [Tue, 6 Dec 2022 19:13:57 +0000 (19:13 +0000)]
Release prep v4.0.1
Lukas Audzevicius [Tue, 6 Dec 2022 17:11:17 +0000 (17:11 +0000)]
(GH-1097) Bumping back required puppet version (#1098)
Prior to this commit, due to a mistake, there was a reversion to the
previously implemented bump to minimum required puppet version, which
was part of the CVE update.
This commit aims to address issue 1097 in Github which brings to light
the need for this puppet bump to be restored to 6.24
Lukas Audzevicius [Tue, 6 Dec 2022 15:34:29 +0000 (15:34 +0000)]
Merge pull request #1094 from puppetlabs/1093-fix_unresolved_fact_error
(1093) - Fix unresolved fact error
jordanbreen28 [Tue, 29 Nov 2022 12:28:58 +0000 (12:28 +0000)]
(1093) - Fix unresolved fact error
Prior to this commit, work was carried out on this module to update all instances of the now deprecated Facter::Util::Resolution, and replace all with its newer and supported counterpart Facter::Core::Execution.
However, these do not behave exactly the same. Facter::Util::Resolution initially ran a which to locate the binary before executing, preventing any errors from occuring. The newer Facter::Core::Execution method did not do this, instead it attempted to execut>
This commit aims to introduce an "on_fail:false" flag to each execute statement, so that a failed execute will return false (boolean) as oppose to an error, which can then be used for further logic.
jordanbreen28 [Tue, 6 Dec 2022 11:14:05 +0000 (11:14 +0000)]
Merge pull request #1085 from kjetilho/fix/iptables-el9
package "iptables" has been replaced by "iptables-nft" on EL9
Kjetil Torgrim Homme [Sun, 6 Nov 2022 16:00:40 +0000 (17:00 +0100)]
package "iptables" has been replaced by "iptables-nft" on EL9
There are some pointers given by dnf about "iptables", but these confuse
Puppet into aborting with the error message:
```console
Error: /Stage[main]/Firewall::Linux/Package[iptables]: Could not evaluate: no implicit conversion of Array into Hash
```
Fedora had a similar patch in commit
486e4b5779f5069e which I think
fixed the bug https://tickets.puppetlabs.com/browse/MODULES-11147 but
the same issue rared its head here on AlmaLinux 9.0.
The RPM for iptables-legacy states:
> This package contains the legacy tools which are obsoleted by
> nft-variants in iptables-nft package for backwards compatibility reasons.
> If you need to set up firewalls and/or IP masquerading, you should not install
> this package but either nftables or iptables-nft instead.
jordanbreen28 [Tue, 6 Dec 2022 08:37:13 +0000 (08:37 +0000)]
Merge pull request #1096 from kjetilho/fix/nflog_size
Kjetil Torgrim Homme [Mon, 5 Dec 2022 11:22:59 +0000 (12:22 +0100)]
support --nflog-size as replacement for --nflog-range
--nflog-range was deprecated way back in 2016.
https://git.netfilter.org/iptables/commit/?h=v1.6.1&id=
7070b1f3c88a0c3d4e315c00cca61f05b0fbc882
Damon Breeden [Fri, 2 Dec 2022 16:04:56 +0000 (16:04 +0000)]
debian: service: fix `ensure` parameter usage
`ensure` is defined but not used anywhere, no clear way to ensure the service is running
(and makes it impossible to do so outside the module)
Lukas Audzevicius [Tue, 22 Nov 2022 10:25:31 +0000 (10:25 +0000)]
Merge pull request #1092 from puppetlabs/release-prep
Release prep v4.0.0
GitHub Action [Tue, 22 Nov 2022 00:21:14 +0000 (00:21 +0000)]
Release prep v4.0.0
jordanbreen28 [Mon, 21 Nov 2022 15:12:16 +0000 (15:12 +0000)]
Merge pull request #1059 from cmusik/main
add support for using rpfilter in rules
Christof Musik [Mon, 18 Jul 2022 13:37:32 +0000 (15:37 +0200)]
add support for using multiple rpfilter options in rules
david22swan [Mon, 21 Nov 2022 14:27:59 +0000 (14:27 +0000)]
Merge pull request #1090 from puppetlabs/revert-1088-CONT-5-raise_minimum_puppet_required
Revert "(CONT-5) Raising minimum required puppet version"
Lukas Audzevicius [Mon, 21 Nov 2022 12:00:55 +0000 (12:00 +0000)]
Revert "(CONT-5) Raising minimum required puppet version"
jordanbreen28 [Thu, 10 Nov 2022 10:43:36 +0000 (10:43 +0000)]
Merge pull request #1087 from puppetlabs/CONT-5-Codebase_hardening
(CONT-5) Codebase hardening
jordanbreen28 [Wed, 9 Nov 2022 14:22:56 +0000 (14:22 +0000)]
Merge pull request #1088 from puppetlabs/CONT-5-raise_minimum_puppet_required
(CONT-5) Raising minimum required puppet version
Lukas Audzevicius [Wed, 9 Nov 2022 10:49:13 +0000 (10:49 +0000)]
(CONT-5) Raising minimum required puppet version
Prior to this commit, and as part of the codebase hardening project, we
sanitised some commands in the module. However, this sanitisation
method requires that users have at least puppet version 6.24.0 and
onwards to be effective.
This commit aims to resolve that requirement by raising the required
puppet version in the metadata.json file.
Lukas Audzevicius [Tue, 8 Nov 2022 13:54:22 +0000 (13:54 +0000)]
(CONT-5) Codebase hardening
Prior to this commit, and after the work perform in CONT-256, there were
a few commands in the module that were not properly sanitised according
to our current standards.
This PR aims to implement some changes that ensure no malformed commands
are passed through to the system. Primarily, the commands targeted were
the ones related to Open3 and exec.
david22swan [Fri, 4 Nov 2022 16:43:13 +0000 (16:43 +0000)]
Merge pull request #1084 from puppetlabs/CONT-256-module_cleanup
(CONT-256) Removing outdated code
Lukas Audzevicius [Thu, 3 Nov 2022 15:15:19 +0000 (15:15 +0000)]
Addressing comments
Lukas Audzevicius [Thu, 3 Nov 2022 15:11:25 +0000 (15:11 +0000)]
Rubocop corrections
Lukas Audzevicius [Thu, 3 Nov 2022 14:12:59 +0000 (14:12 +0000)]
Remove/Adjust Spec test cases
Lukas Audzevicius [Thu, 3 Nov 2022 12:14:51 +0000 (12:14 +0000)]
(CONT-256) Removing outdated code
Prior to this commit, the firewall modules had multiple instances of
outdated code.
This commit aims to clean-up some of that code to keep the module clean
and readable.
Paula Muir [Fri, 21 Oct 2022 09:00:35 +0000 (10:00 +0100)]
Merge pull request #1079 from puppetlabs/cont-173/main/updating_deprecated_facter
(CONT-173) - Updating deprecated facter instances
jordanbreen28 [Thu, 13 Oct 2022 12:39:26 +0000 (13:39 +0100)]
(CONT-173) - Updating deprecated facter instances
Prior to this PR, this module contained instances of Facter::Util::Resolution.exec and Facter::Util::Resolution.which, which are deprecated.
This PR aims to replace these exec helpers with their supported Facter::Core::Execution counterparts.
This PR:
Replaced all Facter::Util::Resolution instances with corresponding Facter::Core::Execution exec helpers
Craig Gumbley [Thu, 20 Oct 2022 21:05:26 +0000 (22:05 +0100)]
Merge pull request #1081 from puppetlabs/revert-1066-match-mark-negate
Revert "Add negate to match_mark"
Paula Muir [Thu, 20 Oct 2022 15:08:40 +0000 (16:08 +0100)]
fix lint
Paula Muir [Thu, 20 Oct 2022 15:04:27 +0000 (16:04 +0100)]
Revert "Add negate to match_mark"
david22swan [Mon, 10 Oct 2022 13:33:24 +0000 (14:33 +0100)]
Merge pull request #1066 from Enapter/match-mark-negate
Add negate to match_mark
Lukas Audzevicius [Fri, 7 Oct 2022 10:28:23 +0000 (11:28 +0100)]
Merge pull request #1078 from puppetlabs/pdksync_CONT-189/remove_os_support
pdksync - (CONT-189) Remove support for RedHat6 / OracleLinux6 / Scientific6
david22swan [Fri, 7 Oct 2022 09:02:38 +0000 (10:02 +0100)]
(CONT-189) Remove support for Scientific6
david22swan [Fri, 7 Oct 2022 09:01:56 +0000 (10:01 +0100)]
(CONT-189) Remove support for OracleLinux6
david22swan [Fri, 7 Oct 2022 09:00:50 +0000 (10:00 +0100)]
(CONT-189) Remove support for RedHat6
Craig Gumbley [Thu, 6 Oct 2022 10:08:11 +0000 (11:08 +0100)]
Merge pull request #1077 from puppetlabs/pdksync_pdksync/remove_puppet_module_gems
pdksync - (PDKSync) Removal of puppet_module_gems
Lukas Audzevicius [Thu, 6 Oct 2022 09:56:48 +0000 (10:56 +0100)]
Merge pull request #1075 from puppetlabs/pdksync_remove_debian_9
pdksync - (CONT-130) - Dropping Support for Debian 9
david22swan [Thu, 6 Oct 2022 08:52:40 +0000 (09:52 +0100)]
(PDKSync) Removal of puppet_module_gems
jordanbreen28 [Wed, 5 Oct 2022 10:28:13 +0000 (11:28 +0100)]
(CONT-130) Dropping Debian 9 Support
jordanbreen28 [Tue, 4 Oct 2022 10:44:56 +0000 (11:44 +0100)]
Merge pull request #1023 from kjetilho/fix_string_to_port
fix service port number lookup to use protocol
Kjetil Torgrim Homme [Wed, 1 Dec 2021 21:31:32 +0000 (22:31 +0100)]
fix spurious fail, http/udp does not exist in test harness
Switch to "talk" (port 517), since that is an UDP only service in the default Debian and RedHat /etc/services.
Kjetil Torgrim Homme [Wed, 1 Dec 2021 20:53:26 +0000 (21:53 +0100)]
fix service port number lookup to use protocol
The existing code passes `:proto`, which `string_to_port` casts to a
string, gets "proto", compares that to the possibilities "udp" or "tcp",
and when neither, falls back to using "tcp".
This patch passes the actual proto value to the function, in case there is
a UDP specific service in your /etc/services (uncommon, but it happens).
It looks like Puppet will evaluate the properties in declared order,
so I had to move `newproperty(:proto)` up so `@resource[:proto]` was
available in the code for `sport`, `dport` and `port`.
GSPatton [Mon, 3 Oct 2022 15:32:04 +0000 (16:32 +0100)]
Merge pull request #1074 from puppetlabs/release_prep_v3.6.0
Release prep v3.6.0
jordanbreen28 [Mon, 3 Oct 2022 14:58:15 +0000 (15:58 +0100)]
Release prep v3.6.0
Automated release-prep through pdk-templates from commit
c6023a5 .
Please verify before merging:
last nightly run is green
Changelog is readable and has no unlabeled pull requests
Ensure the changelog version and metadata version match
Craig Gumbley [Mon, 3 Oct 2022 13:37:23 +0000 (14:37 +0100)]
Merge pull request #1073 from puppetlabs/revert-1069-add-new-directives
Revert "Add new directives in rules which are currently unparsable by the module"
jordanbreen28 [Mon, 3 Oct 2022 12:49:15 +0000 (13:49 +0100)]
Revert "Add new directives in rules which are currently unparsable by the module"
jordanbreen28 [Mon, 3 Oct 2022 12:38:20 +0000 (13:38 +0100)]
Merge pull request #1069 from Enapter/add-new-directives
Add new directives in rules which are currently unparsable by the module
Craig Gumbley [Mon, 3 Oct 2022 10:02:21 +0000 (11:02 +0100)]
Merge pull request #1058 from david22swan/maint/main/random_fully
(GH-1055) Fix for `--random-fully`
david22swan [Wed, 28 Sep 2022 10:20:40 +0000 (11:20 +0100)]
(maint) Fix for negated physdev_is_*
Why confirming that this fix worked as intended it was shown that in fixing the original issue a second one had been uncovered.
This should fix the second one without infringing on the first fix.
david22swan [Wed, 13 Jul 2022 10:35:53 +0000 (11:35 +0100)]
(GH-1055) Fix for `--random-fully`
Issues have arisen with the --random-fully value on certain RedHat versions.
It seem's as if the logic put in around `--random` and `--random-fully` are no longer working.
This change should resolve the issue and tighten the logic around the `known_boolean` values.
Andrey Voronkov [Tue, 23 Aug 2022 14:52:04 +0000 (17:52 +0300)]
Add new directives in rules which are currently unparsable by the module
Andrey Voronkov [Wed, 17 Aug 2022 12:10:40 +0000 (15:10 +0300)]
Add ability match_mark to be negated
Lukas Audzevicius [Tue, 16 Aug 2022 14:09:48 +0000 (15:09 +0100)]
Merge pull request #1063 from puppetlabs/pdksync_GH-cat-11/main/add_ubuntu_22.04_support
pdksync - (GH-cat-11) Certify Support for Ubuntu 22.04
david22swan [Tue, 16 Aug 2022 12:03:18 +0000 (13:03 +0100)]
Update code for ubuntu 22.04
david22swan [Thu, 4 Aug 2022 10:28:41 +0000 (11:28 +0100)]
(GH-cat-11) Certify Support for Ubuntu 22.04
david22swan [Thu, 11 Aug 2022 11:01:09 +0000 (12:01 +0100)]
Merge pull request #1061 from corporate-gadfly/main
allow persistence of firewall rules for Suse
Haroon Rafique [Mon, 8 Aug 2022 13:41:51 +0000 (09:41 -0400)]
fix syntax error with end token
Haroon Rafique [Tue, 26 Jul 2022 17:27:31 +0000 (13:27 -0400)]
allow persistence of firewall rules for Suse
david22swan [Tue, 5 Jul 2022 12:23:45 +0000 (13:23 +0100)]
Merge pull request #1057 from david22swan/maint/main/random_fully
(maint) Fix `--random-fully` test to run on RHEL 9
david22swan [Tue, 5 Jul 2022 11:54:26 +0000 (12:54 +0100)]
(maint) Fix `--random-fully` test to run on RHEL 9
Craig Gumbley [Thu, 16 Jun 2022 09:55:20 +0000 (10:55 +0100)]
Merge pull request #1054 from puppetlabs/pdksync_GH-cat-12/main/add_redhat_9_support
pdksync - (GH-cat-12) Add Support for Redhat 9
david22swan [Thu, 16 Jun 2022 09:07:06 +0000 (10:07 +0100)]
(GH-cat-12) Fixes for RedHat 9
david22swan [Tue, 31 May 2022 15:25:29 +0000 (16:25 +0100)]
(GH-cat-12) Add Support for Redhat 9
david22swan [Mon, 23 May 2022 09:52:57 +0000 (10:52 +0100)]
Merge pull request #1052 from puppetlabs/pdksync_maint/pdk_update_stalebot
pdksync - (MAINT) Stale bot config/msg update
Lukas Audzevicius [Thu, 19 May 2022 10:22:20 +0000 (11:22 +0100)]
Config update
Lukas Audzevicius [Wed, 18 May 2022 16:34:33 +0000 (17:34 +0100)]
(MAINT) Stale-bot config/msg update
Craig Gumbley [Tue, 17 May 2022 14:50:31 +0000 (14:50 +0000)]
Merge pull request #1049 from puppetlabs/release-prep
(MAINT) Release prep v3.5.0
Lukas Audzevicius [Tue, 17 May 2022 09:12:57 +0000 (10:12 +0100)]
(MAINT) Release prep v3.5.0
Lukas Audzevicius [Mon, 16 May 2022 15:54:43 +0000 (16:54 +0100)]
Merge pull request #1028 from tskirvin/rhel9
CentOS Stream 9 Support (should include RHEL9 when that releases)
Lukas Audzevicius [Mon, 16 May 2022 11:53:09 +0000 (12:53 +0100)]
Merge pull request #1013 from drivenet/feature/fix-rpfilter
Fix rpfilter parameter
Tim Skirvin [Sun, 1 May 2022 23:39:30 +0000 (18:39 -0500)]
Merge branch 'main' into rhel9
Lukas Audzevicius [Thu, 21 Apr 2022 13:05:17 +0000 (14:05 +0100)]
Merge pull request #1047 from puppetlabs/pdksync_maint/pdk_update_20-04
pdksync - (Maint) PDK Update
david22swan [Thu, 21 Apr 2022 09:14:15 +0000 (10:14 +0100)]
(maint) Rubocop exclusions added