Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mdurnell opened this issue Nov 7, 2023 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@mdurnell
Copy link

mdurnell commented Nov 7, 2023

Describe the bug
Edit-FalconHorizonPolicy does not allow the value of critical for 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):

  • OS: Windows 10
  • PowerShell: 5.1.19041.3570
  • PSFalcon: 2.2.5
@mdurnell mdurnell added the bug Something isn't working label Nov 7, 2023
bk-cs added a commit that referenced this issue Nov 7, 2023
Issue #363: Added critical as a severity for `Edit-FalconHorizonPolicy`
@bk-cs
Copy link
Collaborator

bk-cs commented Nov 7, 2023

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 bk-cs changed the title [ BUG ] Add critical severity option to Edit-FalconHorizonPolicy function [ BUG ] Unable to use severity critical with Edit-FalconHorizonPolicy Nov 8, 2023
@bk-cs bk-cs mentioned this issue Nov 22, 2023
5 tasks
@bk-cs
Copy link
Collaborator

bk-cs commented Nov 22, 2023

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

@bk-cs bk-cs closed this as completed Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants