From 20442d7aeb4fa67d9d8afd4120927c4c972aeb87 Mon Sep 17 00:00:00 2001 From: Shachar Kidor <82749224+ShacharKidor@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:36:08 +0300 Subject: [PATCH] Wildfire Reports - Reverted the content patch (#29155) * Reverted the patch * Updated the docker image tag * Pre-commit fixes * Added RN file --- .../Integrations/WildFireReports/WildFireReports.py | 10 ++-------- .../Integrations/WildFireReports/WildFireReports.yml | 2 +- .../Palo_Alto_Networks_WildFire/ReleaseNotes/2_1_33.md | 7 +++++++ Packs/Palo_Alto_Networks_WildFire/pack_metadata.json | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 Packs/Palo_Alto_Networks_WildFire/ReleaseNotes/2_1_33.md diff --git a/Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports.py b/Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports.py index e0ebe35fbd27..ced0ac14a61b 100644 --- a/Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports.py +++ b/Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports.py @@ -7,7 +7,7 @@ class Client(BaseClient): - def __init__(self, base_url: str, verify: bool = True, proxy: bool = False, ok_codes=tuple(), headers: dict = None, + def __init__(self, base_url: str, verify: bool = True, proxy: bool = False, ok_codes=(), headers: dict = None, token: str = None): super().__init__(base_url, verify, proxy, ok_codes, headers) self.token = token @@ -20,13 +20,7 @@ def get_agent(): Auto API expect the agent header to be 'xdr' when running from within XSIAM and 'xsoartim' when running from within XSOAR (both on-prem and cloud). """ - # This block is a patch - need to remove it once the server side fix of the following issue is merged: - # https://jira-hq.paloaltonetworks.local/browse/CRTX-77146 - if version := get_demisto_version().get('version'): - if version == '8.1.0': - return 'xsoartim' - - platform = get_demisto_version().get('platform') + platform = get_demisto_version().get('platform') # Platform = xsoar_hosted / xsoar / x2 depends on the machine return 'xdr' if platform == 'x2' else 'xsoartim' def get_file_report(self, file_hash: str): diff --git a/Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports.yml b/Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports.yml index 8d64b0e37057..0b812ff66b3e 100644 --- a/Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports.yml +++ b/Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports.yml @@ -53,7 +53,7 @@ script: script: '-' type: python subtype: python3 - dockerimage: demisto/python3:3.10.12.63474 + dockerimage: demisto/python3:3.10.12.68714 fromversion: 6.5.0 tests: - No tests (auto formatted) diff --git a/Packs/Palo_Alto_Networks_WildFire/ReleaseNotes/2_1_33.md b/Packs/Palo_Alto_Networks_WildFire/ReleaseNotes/2_1_33.md new file mode 100644 index 000000000000..591f48548d86 --- /dev/null +++ b/Packs/Palo_Alto_Networks_WildFire/ReleaseNotes/2_1_33.md @@ -0,0 +1,7 @@ + +#### Integrations + +##### Palo Alto Networks WildFire Reports + +- Updated the way we distinguish between running on *XSOAR* or *XSIAM* machines. +- Updated the Docker image to: *demisto/python3:3.10.12.68714*. diff --git a/Packs/Palo_Alto_Networks_WildFire/pack_metadata.json b/Packs/Palo_Alto_Networks_WildFire/pack_metadata.json index 24105c490f2b..956a2a8f0048 100644 --- a/Packs/Palo_Alto_Networks_WildFire/pack_metadata.json +++ b/Packs/Palo_Alto_Networks_WildFire/pack_metadata.json @@ -2,7 +2,7 @@ "name": "WildFire by Palo Alto Networks", "description": "Perform malware dynamic analysis", "support": "xsoar", - "currentVersion": "2.1.32", + "currentVersion": "2.1.33", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "",