Skip to content

Commit

Permalink
[SOAR-17732] - Fix task connection test (#2799)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekelly-r7 authored Sep 18, 2024
1 parent 26f2460 commit 0c625be
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions plugins/mimecast/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"spec": "b143b1d54f9da70ca370e6411fda8521",
"manifest": "6424ea420e9efa1c84e62c188ec5c7a5",
"setup": "0341b12a504b4a79cb41be01bf44cc24",
"spec": "35db88201d0c437148d3a5851253f0e4",
"manifest": "8be151ad8e7d232ce62fded2340d6841",
"setup": "e585cdea9a7cf94ca339985c0f2bbc7d",
"schemas": [
{
"identifier": "add_group_member/schema.py",
Expand Down
2 changes: 1 addition & 1 deletion plugins/mimecast/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/mimecast/bin/komand_mimecast
Original file line number Diff line number Diff line change
Expand Up @@ -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)"


Expand Down
1 change: 1 addition & 0 deletions plugins/mimecast/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions plugins/mimecast/komand_mimecast/connection/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions plugins/mimecast/plugin.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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
support: rapid7
cloud_ready: true
sdk:
type: slim
version: 6.1.0
version: 6.1.2
user: nobody
status: []
resources:
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/mimecast/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="",
Expand Down

0 comments on commit 0c625be

Please sign in to comment.