insightconnect-plugin-runtime 6.1.0__py3-none-any.whl → 6.1.2__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.
- insightconnect_plugin_runtime/api/endpoints.py +7 -3
- {insightconnect_plugin_runtime-6.1.0.dist-info → insightconnect_plugin_runtime-6.1.2.dist-info}/METADATA +3 -1
- {insightconnect_plugin_runtime-6.1.0.dist-info → insightconnect_plugin_runtime-6.1.2.dist-info}/RECORD +5 -5
- {insightconnect_plugin_runtime-6.1.0.dist-info → insightconnect_plugin_runtime-6.1.2.dist-info}/WHEEL +1 -1
- {insightconnect_plugin_runtime-6.1.0.dist-info → insightconnect_plugin_runtime-6.1.2.dist-info}/top_level.txt +0 -0
|
@@ -183,7 +183,7 @@ class Endpoints:
|
|
|
183
183
|
input_message = self.add_plugin_custom_config(
|
|
184
184
|
input_message, request.headers.get(ORG_ID)
|
|
185
185
|
)
|
|
186
|
-
output = self.run_action_trigger_task(input_message)
|
|
186
|
+
output = self.run_action_trigger_task(input_message, mask_output=False)
|
|
187
187
|
self.logger.info("Plugin task finished execution...")
|
|
188
188
|
return output
|
|
189
189
|
|
|
@@ -827,7 +827,7 @@ class Endpoints:
|
|
|
827
827
|
|
|
828
828
|
return input_data
|
|
829
829
|
|
|
830
|
-
def run_action_trigger_task(self, input_message, test=False, connection_test_type="test"):
|
|
830
|
+
def run_action_trigger_task(self, input_message, test=False, connection_test_type="test", mask_output=True):
|
|
831
831
|
connection = input_message.get("body", {}).get("connection", {})
|
|
832
832
|
status_code = 200
|
|
833
833
|
output = None
|
|
@@ -856,7 +856,11 @@ class Endpoints:
|
|
|
856
856
|
status_code = 500
|
|
857
857
|
finally:
|
|
858
858
|
self.logger.debug("Request output: %s", output)
|
|
859
|
-
|
|
859
|
+
# As this processing can take quite a while on large task ouputs we want to skip this
|
|
860
|
+
if mask_output:
|
|
861
|
+
response = jsonify(OutputMasker.mask_output_data(connection, output))
|
|
862
|
+
else:
|
|
863
|
+
response = jsonify(output)
|
|
860
864
|
response.status_code = status_code
|
|
861
865
|
return response
|
|
862
866
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: insightconnect-plugin-runtime
|
|
3
|
-
Version: 6.1.
|
|
3
|
+
Version: 6.1.2
|
|
4
4
|
Summary: InsightConnect Plugin Runtime
|
|
5
5
|
Home-page: https://github.com/rapid7/komand-plugin-sdk-python
|
|
6
6
|
Author: Rapid7 Integrations Alliance
|
|
@@ -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
|
+
* 6.1.2 - Removing the call to mask_output_data for task code.
|
|
215
|
+
* 6.1.1 - Addressed vulnerabilities within the slim and non-slim Python images (bumping packages).
|
|
214
216
|
* 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
|
|
215
217
|
* 6.0.1 - Address vulnerabilities within the following python packages: `Jinja2`, `requests`, `urllib3`, `zipp` and `setuptools`.
|
|
216
218
|
* 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.
|
|
@@ -15,7 +15,7 @@ insightconnect_plugin_runtime/trigger.py,sha256=Zq3cy68N3QxAGbNZKCID6CZF05Zi7YD2
|
|
|
15
15
|
insightconnect_plugin_runtime/util.py,sha256=qPkZ3LA55nYuNYdansEbnCnBccQkpzIpp9NA1B64Kvw,8444
|
|
16
16
|
insightconnect_plugin_runtime/variables.py,sha256=7FjJGnU7KUR7m9o-_tRq7Q3KiaB1Pp0Apj1NGgOwrJk,3056
|
|
17
17
|
insightconnect_plugin_runtime/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
-
insightconnect_plugin_runtime/api/endpoints.py,sha256=
|
|
18
|
+
insightconnect_plugin_runtime/api/endpoints.py,sha256=gIxuxO7AFqmic0k9b_2gWjjJ8ICtWDa88X4Tl4fEgik,33333
|
|
19
19
|
insightconnect_plugin_runtime/api/schemas.py,sha256=jRmDrwLJTBl-iQOnyZkSwyJlCWg4eNjAnKfD9Eko4z0,2754
|
|
20
20
|
insightconnect_plugin_runtime/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
insightconnect_plugin_runtime/clients/aws_client.py,sha256=bgSK3Txr1YonDiUN5JFEZ5cAyCXFM14JjfMus6lRV8o,23017
|
|
@@ -78,7 +78,7 @@ tests/unit/test_server_spec.py,sha256=je97BaktgK0Fiz3AwFPkcmHzYtOJJNqJV_Fw5hrvqX
|
|
|
78
78
|
tests/unit/test_trigger.py,sha256=E53mAUoVyponWu_4IQZ0IC1gQ9lakBnTn_9vKN2IZfg,1692
|
|
79
79
|
tests/unit/test_variables.py,sha256=OUEOqGYZA3Nd5oKk5GVY3hcrWKHpZpxysBJcO_v5gzs,291
|
|
80
80
|
tests/unit/utils.py,sha256=VooVmfpIgxmglNdtmT32AkEDFxHxyRHLK8RsCWjjYRY,2153
|
|
81
|
-
insightconnect_plugin_runtime-6.1.
|
|
82
|
-
insightconnect_plugin_runtime-6.1.
|
|
83
|
-
insightconnect_plugin_runtime-6.1.
|
|
84
|
-
insightconnect_plugin_runtime-6.1.
|
|
81
|
+
insightconnect_plugin_runtime-6.1.2.dist-info/METADATA,sha256=-mo1E1yFZ1N39jM55tLCywUp2YYoDiHK_UDzlhvZt18,14753
|
|
82
|
+
insightconnect_plugin_runtime-6.1.2.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
|
|
83
|
+
insightconnect_plugin_runtime-6.1.2.dist-info/top_level.txt,sha256=AJtyJOpiFzHxsbHUICTcUKXyrGQ3tZxhrEHsPjJBvEA,36
|
|
84
|
+
insightconnect_plugin_runtime-6.1.2.dist-info/RECORD,,
|
|
File without changes
|