CrowdStrike / psfalcon

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

[ BUG ] Unable to use severity `critical` with `Edit-FalconHorizonPolicy` #363

Closed mdurnell closed 9 months ago

mdurnell commented 10 months ago

Describe the bug Edit-FalconHorizonPolicy does not allow the value of criticalfor the -Severity parameter.

To Reproduce Edit-FalconHorizonPolicy -Id 223 -Enabled $true -Severity critical

Expected behavior Critical is a valid severity level for CSPM policies

Environment (please complete the following information):

bk-cs commented 10 months ago

Thank you for the report!. This has been fixed for the next release.

You can resolve it for you installed version of PSFalcon by editing Public\settings.ps1 and changing the ValidateSet line for Edit-FalconHorizonPolicy from...

[ValidateSet('informational','medium','high',IgnoreCase=$false)]

to...

[ValidateSet('informational','medium','high','critical',IgnoreCase=$false)]
bk-cs commented 9 months ago

Resolved in 2.2.6 release which has been published to GitHub and will be published on the PowerShell Gallery soon.