CrowdStrike / psfalcon

PowerShell for CrowdStrike's OAuth2 APIs
The Unlicense
350 stars 66 forks source link

[ BUG ] `Import-FalconConfig` ignores `FirewallGroup` #380

Closed bk-cs closed 1 week ago

bk-cs commented 7 months ago

Describe the bug When attempting to use Import-FalconConfig with an archive that has one or more FirewallGroup items, it is ignored

To Reproduce Create an export that includes FirewallGroup (either by itself, or with other items like FirewallPolicy) and attempt to import

Expected behavior Successful FirewallGroup creation

Environment (please complete the following information):

bk-cs commented 7 months ago

This issue will be fixed in the next release. If you'd like to resolve it for your local module before release, you can replace public\psf-config.ps1 using the steps outlined below.

Import-Module -Name PSFalcon
$ModulePath = (Show-FalconModule).ModulePath
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/436359c40767a614b03694c81d8333a9f2a639e5/public/psf-config.ps1 -UseBasicParsing).Content > (Join-Path (Join-Path $ModulePath public) psf-config.ps1)

Once the fix has been applied, you must restart PowerShell and re-import PSFalcon.

EDIT: Updated link to include recent commit because of accidental removal of fix.

bk-cs commented 1 week ago

This fix is included in the 2.2.7 release.