Skip to content

Add override_block_rules parameter to windows_firewall_rule#39

Open
sbrito85 wants to merge 2 commits intowebalexeu:mainfrom
sbrito85:add-override-block-rules-setting
Open

Add override_block_rules parameter to windows_firewall_rule#39
sbrito85 wants to merge 2 commits intowebalexeu:mainfrom
sbrito85:add-override-block-rules-setting

Conversation

@sbrito85
Copy link

@sbrito85 sbrito85 commented Aug 8, 2025

Summary

Add the ability to set OverrideBlockRules in firewall rules

Additional Context

Add any additional context about the problem here.
We previously did not have the ability to change this setting. Adding that feature here.

Related Issues (if any)

#38

Checklist

  • Manually verified using
    windows_firewall_rule { 'Test Rule':
    ensure => 'present',
    action => 'allow',
    authentication => 'required',
    override_block_rules => 'true',
    description => 'test rule',
    direction => 'outbound',
    edge_traversal_policy => 'block',
    enabled => 'false',
    remote_port => '9999',
    protocol => 'tcp',
    profile => ['domain', 'private'],
    }

Copy link
Owner

@webalexeu webalexeu left a comment

Choose a reason for hiding this comment

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

Can you please review and also update the documentation using puppet strings ?

Thank you for your work, I will finish the review later this week

@sbrito85 sbrito85 requested a review from webalexeu August 26, 2025 13:59
@webalexeu webalexeu self-assigned this Aug 27, 2025
Copy link
Owner

@webalexeu webalexeu left a comment

Choose a reason for hiding this comment

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

Please fix those last comments
I will release a version afer this review

DisplayName = $DisplayName;
Description = $Description;
Action = $Action;
Action = $Action;
Copy link
Owner

Choose a reason for hiding this comment

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

Please remove the unnecessary spaces

$params.Add("Direction", $Direction)
}
if ($OverrideBlockRules) {
$params.Add("OverrideBlockRules", [bool]$OverrideBlockRules)
Copy link
Owner

Choose a reason for hiding this comment

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

Please don't force the type
It will need to be aligned globally to set types on all resources

$params.Add("Direction", $Direction)
}
if ($OverrideBlockRules) {
$params.Add("OverrideBlockRules", [bool]$OverrideBlockRules)
Copy link
Owner

Choose a reason for hiding this comment

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

Please don't force the type
It will need to be aligned globally to set types on all resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants