Set up Notifications
In this section we’ll set up an integration webhook and use it to receive event notification from DryRun Security. There is a dedicated Slack integration and a Generic webhook option. The configuration steps below are identical for the Slack and Generic webhook.
Prerequisite - You'll need to have already created a Webhook URL on the system you wish to integrate and receive messages from DryRun Security. The messages sent are JSON formatted POST requests
- Log in the the DryRun Security portal at https://app.dryrun.security (opens in a new tab)
- Navigate to the
Settingssection - Click
Integrations
- Click
Detailson the integration card you want to configure
- You'll see the configuration options for the Integration you selected
From here, you can...
- Configure a Global Integration for use across all the Repositories in your organization
- Configure a Targeted, Non-global Integration for use with specific Repositories in your organization
Configure a Global Integration
A global integration will work across the Repositories in your organization with no additional configuration.
- In the Webhook URL box, add the URL for the target Webhook to receive notifications
- Choose a Risk Level
Note: As DryRun Security runs, it will assign a Risk Level to changes in the code base. Notifications will be sent on changes that match the Risk Level you've selected.
-
Leave
Enabledselected -
Leave
Globalchecked -
Click
Save -
Once you click
SavetheTestbutton will be enabled. Clicking theTestbutton will send a message to the Webhook URL to validate the setup is working.
Done! You've configured a global integration that will receive notifications as changes are made that match the configured Risk Level.
Configure a Targeted Integration
A targeted, non-global integration can be used to recieve notifications about one or more Repositories in a specific channel. First, create the non-global integration. Then, reference the integration name in a Configuration (in Settings > Configurations).
- In the Webhook URL box, add the URL for the target Webhook to receive notifications
- Choose a Risk Level
Note: As DryRun Security runs, it will assign a Risk Level to changes in the code base. Notifications will be sent on changes that match the Risk Level you've selected.
-
Leave
Enabledselected -
Uncheck the
Globaloption
Note: You'll notice a Name box has been added to the form. This box contains the name of the integration that can be used in your configuration files.
-
Click
Save -
Once you click
SavetheTestbutton will be enabled. Clicking theTestbutton will send a message to the Webhook URL to validate the setup is working.
Done! You've configured a targeted integration that can now be added to either the Default Configuration or a Custom Configuration.
Note: You'll need to add your webhook to a Configuration before notifications will be sent.
Configure a Notification
Now, the integration can be added to a Configuration.
-
Navigate to
Settings > Configurations -
Select the Configuration you want to edit
-
Toggle on
Notifications Enabled -
Select the desired Webhook name(s) from the
Integrationsdrop down -
Click
Saveat the bottom of the page
Done! Now changes in the Repository that match the integration's Risk Level will trigger a notification.