psfalcon icon indicating copy to clipboard operation
psfalcon copied to clipboard

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

Open bk-cs opened this issue 1 year ago • 1 comments

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):

  • OS: Windows 11, macOS
  • PowerShell: 5.1, 7.4
  • PSFalcon: 2.2.6

bk-cs avatar Jan 23 '24 20:01 bk-cs

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 avatar Jan 23 '24 20:01 bk-cs