insightconnect-plugin-runtime 6.1.3__tar.gz → 6.2.0__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-6.1.3/insightconnect_plugin_runtime.egg-info → insightconnect_plugin_runtime-6.2.0}/PKG-INFO +10 -8
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/README.md +7 -5
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/helper.py +5 -5
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0/insightconnect_plugin_runtime.egg-info}/PKG-INFO +10 -8
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime.egg-info/requires.txt +2 -2
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/setup.py +3 -3
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/MANIFEST.in +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect-plugin-swagger.json +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/action.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/api/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/api/endpoints.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/api/schemas.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/cli.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/clients/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/clients/aws_client.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/clients/oauth.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/connection.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/data/input_message_schema.json +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/data/output_message_schema.json +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/dispatcher.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/exceptions.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/metrics.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/plugin.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/server.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/step.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/task.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/trigger.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/util.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime/variables.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime.egg-info/SOURCES.txt +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime.egg-info/dependency_links.txt +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/insightconnect_plugin_runtime.egg-info/top_level.txt +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/setup.cfg +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/hello/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/hello/action.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/hello/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/return_bad_json/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/return_bad_json/action.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/return_bad_json/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/throw_exception/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/throw_exception/action.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/actions/throw_exception/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/connection/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/connection/connection.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/connection/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/tasks/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/tasks/monitor_events/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/tasks/monitor_events/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/tasks/monitor_events/task.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/hello_trigger/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/hello_trigger/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/hello_trigger/trigger.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/return_bad_json_trigger/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/return_bad_json_trigger/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/return_bad_json_trigger/trigger.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/throw_exception_trigger/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/throw_exception_trigger/schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/triggers/throw_exception_trigger/trigger.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/komand_hello_world/util/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/hello_world/setup.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/tests/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/tests/conftest.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/tests/test_cli.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/tests/test_hello_world.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/plugin/hello_world/tests/test_server.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/__init__.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_action.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_api.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_aws_action.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_custom_encoder.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_endpoints.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_exceptions.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_helpers.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_metrics.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_oauth.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_plugin.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_schema.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_server_cloud_plugins.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_server_spec.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_trigger.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/test_variables.py +0 -0
- {insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: insightconnect-plugin-runtime
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.2.0
|
|
4
4
|
Summary: InsightConnect Plugin Runtime
|
|
5
5
|
Home-page: https://github.com/rapid7/komand-plugin-sdk-python
|
|
6
6
|
Author: Rapid7 Integrations Alliance
|
|
@@ -18,8 +18,8 @@ Requires-Dist: jsonschema==4.21.1
|
|
|
18
18
|
Requires-Dist: certifi==2024.07.04
|
|
19
19
|
Requires-Dist: Flask==3.0.2
|
|
20
20
|
Requires-Dist: gunicorn==22.0.0
|
|
21
|
-
Requires-Dist: greenlet==3.
|
|
22
|
-
Requires-Dist: gevent==24.
|
|
21
|
+
Requires-Dist: greenlet==3.1.1
|
|
22
|
+
Requires-Dist: gevent==24.10.1
|
|
23
23
|
Requires-Dist: marshmallow==3.21.0
|
|
24
24
|
Requires-Dist: apispec==6.5.0
|
|
25
25
|
Requires-Dist: apispec-webframeworks==1.0.0
|
|
@@ -48,10 +48,10 @@ to get started.
|
|
|
48
48
|
|
|
49
49
|
## Development of the InsightConnect Plugin Runtime
|
|
50
50
|
|
|
51
|
-
The Python Runtime codebase is built to support Python 3.
|
|
51
|
+
The Python Runtime codebase is built to support Python 3.11.10 as of version 6.2.0. The following dependencies will need
|
|
52
52
|
to be installed when developing or testing the Plugin Runtime:
|
|
53
53
|
|
|
54
|
-
- Python 3.
|
|
54
|
+
- Python 3.11.10
|
|
55
55
|
- Docker
|
|
56
56
|
- make
|
|
57
57
|
- tox
|
|
@@ -184,11 +184,11 @@ Running a specific test file:
|
|
|
184
184
|
|
|
185
185
|
| | Plugin | Slim Plugin |
|
|
186
186
|
|:------------------|:-------:|:-----------:|
|
|
187
|
-
| Python Version | 3.
|
|
187
|
+
| Python Version | 3.11.10 | 3.11.10 |
|
|
188
188
|
| OS | Alpine | Bullseye |
|
|
189
189
|
| Package installer | apk | apt |
|
|
190
190
|
| Shell | /bin/sh | /bin/bash |
|
|
191
|
-
| Image Size | ~
|
|
191
|
+
| Image Size | ~370MB | ~230MB |
|
|
192
192
|
|
|
193
193
|
Note that for the plugin image, we run `apk update` and `apk add ..` which leads to a longer build time.
|
|
194
194
|
|
|
@@ -211,11 +211,13 @@ 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
|
+
* 6.2.0 - Update base images to pull Python 3.11.10 | changed the pep-8 check in tox to `pycodestyle`
|
|
215
|
+
* 6.1.4 - Address vulnerabilities within local development requirements.txt and vulnerabilities in slim image.
|
|
214
216
|
* 6.1.3 - Addressing failing Python Slim package (bump packages).
|
|
215
217
|
* 6.1.2 - Removing the call to mask_output_data for task code.
|
|
216
218
|
* 6.1.1 - Addressed vulnerabilities within the slim and non-slim Python images (bumping packages).
|
|
217
219
|
* 6.1.0 - Update AWSAction tests to utilise AWS Client Error names for connection test | Update `request_error_handling` to include input for custom configuration
|
|
218
|
-
* 6.0.1 - Address vulnerabilities within the following python packages: `Jinja2`, `requests`, `urllib3`, `zipp` and `setuptools`.
|
|
220
|
+
* 6.0.1 - Address vulnerabilities within the following python packages: `Jinja2`, `requests`, `urllib3`, `zipp` and `setuptools`.
|
|
219
221
|
* 6.0.0 - Address vulnerabilities within `certifi` python package | Bump the version of OpenSSL used | If running a task connection test, return a custom message from the task test and not the full log.
|
|
220
222
|
* 5.6.1 - Making sure all paths that can call the task connection test endpoints return a 400 error if the test fails
|
|
221
223
|
* 5.6.0 - Add APIException class for error handling | Fix error in response_handler where data of type Response was not correctly being returned
|
|
@@ -19,10 +19,10 @@ to get started.
|
|
|
19
19
|
|
|
20
20
|
## Development of the InsightConnect Plugin Runtime
|
|
21
21
|
|
|
22
|
-
The Python Runtime codebase is built to support Python 3.
|
|
22
|
+
The Python Runtime codebase is built to support Python 3.11.10 as of version 6.2.0. The following dependencies will need
|
|
23
23
|
to be installed when developing or testing the Plugin Runtime:
|
|
24
24
|
|
|
25
|
-
- Python 3.
|
|
25
|
+
- Python 3.11.10
|
|
26
26
|
- Docker
|
|
27
27
|
- make
|
|
28
28
|
- tox
|
|
@@ -155,11 +155,11 @@ Running a specific test file:
|
|
|
155
155
|
|
|
156
156
|
| | Plugin | Slim Plugin |
|
|
157
157
|
|:------------------|:-------:|:-----------:|
|
|
158
|
-
| Python Version | 3.
|
|
158
|
+
| Python Version | 3.11.10 | 3.11.10 |
|
|
159
159
|
| OS | Alpine | Bullseye |
|
|
160
160
|
| Package installer | apk | apt |
|
|
161
161
|
| Shell | /bin/sh | /bin/bash |
|
|
162
|
-
| Image Size | ~
|
|
162
|
+
| Image Size | ~370MB | ~230MB |
|
|
163
163
|
|
|
164
164
|
Note that for the plugin image, we run `apk update` and `apk add ..` which leads to a longer build time.
|
|
165
165
|
|
|
@@ -182,11 +182,13 @@ 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
|
+
* 6.2.0 - Update base images to pull Python 3.11.10 | changed the pep-8 check in tox to `pycodestyle`
|
|
186
|
+
* 6.1.4 - Address vulnerabilities within local development requirements.txt and vulnerabilities in slim image.
|
|
185
187
|
* 6.1.3 - Addressing failing Python Slim package (bump packages).
|
|
186
188
|
* 6.1.2 - Removing the call to mask_output_data for task code.
|
|
187
189
|
* 6.1.1 - Addressed vulnerabilities within the slim and non-slim Python images (bumping packages).
|
|
188
190
|
* 6.1.0 - Update AWSAction tests to utilise AWS Client Error names for connection test | Update `request_error_handling` to include input for custom configuration
|
|
189
|
-
* 6.0.1 - Address vulnerabilities within the following python packages: `Jinja2`, `requests`, `urllib3`, `zipp` and `setuptools`.
|
|
191
|
+
* 6.0.1 - Address vulnerabilities within the following python packages: `Jinja2`, `requests`, `urllib3`, `zipp` and `setuptools`.
|
|
190
192
|
* 6.0.0 - Address vulnerabilities within `certifi` python package | Bump the version of OpenSSL used | If running a task connection test, return a custom message from the task test and not the full log.
|
|
191
193
|
* 5.6.1 - Making sure all paths that can call the task connection test endpoints return a 400 error if the test fails
|
|
192
194
|
* 5.6.0 - Add APIException class for error handling | Fix error in response_handler where data of type Response was not correctly being returned
|
|
@@ -75,10 +75,10 @@ def make_request(
|
|
|
75
75
|
_request: requests.Request,
|
|
76
76
|
timeout: int = 60,
|
|
77
77
|
verify: bool = True,
|
|
78
|
-
cert: Union[str, Tuple]=None,
|
|
78
|
+
cert: Union[str, Tuple] = None,
|
|
79
79
|
stream: bool = False,
|
|
80
80
|
allow_redirects: bool = True,
|
|
81
|
-
exception_custom_configs: Dict[int, Exception]={},
|
|
81
|
+
exception_custom_configs: Dict[int, Exception] = {},
|
|
82
82
|
exception_data_location: str = None,
|
|
83
83
|
allowed_status_codes: List[str] = [],
|
|
84
84
|
) -> Tuple[requests.Response, Dict]:
|
|
@@ -156,7 +156,7 @@ def extract_json(response: requests.Response) -> Dict:
|
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
def request_error_handling(
|
|
159
|
-
custom_configs: Dict[int, Exception]={},
|
|
159
|
+
custom_configs: Dict[int, Exception] = {},
|
|
160
160
|
exception_data_location: str = None,
|
|
161
161
|
allowed_status_codes: List[str] = [],
|
|
162
162
|
) -> Union[Any, None]:
|
|
@@ -204,7 +204,7 @@ def request_error_handling(
|
|
|
204
204
|
|
|
205
205
|
def response_handler(
|
|
206
206
|
response: requests.Response,
|
|
207
|
-
custom_configs: Dict[int, Exception]={},
|
|
207
|
+
custom_configs: Dict[int, Exception] = {},
|
|
208
208
|
data_location: str = None,
|
|
209
209
|
allowed_status_codes: List[str] = [],
|
|
210
210
|
) -> None:
|
|
@@ -304,7 +304,7 @@ def extract_value(begin, key, end, s):
|
|
|
304
304
|
|
|
305
305
|
Example: The following will use pull out the /bin/bash from the string s
|
|
306
306
|
s = '\nShell: /bin/bash\n'
|
|
307
|
-
shell = get_value(r'
|
|
307
|
+
shell = get_value(r'\\s', 'Shell', r':\\s(.*)\\s', s)
|
|
308
308
|
|
|
309
309
|
This function works well when you have a list of keys to iterate through where the pattern is the same.
|
|
310
310
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: insightconnect-plugin-runtime
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.2.0
|
|
4
4
|
Summary: InsightConnect Plugin Runtime
|
|
5
5
|
Home-page: https://github.com/rapid7/komand-plugin-sdk-python
|
|
6
6
|
Author: Rapid7 Integrations Alliance
|
|
@@ -18,8 +18,8 @@ Requires-Dist: jsonschema==4.21.1
|
|
|
18
18
|
Requires-Dist: certifi==2024.07.04
|
|
19
19
|
Requires-Dist: Flask==3.0.2
|
|
20
20
|
Requires-Dist: gunicorn==22.0.0
|
|
21
|
-
Requires-Dist: greenlet==3.
|
|
22
|
-
Requires-Dist: gevent==24.
|
|
21
|
+
Requires-Dist: greenlet==3.1.1
|
|
22
|
+
Requires-Dist: gevent==24.10.1
|
|
23
23
|
Requires-Dist: marshmallow==3.21.0
|
|
24
24
|
Requires-Dist: apispec==6.5.0
|
|
25
25
|
Requires-Dist: apispec-webframeworks==1.0.0
|
|
@@ -48,10 +48,10 @@ to get started.
|
|
|
48
48
|
|
|
49
49
|
## Development of the InsightConnect Plugin Runtime
|
|
50
50
|
|
|
51
|
-
The Python Runtime codebase is built to support Python 3.
|
|
51
|
+
The Python Runtime codebase is built to support Python 3.11.10 as of version 6.2.0. The following dependencies will need
|
|
52
52
|
to be installed when developing or testing the Plugin Runtime:
|
|
53
53
|
|
|
54
|
-
- Python 3.
|
|
54
|
+
- Python 3.11.10
|
|
55
55
|
- Docker
|
|
56
56
|
- make
|
|
57
57
|
- tox
|
|
@@ -184,11 +184,11 @@ Running a specific test file:
|
|
|
184
184
|
|
|
185
185
|
| | Plugin | Slim Plugin |
|
|
186
186
|
|:------------------|:-------:|:-----------:|
|
|
187
|
-
| Python Version | 3.
|
|
187
|
+
| Python Version | 3.11.10 | 3.11.10 |
|
|
188
188
|
| OS | Alpine | Bullseye |
|
|
189
189
|
| Package installer | apk | apt |
|
|
190
190
|
| Shell | /bin/sh | /bin/bash |
|
|
191
|
-
| Image Size | ~
|
|
191
|
+
| Image Size | ~370MB | ~230MB |
|
|
192
192
|
|
|
193
193
|
Note that for the plugin image, we run `apk update` and `apk add ..` which leads to a longer build time.
|
|
194
194
|
|
|
@@ -211,11 +211,13 @@ 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
|
+
* 6.2.0 - Update base images to pull Python 3.11.10 | changed the pep-8 check in tox to `pycodestyle`
|
|
215
|
+
* 6.1.4 - Address vulnerabilities within local development requirements.txt and vulnerabilities in slim image.
|
|
214
216
|
* 6.1.3 - Addressing failing Python Slim package (bump packages).
|
|
215
217
|
* 6.1.2 - Removing the call to mask_output_data for task code.
|
|
216
218
|
* 6.1.1 - Addressed vulnerabilities within the slim and non-slim Python images (bumping packages).
|
|
217
219
|
* 6.1.0 - Update AWSAction tests to utilise AWS Client Error names for connection test | Update `request_error_handling` to include input for custom configuration
|
|
218
|
-
* 6.0.1 - Address vulnerabilities within the following python packages: `Jinja2`, `requests`, `urllib3`, `zipp` and `setuptools`.
|
|
220
|
+
* 6.0.1 - Address vulnerabilities within the following python packages: `Jinja2`, `requests`, `urllib3`, `zipp` and `setuptools`.
|
|
219
221
|
* 6.0.0 - Address vulnerabilities within `certifi` python package | Bump the version of OpenSSL used | If running a task connection test, return a custom message from the task test and not the full log.
|
|
220
222
|
* 5.6.1 - Making sure all paths that can call the task connection test endpoints return a 400 error if the test fails
|
|
221
223
|
* 5.6.0 - Add APIException class for error handling | Fix error in response_handler where data of type Response was not correctly being returned
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="insightconnect-plugin-runtime",
|
|
8
|
-
version="6.
|
|
8
|
+
version="6.2.0",
|
|
9
9
|
description="InsightConnect Plugin Runtime",
|
|
10
10
|
long_description=long_description,
|
|
11
11
|
long_description_content_type="text/markdown",
|
|
@@ -20,8 +20,8 @@ setup(
|
|
|
20
20
|
"certifi==2024.07.04",
|
|
21
21
|
"Flask==3.0.2",
|
|
22
22
|
"gunicorn==22.0.0",
|
|
23
|
-
"greenlet==3.
|
|
24
|
-
"gevent==24.
|
|
23
|
+
"greenlet==3.1.1",
|
|
24
|
+
"gevent==24.10.1",
|
|
25
25
|
"marshmallow==3.21.0",
|
|
26
26
|
"apispec==6.5.0",
|
|
27
27
|
"apispec-webframeworks==1.0.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-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/__init__.py
RENAMED
|
File without changes
|
{insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/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-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{insightconnect_plugin_runtime-6.1.3 → insightconnect_plugin_runtime-6.2.0}/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-6.1.3 → insightconnect_plugin_runtime-6.2.0}/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-6.1.3 → insightconnect_plugin_runtime-6.2.0}/tests/unit/utils.py
RENAMED
|
File without changes
|