insightconnect-plugin-runtime 5.4.7__tar.gz → 5.4.9__tar.gz
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.
- {insightconnect-plugin-runtime-5.4.7/insightconnect_plugin_runtime.egg-info → insightconnect_plugin_runtime-5.4.9}/PKG-INFO +4 -2
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/README.md +2 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/clients/aws_client.py +37 -37
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9/insightconnect_plugin_runtime.egg-info}/PKG-INFO +4 -2
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime.egg-info/requires.txt +1 -1
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/setup.py +2 -2
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/MANIFEST.in +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect-plugin-swagger.json +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/action.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/api/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/api/endpoints.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/api/schemas.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/cli.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/clients/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/clients/oauth.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/connection.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/data/input_message_schema.json +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/data/output_message_schema.json +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/dispatcher.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/exceptions.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/helper.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/metrics.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/plugin.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/server.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/step.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/task.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/trigger.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/util.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime/variables.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime.egg-info/SOURCES.txt +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime.egg-info/dependency_links.txt +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/insightconnect_plugin_runtime.egg-info/top_level.txt +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/setup.cfg +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/hello/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/hello/action.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/hello/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/return_bad_json/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/return_bad_json/action.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/return_bad_json/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/throw_exception/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/throw_exception/action.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/throw_exception/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/connection/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/connection/connection.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/connection/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/tasks/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/tasks/monitor_events/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/tasks/monitor_events/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/tasks/monitor_events/task.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/hello_trigger/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/hello_trigger/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/hello_trigger/trigger.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/return_bad_json_trigger/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/return_bad_json_trigger/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/return_bad_json_trigger/trigger.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/throw_exception_trigger/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/throw_exception_trigger/schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/throw_exception_trigger/trigger.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/komand_hello_world/util/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/hello_world/setup.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/tests/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/tests/conftest.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/tests/test_cli.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/tests/test_hello_world.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/hello_world/tests/test_server.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/__init__.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_action.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_api.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_aws_action.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_custom_encoder.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_endpoints.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_exceptions.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_helpers.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_metrics.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_oauth.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_plugin.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_schema.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_server_cloud_plugins.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_server_spec.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_trigger.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_variables.py +0 -0
- {insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: insightconnect-plugin-runtime
|
|
3
|
-
Version: 5.4.
|
|
3
|
+
Version: 5.4.9
|
|
4
4
|
Summary: InsightConnect Plugin Runtime
|
|
5
5
|
Home-page: https://github.com/rapid7/komand-plugin-sdk-python
|
|
6
6
|
Author: Rapid7 Integrations Alliance
|
|
@@ -17,7 +17,7 @@ Requires-Dist: python_jsonschema_objects==0.5.2
|
|
|
17
17
|
Requires-Dist: jsonschema==4.21.1
|
|
18
18
|
Requires-Dist: certifi==2024.2.2
|
|
19
19
|
Requires-Dist: Flask==3.0.2
|
|
20
|
-
Requires-Dist: gunicorn==
|
|
20
|
+
Requires-Dist: gunicorn==22.0.0
|
|
21
21
|
Requires-Dist: greenlet==3.0.3
|
|
22
22
|
Requires-Dist: gevent==24.2.1
|
|
23
23
|
Requires-Dist: marshmallow==3.21.0
|
|
@@ -211,6 +211,8 @@ contributed. Black is installed as a test dependency and the hook can be initial
|
|
|
211
211
|
after cloning this repository.
|
|
212
212
|
|
|
213
213
|
## Changelog
|
|
214
|
+
* 5.4.9 - Updated aws_client to clean assume role json object to remove any none or empty string values.
|
|
215
|
+
* 5.4.8 - Address vulnerabilities within `gunicorn` and `idna` python packages.
|
|
214
216
|
* 5.4.7 - Address vulnerabilities within `insightconnect-python-3-plugin` image.
|
|
215
217
|
* 5.4.6 - Updated our cloud loggers to include the request path | Updated slim image to remediate vulnerabilities.
|
|
216
218
|
* 5.4.5 - Updated base images to pull Python 3.9.19 | Alpine image: Updated expat package
|
|
@@ -182,6 +182,8 @@ contributed. Black is installed as a test dependency and the hook can be initial
|
|
|
182
182
|
after cloning this repository.
|
|
183
183
|
|
|
184
184
|
## Changelog
|
|
185
|
+
* 5.4.9 - Updated aws_client to clean assume role json object to remove any none or empty string values.
|
|
186
|
+
* 5.4.8 - Address vulnerabilities within `gunicorn` and `idna` python packages.
|
|
185
187
|
* 5.4.7 - Address vulnerabilities within `insightconnect-python-3-plugin` image.
|
|
186
188
|
* 5.4.6 - Updated our cloud loggers to include the request path | Updated slim image to remediate vulnerabilities.
|
|
187
189
|
* 5.4.5 - Updated base images to pull Python 3.9.19 | Alpine image: Updated expat package
|
|
@@ -15,6 +15,7 @@ from botocore.exceptions import ClientError
|
|
|
15
15
|
import insightconnect_plugin_runtime
|
|
16
16
|
from insightconnect_plugin_runtime.action import Action
|
|
17
17
|
from insightconnect_plugin_runtime.exceptions import PluginException
|
|
18
|
+
from insightconnect_plugin_runtime.helper import clean
|
|
18
19
|
|
|
19
20
|
REGION = "region"
|
|
20
21
|
EXTERNAL_ID = "external_id"
|
|
@@ -28,13 +29,13 @@ class PaginationHelper:
|
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
31
|
def __init__(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
self,
|
|
33
|
+
input_token: List[str],
|
|
34
|
+
output_token: List[str],
|
|
35
|
+
result_key: List[str],
|
|
36
|
+
limit_key: str = None,
|
|
37
|
+
more_results: str = None,
|
|
38
|
+
non_aggregate_keys: List[str] = None,
|
|
38
39
|
):
|
|
39
40
|
self.input_token = input_token
|
|
40
41
|
self.output_token = output_token
|
|
@@ -69,9 +70,9 @@ class PaginationHelper:
|
|
|
69
70
|
is_paginated = False
|
|
70
71
|
|
|
71
72
|
if (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
self.more_results
|
|
74
|
+
and self.more_results in output.keys()
|
|
75
|
+
and output[self.more_results]
|
|
75
76
|
):
|
|
76
77
|
is_paginated = True
|
|
77
78
|
|
|
@@ -83,10 +84,10 @@ class PaginationHelper:
|
|
|
83
84
|
return is_paginated
|
|
84
85
|
|
|
85
86
|
def merge_responses(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
self,
|
|
88
|
+
input_: Dict[str, Any],
|
|
89
|
+
response_1: Dict[str, Any],
|
|
90
|
+
response_2: Dict[str, Any],
|
|
90
91
|
) -> Tuple[Dict[str, Any], bool]:
|
|
91
92
|
"""
|
|
92
93
|
Merges two output dictionaries together.
|
|
@@ -111,8 +112,7 @@ class PaginationHelper:
|
|
|
111
112
|
if len(response_1[response]) >= input_[self.limit_key]:
|
|
112
113
|
max_hit = True
|
|
113
114
|
response_1[response] = response_1[response][
|
|
114
|
-
|
|
115
|
-
]
|
|
115
|
+
: input_[self.limit_key]]
|
|
116
116
|
|
|
117
117
|
return response_1, max_hit
|
|
118
118
|
|
|
@@ -302,7 +302,7 @@ class ActionHelper:
|
|
|
302
302
|
|
|
303
303
|
@classmethod
|
|
304
304
|
def format_output(
|
|
305
|
-
|
|
305
|
+
cls, output_schema: Union[Dict[str, Any], None], output: Dict[str, Any]
|
|
306
306
|
) -> Any:
|
|
307
307
|
"""
|
|
308
308
|
Formats a botocore response into a correct Komand response.
|
|
@@ -333,14 +333,14 @@ class AWSAction(Action):
|
|
|
333
333
|
"""
|
|
334
334
|
|
|
335
335
|
def __init__(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
336
|
+
self,
|
|
337
|
+
name: str,
|
|
338
|
+
description: str,
|
|
339
|
+
input_: insightconnect_plugin_runtime.Input,
|
|
340
|
+
output: insightconnect_plugin_runtime.Output,
|
|
341
|
+
aws_service: str,
|
|
342
|
+
aws_command: str,
|
|
343
|
+
pagination_helper: PaginationHelper = None,
|
|
344
344
|
):
|
|
345
345
|
"""
|
|
346
346
|
|
|
@@ -362,7 +362,7 @@ class AWSAction(Action):
|
|
|
362
362
|
self.pagination_helper = pagination_helper
|
|
363
363
|
|
|
364
364
|
def _handle_botocore_function(
|
|
365
|
-
|
|
365
|
+
self, client_function: Callable, params: Dict
|
|
366
366
|
) -> Dict:
|
|
367
367
|
try:
|
|
368
368
|
response = client_function(**params)
|
|
@@ -480,11 +480,11 @@ class AWSAction(Action):
|
|
|
480
480
|
client_function = getattr(client, self.aws_command)
|
|
481
481
|
except AttributeError:
|
|
482
482
|
error_message = (
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
483
|
+
'Unable to find the command "'
|
|
484
|
+
+ self.aws_service
|
|
485
|
+
+ " "
|
|
486
|
+
+ self.aws_command
|
|
487
|
+
+ '"'
|
|
488
488
|
)
|
|
489
489
|
self.logger.error(error_message)
|
|
490
490
|
raise PluginException(cause=error_message)
|
|
@@ -533,17 +533,17 @@ class AWSAction(Action):
|
|
|
533
533
|
|
|
534
534
|
@staticmethod
|
|
535
535
|
def try_to_assume_role(
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
536
|
+
service_name: str,
|
|
537
|
+
assume_role_params: Dict[str, str],
|
|
538
|
+
auth_params: Dict[str, str],
|
|
539
539
|
):
|
|
540
540
|
session_name = str(uuid.uuid1())
|
|
541
541
|
sts_client = boto3.client("sts", **auth_params)
|
|
542
542
|
try:
|
|
543
543
|
assumed_role_object = sts_client.assume_role(
|
|
544
|
-
RoleArn
|
|
545
|
-
|
|
546
|
-
|
|
544
|
+
**clean({"RoleArn": assume_role_params.get(ROLE_ARN),
|
|
545
|
+
"RoleSessionName": session_name,
|
|
546
|
+
"ExternalId": assume_role_params.get(EXTERNAL_ID)})
|
|
547
547
|
)
|
|
548
548
|
except ClientError as error:
|
|
549
549
|
raise PluginException(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: insightconnect-plugin-runtime
|
|
3
|
-
Version: 5.4.
|
|
3
|
+
Version: 5.4.9
|
|
4
4
|
Summary: InsightConnect Plugin Runtime
|
|
5
5
|
Home-page: https://github.com/rapid7/komand-plugin-sdk-python
|
|
6
6
|
Author: Rapid7 Integrations Alliance
|
|
@@ -17,7 +17,7 @@ Requires-Dist: python_jsonschema_objects==0.5.2
|
|
|
17
17
|
Requires-Dist: jsonschema==4.21.1
|
|
18
18
|
Requires-Dist: certifi==2024.2.2
|
|
19
19
|
Requires-Dist: Flask==3.0.2
|
|
20
|
-
Requires-Dist: gunicorn==
|
|
20
|
+
Requires-Dist: gunicorn==22.0.0
|
|
21
21
|
Requires-Dist: greenlet==3.0.3
|
|
22
22
|
Requires-Dist: gevent==24.2.1
|
|
23
23
|
Requires-Dist: marshmallow==3.21.0
|
|
@@ -211,6 +211,8 @@ contributed. Black is installed as a test dependency and the hook can be initial
|
|
|
211
211
|
after cloning this repository.
|
|
212
212
|
|
|
213
213
|
## Changelog
|
|
214
|
+
* 5.4.9 - Updated aws_client to clean assume role json object to remove any none or empty string values.
|
|
215
|
+
* 5.4.8 - Address vulnerabilities within `gunicorn` and `idna` python packages.
|
|
214
216
|
* 5.4.7 - Address vulnerabilities within `insightconnect-python-3-plugin` image.
|
|
215
217
|
* 5.4.6 - Updated our cloud loggers to include the request path | Updated slim image to remediate vulnerabilities.
|
|
216
218
|
* 5.4.5 - Updated base images to pull Python 3.9.19 | Alpine image: Updated expat package
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="insightconnect-plugin-runtime",
|
|
8
|
-
version="5.4.
|
|
8
|
+
version="5.4.9",
|
|
9
9
|
description="InsightConnect Plugin Runtime",
|
|
10
10
|
long_description=long_description,
|
|
11
11
|
long_description_content_type="text/markdown",
|
|
@@ -19,7 +19,7 @@ setup(
|
|
|
19
19
|
"jsonschema==4.21.1",
|
|
20
20
|
"certifi==2024.2.2",
|
|
21
21
|
"Flask==3.0.2",
|
|
22
|
-
"gunicorn==
|
|
22
|
+
"gunicorn==22.0.0",
|
|
23
23
|
"greenlet==3.0.3",
|
|
24
24
|
"gevent==24.2.1",
|
|
25
25
|
"marshmallow==3.21.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/__init__.py
RENAMED
|
File without changes
|
{insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/plugin/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/test_oauth.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{insightconnect-plugin-runtime-5.4.7 → insightconnect_plugin_runtime-5.4.9}/tests/unit/utils.py
RENAMED
|
File without changes
|