-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
get_detections_entities: #37430
base: contrib/bdanjoux_bdanjoux-crowdstrikefalcon-correct_summaries_fetching
Are you sure you want to change the base?
get_detections_entities: #37430
Conversation
removed mentions of LEGACY_VERSION and the incorrect new API endpoint. /alerts/entities/alerts/v2 is for fetching alert details but this function is meant to fetch detection details. Corrected the argument description for cs-falcon-list-incident-summaries: ids this command fetches incident details and subsequently takes incident IDs, not detection IDs
removed mentions of LEGACY_VERSION and the incorrect new API endpoint. /alerts/entities/alerts/v2 is for fetching alert details but this function is meant to fetch detection details. list_detection_summaries_command: removed mentions of LEGACY_VERSION Corrected the argument description for cs-falcon-list-incident-summaries: ids this command fetches incident details and subsequently takes incident IDs, not detection IDs
…ct_summaries_fetching' into bdanjoux-crowdstrikefalcon-correct_summaries_fetching
removed mentions to LEGACY_VERSION
Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @amshamah419 will know the proposed changes are ready to be reviewed. |
ids_json = {'ids': detections_ids} | ||
url = '/detects/entities/summaries/GET/v1' | ||
demisto.debug(f"Getting detections entities from {url} with {ids_json=}.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @bdanjoux I'm not sure if we should remove the support for legacy version. Is there a specific issue you are experiencing?
Contributing to Cortex XSOAR Content
Make sure to register your contribution by filling the contribution registration form
The Pull Request will be reviewed only after the contribution registration form is filled.
Status
Related Issues
fixes: CASE 03318743
Description
The July commit f53aa87 related to then upcoming Crowdstrike Raptor release incorrectly updated the mechanism by which detection summaries are fetched.
The "legacy" API for fetching detection summaries: /detects/entities/summaries/GET/v1
was incorrectly amended to use /alerts/entities/alerts/v2 for clients who didn't tick the "legacy API" integration instance configuration boolean.
This was incorrect because the endpoint /detects/entities/summaries/GET/v1 is not deprecated in the CrowdStrike API documentation and also because /alerts/entities/alerts/v2 is for fetching alerts summaries, not detection summaries.
Subsequently, passing a valid detection id to an instance configured to use the new API endpoints fails when it works if you tick "use legacy API".
I removed mentions of LEGACY_VERSION and the incorrect new API endpoint.
I also corrected the argument description for cs-falcon-list-incident-summaries: ids
this command fetches incident details and subsequently takes incident IDs, not detection IDs
Must have