splunk-soar-sdk 2.3.5__py3-none-any.whl → 2.3.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- soar_sdk/actions_manager.py +18 -0
- {splunk_soar_sdk-2.3.5.dist-info → splunk_soar_sdk-2.3.6.dist-info}/METADATA +1 -1
- {splunk_soar_sdk-2.3.5.dist-info → splunk_soar_sdk-2.3.6.dist-info}/RECORD +6 -6
- {splunk_soar_sdk-2.3.5.dist-info → splunk_soar_sdk-2.3.6.dist-info}/WHEEL +0 -0
- {splunk_soar_sdk-2.3.5.dist-info → splunk_soar_sdk-2.3.6.dist-info}/entry_points.txt +0 -0
- {splunk_soar_sdk-2.3.5.dist-info → splunk_soar_sdk-2.3.6.dist-info}/licenses/LICENSE +0 -0
soar_sdk/actions_manager.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from typing import Optional, Any
|
|
2
|
+
import os
|
|
2
3
|
|
|
3
4
|
from soar_sdk.input_spec import InputSpecification
|
|
4
5
|
from soar_sdk.shims.phantom.base_connector import BaseConnector
|
|
@@ -9,6 +10,11 @@ from pydantic import ValidationError
|
|
|
9
10
|
from soar_sdk.shims.phantom.action_result import ActionResult as PhantomActionResult
|
|
10
11
|
from soar_sdk.logging import getLogger
|
|
11
12
|
|
|
13
|
+
try:
|
|
14
|
+
from phantom_common import install_info
|
|
15
|
+
except ImportError:
|
|
16
|
+
install_info = None
|
|
17
|
+
|
|
12
18
|
|
|
13
19
|
_INGEST_STATE_KEY = "ingestion_state"
|
|
14
20
|
_AUTH_STATE_KEY = "auth_state"
|
|
@@ -139,6 +145,18 @@ class ActionsManager(BaseConnector):
|
|
|
139
145
|
"""Public method for setting the CSRF token in connector."""
|
|
140
146
|
self._set_csrf_info(token, referer)
|
|
141
147
|
|
|
148
|
+
def get_app_dir(self) -> str:
|
|
149
|
+
"""Override get_app_dir to fix path issue on automation brokers < 7.1.0.
|
|
150
|
+
|
|
151
|
+
Returns APP_HOME directly on brokers, which contains the correct SDK app path.
|
|
152
|
+
"""
|
|
153
|
+
# On AB, APP_HOME is set by spawn to the full app path at runtime
|
|
154
|
+
if install_info and install_info.is_onprem_broker_install():
|
|
155
|
+
return os.getenv("APP_HOME", "")
|
|
156
|
+
|
|
157
|
+
# For non-broker just proceed as we did before
|
|
158
|
+
return super().get_app_dir()
|
|
159
|
+
|
|
142
160
|
@classmethod
|
|
143
161
|
def get_soar_base_url(cls) -> str:
|
|
144
162
|
"""Get the base URL of the Splunk SOAR instance this app is running on."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: splunk-soar-sdk
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.6
|
|
4
4
|
Summary: The official framework for developing and testing Splunk SOAR Apps
|
|
5
5
|
Project-URL: Homepage, https://github.com/phantomcyber/splunk-soar-sdk
|
|
6
6
|
Project-URL: Documentation, https://github.com/phantomcyber/splunk-soar-sdk
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
soar_sdk/__init__.py,sha256=RzAng-ARqpK01SY82lNy4uYJFVG0yW6Q3CccEqbToJ4,726
|
|
2
2
|
soar_sdk/abstract.py,sha256=AU5ssJWytMp_RmYOxt_sKBqaFN63UfdMmzmAn0HQE_g,7940
|
|
3
3
|
soar_sdk/action_results.py,sha256=NQTcQ3NJcYB6h-YNRqO0bCG_hILmTidv2D4FdvCzyDE,11092
|
|
4
|
-
soar_sdk/actions_manager.py,sha256=
|
|
4
|
+
soar_sdk/actions_manager.py,sha256=p8Wo2f-MHsq2Xe57i8CsdVYSJiIYCMISoxfzpo6IxXc,6380
|
|
5
5
|
soar_sdk/app.py,sha256=WywDS9Eqy52u2lOQyuF6EfLHhLqCVjPTbFzIX06hiAs,33200
|
|
6
6
|
soar_sdk/app_cli_runner.py,sha256=fJoozhyAt7QUMuc02nE5RL_InpsjQBpr6U4rF9sey3E,11627
|
|
7
7
|
soar_sdk/app_client.py,sha256=GZmpenBl25-UQVVpELxWRJanmXBWNIQBRphcSAbnZlU,6253
|
|
@@ -96,8 +96,8 @@ soar_sdk/views/components/pie_chart.py,sha256=LVTeHVJN6nf2vjUs9y7PDBhS0U1fKW750l
|
|
|
96
96
|
soar_sdk/webhooks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
97
97
|
soar_sdk/webhooks/models.py,sha256=-rjuFA9cRX5zTLp7cHSHVTkt5eVJD6BdESGbj_qkyHI,4540
|
|
98
98
|
soar_sdk/webhooks/routing.py,sha256=BKbURSrBPdOTS5UFL-mHzFEr-Fj04mJMx9KeiPrZ2VQ,6872
|
|
99
|
-
splunk_soar_sdk-2.3.
|
|
100
|
-
splunk_soar_sdk-2.3.
|
|
101
|
-
splunk_soar_sdk-2.3.
|
|
102
|
-
splunk_soar_sdk-2.3.
|
|
103
|
-
splunk_soar_sdk-2.3.
|
|
99
|
+
splunk_soar_sdk-2.3.6.dist-info/METADATA,sha256=32yk-vzzh27rXgMAzcd5pUzPDAdbsVtE-W8d-cV2kM8,7361
|
|
100
|
+
splunk_soar_sdk-2.3.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
101
|
+
splunk_soar_sdk-2.3.6.dist-info/entry_points.txt,sha256=CgBjo2ZWpYNkt9TgvToL26h2Tg1yt8FbvYTb5NVgNuc,51
|
|
102
|
+
splunk_soar_sdk-2.3.6.dist-info/licenses/LICENSE,sha256=gNCGrGhrSQb1PUzBOByVUN1tvaliwLZfna-QU2r2hQ8,11345
|
|
103
|
+
splunk_soar_sdk-2.3.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|