]>
review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/log
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
david22swan [Thu, 21 Apr 2022 09:07:03 +0000 (10:07 +0100)]
(GH-cat-9) syntax:hiera:yaml exclusions added
david22swan [Thu, 21 Apr 2022 09:06:53 +0000 (10:06 +0100)]
(GH-cat-9) syntax:hiera:yaml fixes
david22swan [Wed, 20 Apr 2022 10:07:40 +0000 (11:07 +0100)]
(maint) PDK Update
Lukas Audzevicius [Mon, 4 Apr 2022 14:24:07 +0000 (15:24 +0100)]
Merge pull request #1044 from puppetlabs/pdksync_pdksync-use_pull_request_target
pdksync - PDKSYNC Update labeller trigger
Craig Gumbley [Mon, 4 Apr 2022 13:09:46 +0000 (14:09 +0100)]
"This commit changes the workflow trigger for pull requests to pull_request_target"
Craig Gumbley [Thu, 31 Mar 2022 15:25:18 +0000 (16:25 +0100)]
Merge pull request #1035 from david22swan/GH1031/main/test_fixes
(GH-1031) Oracle/Scientific Linux 6 Fix
david22swan [Thu, 31 Mar 2022 13:57:56 +0000 (14:57 +0100)]
(GH-1031) Oracle/Scientific Linux 6 Fix
david22swan [Wed, 30 Mar 2022 14:25:46 +0000 (15:25 +0100)]
Merge pull request #1040 from david22swan/GH-C&T-7/main/remove_compatible_code
(GH-C&T-7) Remove code specific to unsupported OSs
david22swan [Wed, 30 Mar 2022 12:01:31 +0000 (13:01 +0100)]
(GH-C&T-7) Remove code specific to unsupported OSs
Lukas Audzevicius [Tue, 29 Mar 2022 13:17:58 +0000 (14:17 +0100)]
Merge pull request #1036 from puppetlabs/pdksync_pdksync_heads/
main-0-gf3911d3
pdksync - pdksync_heads/
main-0-gf3911d3
david22swan [Tue, 29 Mar 2022 09:05:51 +0000 (10:05 +0100)]
(GH-C&T-9) Temporarily disable syntax checks
Lukas Audzevicius [Fri, 25 Mar 2022 16:13:54 +0000 (16:13 +0000)]
Merge pull request #1039 from puppetlabs/pdksync_pdksync_add_workflows
pdksync - Add labeller and stale GHA workflows
Craig Gumbley [Fri, 25 Mar 2022 15:33:44 +0000 (15:33 +0000)]
(MAINT) Fixes no new line at EOF
Craig Gumbley [Fri, 25 Mar 2022 15:12:32 +0000 (15:12 +0000)]
(MAINT) Add labeller and stale GHA workflows
Lukas Audzevicius [Thu, 24 Mar 2022 10:25:35 +0000 (10:25 +0000)]
Merge pull request #1038 from puppetlabs/pdksync_GH-iac-334/main/remove_ubuntu_16.04_support
pdksync - (GH-iac-334) Remove Support for Ubuntu 14.04/16.04
david22swan [Wed, 23 Mar 2022 16:08:30 +0000 (16:08 +0000)]
(maint) Remove support for Ubuntu 14.04
david22swan [Wed, 23 Mar 2022 12:34:18 +0000 (12:34 +0000)]
(GH-iac-334) Remove Support for Ubuntu 16.04
david22swan [Wed, 16 Mar 2022 15:31:06 +0000 (15:31 +0000)]
Craig Gumbley [Mon, 14 Mar 2022 11:14:55 +0000 (11:14 +0000)]
Merge pull request #1034 from david22swan/GH1031/main/test_fixes
(GH-1031) Fix for CentOS 8
david22swan [Thu, 10 Mar 2022 10:50:21 +0000 (10:50 +0000)]
(GH-1031) Fix for CentOS 8
Craig Gumbley [Mon, 28 Feb 2022 15:22:23 +0000 (15:22 +0000)]
Merge pull request #1032 from puppetlabs/maint/main/prerelease
Release prep v3.4.0
david22swan [Mon, 28 Feb 2022 15:20:21 +0000 (15:20 +0000)]
Release prep v3.4.0
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.
Tim Skirvin [Mon, 14 Feb 2022 16:23:02 +0000 (10:23 -0600)]
CentOS Stream 9 Support (should include RHEL9 when that releases)
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
Aristarkh Zagorodnikov [Tue, 14 Dec 2021 21:56:04 +0000 (00:56 +0300)]
Fix whitespace
Aristarkh Zagorodnikov [Tue, 14 Dec 2021 21:52:40 +0000 (00:52 +0300)]
Fix whitespace
Aristarkh Zagorodnikov [Tue, 14 Dec 2021 21:45:16 +0000 (00:45 +0300)]
Make rpfilter feature conditional based on minimal requirements
Aristarkh Zagorodnikov [Mon, 6 Sep 2021 17:23:52 +0000 (20:23 +0300)]
Fix rpfilter parameter
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