diff --git a/plugins/mimecast/.CHECKSUM b/plugins/mimecast/.CHECKSUM index 56cf132cf0..763a2d92a3 100644 --- a/plugins/mimecast/.CHECKSUM +++ b/plugins/mimecast/.CHECKSUM @@ -1,7 +1,7 @@ { - "spec": "b143b1d54f9da70ca370e6411fda8521", - "manifest": "6424ea420e9efa1c84e62c188ec5c7a5", - "setup": "0341b12a504b4a79cb41be01bf44cc24", + "spec": "35db88201d0c437148d3a5851253f0e4", + "manifest": "8be151ad8e7d232ce62fded2340d6841", + "setup": "e585cdea9a7cf94ca339985c0f2bbc7d", "schemas": [ { "identifier": "add_group_member/schema.py", diff --git a/plugins/mimecast/Dockerfile b/plugins/mimecast/Dockerfile index 3c18464d5e..3be75d65ef 100755 --- a/plugins/mimecast/Dockerfile +++ b/plugins/mimecast/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.1.0 +FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.1.2 LABEL organization=rapid7 LABEL sdk=python diff --git a/plugins/mimecast/bin/komand_mimecast b/plugins/mimecast/bin/komand_mimecast index b223b347e3..d96415004a 100755 --- a/plugins/mimecast/bin/komand_mimecast +++ b/plugins/mimecast/bin/komand_mimecast @@ -6,7 +6,7 @@ from sys import argv Name = "Mimecast" Vendor = "rapid7" -Version = "5.3.17" +Version = "5.3.18" Description = "[Mimecast](https://www.mimecast.com) is a set of cloud services designed to provide next generation protection against advanced email-borne threats such as malicious URLs, malware, impersonation attacks, as well as internally generated threats, with a focus on email security. This plugin utilizes the [Mimecast API](https://www.mimecast.com/developer/documentation)" diff --git a/plugins/mimecast/help.md b/plugins/mimecast/help.md index 826e4c6e9d..6512990e23 100644 --- a/plugins/mimecast/help.md +++ b/plugins/mimecast/help.md @@ -1014,6 +1014,7 @@ For the Create Managed URL action, the URL must include `http://` or `https://` # Version History +* 5.3.18 - Fix task connection test | Trim whitespace from connection inputs | bump SDK to version 6.1.2 * 5.3.17 - Task `monitor_siem_logs` update the mapping used for the USBCOM region * 5.3.16 - Task `monitor_siem_logs` Limit the number of events per run to 7500 | bump SDK to version 6.1.0 * 5.3.15 - Fix snyk vulnerabilities | bump SDK to version 6.0.1 | Allow for the task connection tests to pass back a message along side a status diff --git a/plugins/mimecast/komand_mimecast/connection/connection.py b/plugins/mimecast/komand_mimecast/connection/connection.py index 8dd5808962..18866c5727 100755 --- a/plugins/mimecast/komand_mimecast/connection/connection.py +++ b/plugins/mimecast/komand_mimecast/connection/connection.py @@ -20,10 +20,10 @@ def __init__(self): def connect(self, params={}): self.client = MimecastAPI( params.get(Input.REGION, DEFAULT_REGION), - params.get(Input.ACCESS_KEY).get("secretKey"), - params.get(Input.SECRET_KEY).get("secretKey"), - params.get(Input.APP_ID), - params.get(Input.APP_KEY).get("secretKey"), + params.get(Input.ACCESS_KEY, {}).get("secretKey", "").strip(), + params.get(Input.SECRET_KEY, {}).get("secretKey", "").strip(), + params.get(Input.APP_ID, "").strip(), + params.get(Input.APP_KEY, {}).get("secretKey", "").strip(), self.logger, ) @@ -42,7 +42,7 @@ def test(self): def test_task(self): self.logger.info("Running a connection test to Mimecast") try: - _, _, _ = self.client.get_siem_logs("") + _, _, _, _ = self.client.get_siem_logs("") message = "The connection test to Mimecast was successful" self.logger.info(message) return {"success": True}, message diff --git a/plugins/mimecast/plugin.spec.yaml b/plugins/mimecast/plugin.spec.yaml index 77d8c509d8..e6483dfb86 100644 --- a/plugins/mimecast/plugin.spec.yaml +++ b/plugins/mimecast/plugin.spec.yaml @@ -17,7 +17,7 @@ links: - "[Mimecast](http://mimecast.com)" references: - "[Mimecast API](https://www.mimecast.com/developer/documentation)" -version: 5.3.17 +version: 5.3.18 connection_version: 5 supported_versions: ["Mimecast API 2024-06-18"] vendor: rapid7 @@ -25,7 +25,7 @@ support: rapid7 cloud_ready: true sdk: type: slim - version: 6.1.0 + version: 6.1.2 user: nobody status: [] resources: @@ -40,6 +40,7 @@ hub_tags: keywords: [mimecast, email, cloud_enabled] features: [] version_history: +- "5.3.18 - Fix task connection test | Trim whitespace from connection inputs | bump SDK to version 6.1.2" - "5.3.17 - Task `monitor_siem_logs` update the mapping used for the USBCOM region" - "5.3.16 - Task `monitor_siem_logs` Limit the number of events per run to 7500 | bump SDK to version 6.1.0" - "5.3.15 - Fix snyk vulnerabilities | bump SDK to version 6.0.1 | Allow for the task connection tests to pass back a message along side a status" diff --git a/plugins/mimecast/setup.py b/plugins/mimecast/setup.py index 53ce88dc13..a12925c1fe 100755 --- a/plugins/mimecast/setup.py +++ b/plugins/mimecast/setup.py @@ -3,7 +3,7 @@ setup(name="mimecast-rapid7-plugin", - version="5.3.17", + version="5.3.18", description="[Mimecast](https://www.mimecast.com) is a set of cloud services designed to provide next generation protection against advanced email-borne threats such as malicious URLs, malware, impersonation attacks, as well as internally generated threats, with a focus on email security. This plugin utilizes the [Mimecast API](https://www.mimecast.com/developer/documentation)", author="rapid7", author_email="",