Skip to content

Commit

Permalink
SOAR-17698-Updating the constant mapping for the USBCOM region (#2778) (
Browse files Browse the repository at this point in the history
  • Loading branch information
rbowden-r7 authored Sep 11, 2024
1 parent fd485e5 commit 7a76bde
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 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": "d4c13922e4697fbe238407bfead947a6",
"manifest": "17c12af7d004c29569412c88708d0dbe",
"setup": "6ba25ff17bf993b681d3d1ad000b7062",
"spec": "b143b1d54f9da70ca370e6411fda8521",
"manifest": "6424ea420e9efa1c84e62c188ec5c7a5",
"setup": "0341b12a504b4a79cb41be01bf44cc24",
"schemas": [
{
"identifier": "add_group_member/schema.py",
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.16"
Version = "5.3.17"
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.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
* 5.3.14 - Improving task connection tests logging | bump SDK to version 5.6.1
Expand Down
13 changes: 12 additions & 1 deletion plugins/mimecast/komand_mimecast/util/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
API = "/api"
REGIONS = ["EU", "DE", "US", "CA", "ZA", "AU", "Offshore", "Sandbox", "USB", "USBCOM"]
HOSTS = ["eu-api", "de-api", "us-api", "ca-api", "za-api", "au-api", "je-api", "sandbox-api", "usb-api", "uspcom-api"]
HOSTS = [
"eu-api",
"de-api",
"us-api",
"ca-api",
"za-api",
"au-api",
"je-api",
"sandbox-api",
"usb-api",
"uspcom-api.mimecast-pscom-us",
]
BASE_HOSTNAME_MAP = dict(zip(REGIONS, HOSTS))
DEFAULT_REGION = "EU"
DATA_FIELD = "data"
Expand Down
5 changes: 4 additions & 1 deletion plugins/mimecast/komand_mimecast/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
class Utils:
@staticmethod
def prepare_base_url(region: str = DEFAULT_REGION) -> str:
return f"https://{BASE_HOSTNAME_MAP.get(region)}.mimecast.com"
if region == "USBCOM":
return f"https://{BASE_HOSTNAME_MAP.get(region)}.com"
else:
return f"https://{BASE_HOSTNAME_MAP.get(region)}.mimecast.com"

@staticmethod
def normalize(key: str, value: str) -> dict:
Expand Down
3 changes: 2 additions & 1 deletion plugins/mimecast/plugin.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ links:
- "[Mimecast](http://mimecast.com)"
references:
- "[Mimecast API](https://www.mimecast.com/developer/documentation)"
version: 5.3.16
version: 5.3.17
connection_version: 5
supported_versions: ["Mimecast API 2024-06-18"]
vendor: rapid7
Expand All @@ -40,6 +40,7 @@ hub_tags:
keywords: [mimecast, email, cloud_enabled]
features: []
version_history:
- "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"
- "5.3.14 - Improving task connection tests logging | bump SDK to version 5.6.1"
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.16",
version="5.3.17",
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 7a76bde

Please sign in to comment.