Skip to content

Commit

Permalink
[Marketplace Contribution] Exabeam - Content Pack Update (#30655)
Browse files Browse the repository at this point in the history
* [Marketplace Contribution] Exabeam - Content Pack Update (#30625)

* "contribution update to pack "Exabeam""

* Reverted automated changes to content pack that I didn't request

* update fix + docker

---------

Co-authored-by: Christian King <chrking@paloaltonetworks.com>
Co-authored-by: ilappe <ilappe@paloaltonetworks.com>
Co-authored-by: Israel Lappe <79846863+ilappe@users.noreply.github.com>

* beter solution

* adding no cover

---------

Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com>
Co-authored-by: Christian King <chrking@paloaltonetworks.com>
Co-authored-by: ilappe <ilappe@paloaltonetworks.com>
Co-authored-by: Israel Lappe <79846863+ilappe@users.noreply.github.com>
  • Loading branch information
5 people authored and MosheEichler committed Nov 6, 2023
1 parent 69a4c4a commit 1ede1b6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
17 changes: 11 additions & 6 deletions Packs/Exabeam/Integrations/Exabeam/Exabeam.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401


from typing import Any
import requests
import dateparser
Expand Down Expand Up @@ -36,7 +37,7 @@ def __init__(self, base_url: str, username: str, password: str, verify: bool,
else:
self._login()

def __del__(self):
def shutdown(self):
if not self.is_token_auth():
self._logout()
super().__del__()
Expand Down Expand Up @@ -2161,7 +2162,7 @@ def fetch_incidents(client: Client, args: dict[str, str]) -> tuple[list, dict]:
return incidents, last_run


def main():
def main(): # pragma: no cover
"""
PARSE AND VALIDATE INTEGRATION PARAMS
"""
Expand Down Expand Up @@ -2216,7 +2217,7 @@ def main():
'exabeam-get-sequence-eventtypes': get_notable_sequence_event_types,
'exabeam-list-incident': list_incidents,
}

client = None
try:
client = Client(base_url.rstrip('/'), verify=verify_certificate, username=username,
password=password, proxy=proxy, headers=headers, api_key=api_key, is_fetch=is_fetch)
Expand Down Expand Up @@ -2245,6 +2246,10 @@ def main():
except Exception as err:
return_error(str(err))

finally:
if client:
client.shutdown()


if __name__ in ['__main__', 'builtin', 'builtins']:
main()
2 changes: 1 addition & 1 deletion Packs/Exabeam/Integrations/Exabeam/Exabeam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ script:
- contextPath: Exabeam.incidents.fields.description
description: The incident description.
type: String
dockerimage: demisto/python3:3.10.13.78623
dockerimage: demisto/python3:3.10.13.78960
isfetch: true
runonce: false
script: '-'
Expand Down
7 changes: 7 additions & 0 deletions Packs/Exabeam/ReleaseNotes/2_3_0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#### Integrations

##### Exabeam

- Fixed an issue where this integration caused "NameError: name 'TOKEN_INPUT_IDENTIFIER' is not defined" errors in other integrations/automations which reused the same container.
- Updated the Docker image to: *demisto/python3:3.10.13.78960*.
2 changes: 1 addition & 1 deletion Packs/Exabeam/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Exabeam",
"description": "The Exabeam Security Management Platform provides end-to-end detection, User Event Behavioral Analytics, and SOAR.",
"support": "xsoar",
"currentVersion": "2.2.9",
"currentVersion": "2.3.0",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 1ede1b6

Please sign in to comment.