Info |
---|
Slack is a cloud-based communication platform that enables real-time messaging, archiving, and search for modern teams. This guide explains how to add Slack integration to Cloudaware. |
...
Slack Cloudaware Application
Use case: SecOps using Slack must want to be notified about every high and critical vulnerability Cloudaware detects.
Add Application to Cloudaware
1. Log in to Cloudaware account → Admin.
...
3. Fill out the form → Save.
...
4. Click Add to Slack.
...
5. Grant Cloudaware App necessary permissions and select a Slack channel the notifications will be posted to. Click Allow.
6. You will be notified about Cloudaware App set up for your Slack Workspace via email and Slack channel.
7. The green light in 'Status' means that Slack Cloudaware Application has been created successfully. If there is a red light, please contact support@cloudaware.com.
...
Configure Slack Notification
...
In our use case we are creating the Upgrade Request notification. Use sObject.CA10__risk__c where CA10__risk__c is API Name of the object.
Use Fields List to determine fields you'd like to exclude from being displayed in your Slack message (Name in this example, Name).
Object Name, Message, Color, Url Base are expression fields. The data type of the value returned depends on the elements used in the expression.
Here are sample outputs:
Expression | Output | ||||
---|---|---|---|---|---|
|
| ||||
|
| ||||
|
| ||||
|
| ||||
|
| ||||
|
| ||||
|
| ||||
|
|
3. Copy and save the URL as it is required for further configuration in Cloudaware (see Configuring CloudAware Configure Cloudaware Workflow To Invoke Slack Action).
...
Incoming Slack Webhook URL
Use case: Managed service provider company uses Cloudaware Patch Management. The service team would like to get notifications in Slack every time when a customer requests a package upgrade. (custom object: CloudAware Upgradable package).
Webhook Configuration In Slack
1. Enter your Apps Directory in Slack → Incoming Webhooks → toggle 'Activate Incoming Webhooks' to On → Add New Webhook to Workspace (see more here).
...
2. Grant your App necessary permissions and select a Slack channel the notifications will be posted to. Click Allow.
...
3. Copy the Webhook URL and save it for later use.
...
Configure Slack Notification in Cloudaware
...
3. Select 'Slack Webhook URL'. Fill in out the integration detailsform* → Save.
...
*Name, Slack Webhook URL, Message are mandatory fields.
In our use case we are creating the Upgrade Request notification (replace Test by the customer name). To understand which instance the package needs to be upgraded on, insert sObject.CA10_Instance_c where CA10_Instance_c is API Name of the object (CloudAware Upgradable Package in this example).
Use Fields List to determine fields you'd like to exclude from being displayed in your Slack message (Name in this example, Name).
Object Name, Message, Color, Url Base are expression fields. The data type of the value returned depends on the elements used in the expression. Here are sample outputs:
...
Anchor | ||||
---|---|---|---|---|
|
1. In your Cloudaware account click Setup in the main menu Log in to Cloudaware account → Setup.
2. In the Quick Find box start typing , type workflows to select Workflows & Approvals → Workflow Rules → New Rule.
...
3. Select the object for the rule to be applied to (in our use case CloudAware Upgradable Package) and click Next.
4. Add Rule Name (1), set Evaluation Criteria(2) and Rule Criteria(3)*. Add Filter Logic if necessary. Click Save & Next.
...
*In our use case, we are creating a workflow rule will send out alerts when the field 'Upgrade' (checkbox) is true on CloudAware Upgradable Package object.
5. Add Workflow Action → New Outbound Message. Paste the copied Endpoint URL. Click Save.
...
6. Review the workflow. Click Done to activate it.
7. Once this workflow rule is triggered, the following Slack notification may be sent:
...