From c92bf0b1ab5b00d3c0764f76cdc578b0a944b552 Mon Sep 17 00:00:00 2001 From: Mai Morag <81917647+maimorag@users.noreply.github.com> Date: Sun, 25 Jun 2023 15:21:50 +0300 Subject: [PATCH] Align credentials stores - part 22 (#27683) * Align credentials stores - part 22 * fix * fix * cr note --- Packs/CarbonBlackEnterpriseEDR/.pack-ignore | 2 +- .../CarbonBlackEnterpriseEDR.py | 6 ++++-- .../CarbonBlackEnterpriseEDR.yml | 16 ++++++++++++---- .../ReleaseNotes/1_1_29.md | 6 ++++++ .../CarbonBlackEnterpriseEDR/pack_metadata.json | 2 +- .../Carbonblackliveresponse.js | 12 +++++++----- .../Carbonblackliveresponse.yml | 12 ++++++++++++ .../ReleaseNotes/1_1_5.md | 5 +++++ .../pack_metadata.json | 2 +- Packs/DuoAdminApi/.pack-ignore | 3 --- .../Integrations/DuoAdminApi/DuoAdminApi.py | 6 ++++-- .../Integrations/DuoAdminApi/DuoAdminApi.yml | 13 ++++++++++--- Packs/DuoAdminApi/ReleaseNotes/4_0_3.md | 6 ++++++ Packs/DuoAdminApi/pack_metadata.json | 2 +- 14 files changed, 70 insertions(+), 23 deletions(-) create mode 100644 Packs/CarbonBlackEnterpriseEDR/ReleaseNotes/1_1_29.md create mode 100644 Packs/Carbon_Black_Enterprise_Live_Response/ReleaseNotes/1_1_5.md create mode 100644 Packs/DuoAdminApi/ReleaseNotes/4_0_3.md diff --git a/Packs/CarbonBlackEnterpriseEDR/.pack-ignore b/Packs/CarbonBlackEnterpriseEDR/.pack-ignore index 80578647a66f..58901c06d78c 100644 --- a/Packs/CarbonBlackEnterpriseEDR/.pack-ignore +++ b/Packs/CarbonBlackEnterpriseEDR/.pack-ignore @@ -1,5 +1,5 @@ [file:CarbonBlackEnterpriseEDR.yml] -ignore=IN126,IN145 +ignore=IN126 [file:README.md] ignore=RM104 diff --git a/Packs/CarbonBlackEnterpriseEDR/Integrations/CarbonBlackEnterpriseEDR/CarbonBlackEnterpriseEDR.py b/Packs/CarbonBlackEnterpriseEDR/Integrations/CarbonBlackEnterpriseEDR/CarbonBlackEnterpriseEDR.py index a95506c39252..8fecc20f278e 100644 --- a/Packs/CarbonBlackEnterpriseEDR/Integrations/CarbonBlackEnterpriseEDR/CarbonBlackEnterpriseEDR.py +++ b/Packs/CarbonBlackEnterpriseEDR/Integrations/CarbonBlackEnterpriseEDR/CarbonBlackEnterpriseEDR.py @@ -1295,8 +1295,10 @@ def main(): """ PARSE AND VALIDATE INTEGRATION PARAMS """ - cb_custom_key = demisto.params().get('custom_key') - cb_custom_id = demisto.params().get('custom_id') + cb_custom_key = demisto.params().get('credentials_custom', {}).get('password') or demisto.params().get('custom_key') + cb_custom_id = demisto.params().get('credentials_custom', {}).get('identifier') or demisto.params().get('custom_id') + if not (cb_custom_key and cb_custom_id): + raise DemistoException('Custom ID and Custom key must be provided.') cb_org_key = demisto.params().get('organization_key') token = f'{cb_custom_key}/{cb_custom_id}' # get the service API url diff --git a/Packs/CarbonBlackEnterpriseEDR/Integrations/CarbonBlackEnterpriseEDR/CarbonBlackEnterpriseEDR.yml b/Packs/CarbonBlackEnterpriseEDR/Integrations/CarbonBlackEnterpriseEDR/CarbonBlackEnterpriseEDR.yml index 975664e48479..8be7d867a397 100644 --- a/Packs/CarbonBlackEnterpriseEDR/Integrations/CarbonBlackEnterpriseEDR/CarbonBlackEnterpriseEDR.yml +++ b/Packs/CarbonBlackEnterpriseEDR/Integrations/CarbonBlackEnterpriseEDR/CarbonBlackEnterpriseEDR.yml @@ -18,14 +18,22 @@ configuration: section: Connect - display: Custom Key name: custom_key - required: true + required: false type: 4 section: Connect + hidden: true - display: Custom ID name: custom_id - required: true + required: false type: 0 section: Connect + hidden: true +- display: Custom ID + name: credentials_custom + required: false + type: 9 + displaypassword: Custom Key + section: Connect - display: Fetch incidents name: isFetch required: false @@ -48,7 +56,7 @@ configuration: type: 8 section: Connect advanced: true -- defaultvalue: 3 days +- defaultvalue: '3 days' display: First fetch timestamp (