You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since recently ( less than one year ago ), two new policy categories are listed under the device_policies section of a host JSON depiction :
[
"device_control",
"firewall",
"global_config", <- was already there, not a problem
"prevention",
"remote_response",
"sca", <- here
"sensor_update", <- and here
"system-tray"
]
FalconPy has no API to enumerate these.
To Reproduce
Get any host device details, you'll get these API references under the device_policies section mentioned above, we can't enumerate them to get their names & properties & associated values.
FalconPy would have an API to grab the details of the sca and system-tray policies. That would allow me to update the table of API function names for policies in my own code:
policy_types= {
"prevention" : 'queryCombinedPreventionPolicies', # Prevention Policies https://falcon.eu-1.crowdstrike.com/configuration/prevention/policies"sensor_update": 'queryCombinedSensorUpdatePoliciesV2', # Sensor Update Policies https://falcon.eu-1.crowdstrike.com/configuration/sensor-update/policies"device_control": 'queryCombinedDeviceControlPolicies', # USB device policies https://falcon.eu-1.crowdstrike.com/policies/device-control# "global_config": None, # (?) Exposed by the Host API but not browsable"remote_response": 'queryCombinedRTResponsePolicies', # Response policies https://falcon.eu-1.crowdstrike.com/policies/response/windows"firewall": 'queryCombinedFirewallPolicies', # Firewall policies https://falcon.eu-1.crowdstrike.com/policies/firewallv2# These two are new :"sca": '???', # (?) On demand scans ???"system-tray": '???'# Falcon icon policies https://falcon.eu-1.crowdstrike.com/policies/system-tray/windows
}
Also, side note, this whole Policy thing is getting a little bit out of hand right ? One year ago there were only two settings, and now you're adding new functions & API endpoints for each little settings you might want to have. Shouldn't there be some unified policy API at some point ? I'm no API designer expert though :D
The Web UI upstream API has this pretty much sorted out :
I wouldn't be against a generic "queryPolicy" with a policy type parameter.
Thanks !
Environment (please complete the following information):
This discussion was converted from issue #1128 on March 07, 2024 18:08.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the bug
Since recently ( less than one year ago ), two new policy categories are listed under the
device_policies
section of a host JSON depiction :FalconPy has no API to enumerate these.
To Reproduce
Get any host device details, you'll get these API references under the
device_policies
section mentioned above, we can't enumerate them to get their names & properties & associated values.Expected behavior
FalconPy would have an API to grab the details of the
sca
andsystem-tray
policies. That would allow me to update the table of API function names for policies in my own code:Also, side note, this whole Policy thing is getting a little bit out of hand right ? One year ago there were only two settings, and now you're adding new functions & API endpoints for each little settings you might want to have. Shouldn't there be some unified policy API at some point ? I'm no API designer expert though :D
The Web UI upstream API has this pretty much sorted out :
I wouldn't be against a generic "queryPolicy" with a policy type parameter.
Thanks !
Environment (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions