Firewall and FirewallProfile: Add PolicyStore to allow targeting local group policy

オープン
#428 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

@brajjan がすでに取り組んでいます。

2022年9月3日 から。

  • #517 @brajjan による — マージされずにクローズ
  • #518 @brajjan による — オープン
  • #519 @brajjan による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
powershell
領域
networking

調査の方向性

まず Firewall と FirewallProfile リソース、およびそれらの Get/Set/Test-TargetResource 関数を見つけ、次に指定されたヘルパーと NetFirewall コマンドの呼び出しをたどります。PolicyStore が指定され、ルールが存在する場合と存在しない場合の Get-FirewallRule に関する 2 つの Pester テストを確認します。両方のリソースがデフォルトとして persistentstore を使用する PolicyStore をサポートし、一覧にあるヘルパー、コマンド、テストのパスがカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement help wanted
Details of the scenario you tried and the problem that is occurring

Enable the "PolicyStore" parameter to be specified to permit targeting the local group policy store of the machine as well as the default persistent store when using both the Firewall and FirewallProfile resources

Verbose logs showing the problem

New Feature request

Suggested solution to the issue

Add "policystore" as a DSC property for both Firewall and FirewallProfile resources
Set the default value of the "policystore" parameter to be "persistentstore" to make it a non-breaking change and accommodate all existing configurations.
Add "policystore" parameter to

  • Get/Set/Test-TargetResource functions in both Resources
  • Get-FirewallRule and Get-FirewalRulleProperty helper functions in Firewall resource
  • Get/Set/New-NetFirewallRule commands in Firewall resource
  • Get/Set-NetFirewallProfile commands in FirewallProfile resource
The DSC configuration that is used to reproduce the issue (as detailed as possible)

New Feature request

The operating system the target node is running

Server 2016/2019 - New Feature request

Version and build of PowerShell the target node is running

New Feature request

Version of the DSC module that was used ('dev' if using current dev branch)

dev

I have made and tested the required changes and can happily submit a pull request with the updates to the code and localization strings.

I have also added two Pester tests to the Firewall resources for the helper function "Get-FirewallRule" when the -policystore is specified and the firewall rule is present/absent.

主要言語
PowerShell
スター
234
フォーク
92
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dsccommunity/NetworkingDsc のほかの issue

dsccommunity/NetworkingDsc の issue をすべて見る

似ている issue

Networking の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。