Slack structure file¶
Integration of Prancer Web with Slack for notifications management based on Prancer CSPM or PAC findings.
The integration with Slack is as follows:
- Each collection in the collection pages(Infra/PAC Management) can be integrated with Slack
- Choose the dropdown option from the collection and select
Third Party Integration
. - Select the
Slack
When the user clicks on the integration service, a new page/modal opens with pre-populated fields for the ticket. User can edit as per convenience. On submit, The notifications shall be enabled for the specified collection.
Here is a sample of the Slack structure file:
{
"fileType": "structure",
"type": "slack",
"webhook": "<webhook-url-from-slack>"
}
Key | Value Description |
---|---|
webhook | Created webhook from slack to be pasted here |
sample file:
{
"fileType": "structure",
"type": "slack",
"webhook": "https://hooks.slack.com/services/***"
}
Generate Webhook URL from slack¶
Once you have logged in to the Slack follow these steps to generate the AuthToken:
- Go to the Home page
- Drop down using option shown beside
<project-name>
, selectSettings & administration
, and select themanage apps
- Click on
Build
from the top-right corner. - Select
Create New App
if not created.(In order to generate webhook URL you have to have an app created) - Click on the app that you have created
- Select the
Incoming Webhooks
, which is underneath theFeatures
- Click on the
Add New Webhook to Workspace
if not generated already. - Select the Channel that should receive the notifications
By following the steps you'll be able to copy the Webhook URL. This url will be available to copy anytime you want, unless you have revoked the webhook URL.