Slack configuration
Slack is an instant messaging platform designed by Slack Technologies. The Slack integration is used to send outgoing messages in Guardium® Data Security Center to a specified Slack channel. After setting up Slack integration, you can use the integration for notifications and policy alerts (for example, when scheduling jobs, you can choose Send message through Slack as the recipient).
Before you begin
Data Compliance DDR This content is available through the IBM® Guardium Data Compliance and Guardium Data Detection and Response modules
To use this integration, you need to create a Slack app. When you create the integration, you will need to use the app's incoming WebHook or its bot user token. You can obtain these values as follows:
- If you will use Webhook, open your app in https://api.slack.com/apps and then select and ensure that incoming Webhooks are activated and that you workspace has a Webhook URL. You will copy this URL and, when creating your integration in Guardium Data Security Center, you will paste it in the Webhook URL field.
- If you will use a bot token, open your app in https://api.slack.com/apps:
- Select . Under OAuth Tokens for Your Workspace, you will copy the Bot User OAuth Token and then, when creating your integration in Guardium
Data Security Center, you will paste it in the Bot token field.
Note: While in the OAuth & Permissions page, you can scroll to the Scopes section. In this section, confirm that the Bot Token Scopes include
chat:write(this scope provides the ability to send messages to channels and it is necessary for integrating with Guardium Data Security Center). - Select . Then select your token in the Token Name list. After opening the token, copy its Token value. This value will be pasted in the Guardium Data Security Center App-level token field.
- When you use a bot token, you specify the Slack Channel that the Guardium
Data Security Center integration will post to. This channel must include your Slack app. In the channel, type
/invite. Then select Add apps to this channel and add your app to the channel.
- Select . Under OAuth Tokens for Your Workspace, you will copy the Bot User OAuth Token and then, when creating your integration in Guardium
Data Security Center, you will paste it in the Bot token field.
To see the various settings, open the main menu. Open this menu by clicking the main menu icon (
). After opening the menu, select .
Procedure
- Choose the Slack card.
- After reading the About information, click Next.
- Enter a unique name for the integration in the Name field.
-
Select one of the available Credential type options:
- Webhook URL
- Enter the Webhook URL that you retrieved from your Slack app.
- Public SSL certificate: Enter the server certificate details (to learn how to obtain an SSL certificate, see Obtaining an SSL certificate).
- Token
- Enter the Bot token that you retrieved from your Slack app.
- Enter the App-level token that you retrieved from your Slack app.
- All notifications and alerts that are generated by Guardium Data Security Center will be posted to the Slack channel that you specify in the Channel field.
- Webhook URL
- Public SSL certificate: Enter the server certificate details (to learn how to obtain an SSL certificate, see Obtaining an SSL certificate).
- After completing the configuration settings, click Test connection to ensure that the Guardium Data Security Center can connect to your app.
- After testing the connection, click Finish to create the integration.
-
When the new Slack integration opens, you will see templates that have been generated by Guardium
Data Security Center. There are templates for a variety of notification types (for example, policy alert notifications and risk notifications). The templates map Guardium
Data Security Centerdetermine how your Slack notifications will be displayed - and they include other modifiable fields.
- To enable or disable any of the notification templates, click the slider next to the template.
- If a template is enabled, you can modify it by clicking Edit next to the template.
- To create a template for the notification from scratch, click Create a template.
Results
When you open the integration, you can edit it - however, you will need to re-enter any encrypted data, such as tokens and certificates (encrypted values are not preserved during the edit action).