Configuration
Slack Configuration
Set up the Slack app within the Slack API interface.
-
Go to Slack workspace and the Slack Apps page displays.
-
Click Create New App and the Create a Slack App popup displays.
-
Type Secret Server Bot in the App Name text box.
-
Click the Development Slack Workspace dropdown list to select your workspace.
-
Click Create App and go to the App Credentials.
-
Record the App ID and Signing Secret.
Note: You can use the deprecated verification token instead (in the Bot Token text box in Secret Server), but we strongly recommend against it.
-
Add the app ID and signing secret to the Secret Server configuration:
-
In Secret Server, navigate to Settings.
-
In the upper-right corner of the All settings page, enter Slack into the search box.
-
In the search results, select Slack integration.
-
Select Slack Integration to open the Slack Integration page.
-
On the Slack Integration page, select Edit and configure the following settings:
-
Enable Secret Interactions and Enable Inbox Notifications: Select these checkboxes.
-
App Id: Enter the app ID that you specified for the Slack app.
-
Signature Key: Enter the signing secret that you specified for the Slack app.
-
Bot Token: Leave this box empty unless you entered a deprecated verification token.
-
-
To save the integration settings, select Save.
-
-
Scroll down to the Display Information section and enter the app name and description.
-
Right click and save the following image.
-
Set the icon for the app to the saved image. The completed section looks like the following.
-
Click OAuth & Permissions in the left menu and scroll down to the Scopes section.
-
Click Add an OAuth Scope to add the following scopes to the Bot Token Scopes.
-
Click Bot User in the left menu.
-
Enable the Always Show My Bot as Online toggle.
-
Enable the Home Tab toggle.
-
Go to the Incoming Webhooks section to enable the Incoming Webhooks toggle.
-
Go to the Interactivity & Shortcuts section to enable the Interactivity toggle.
-
Enter a link to your instance of Secret Server in the Request URL text box.
https://<Secret Server instance>/api/v1/slack/interaction
-
In the Shortcuts section, click Create New Shortcut to add a global shortcut called "Secret search".
-
Type
secretsearch
for the Callback ID.Skip this step to prevent secret searches within Slack.
-
Go to the Event Subscriptions section.
-
Enable the Enable Events toggle.
-
Enter a link to your instance of Secret Server in the Request URL text box.
https://<Secret Server instance>/api/v1/slack/event
When adding this URL, Slack confirms connectivity by sending a challenge message to your server. If any firewall or network connectivity issues are present, you cannot proceed past this point until the issues are resolved.
-
In the Subscribe to bot events section click Add Bot User Event.
-
Click Add Workspace Event to add the app_home_opened event.
-
Go to the Install App in the left pane and click Install to Workspace.
-
Install the app into one of your workspace channels. You can use #general because the Secret Server Bot does not send messages to any channels. Slack needs this association.
-
Copy the Bot User OAuth Access Token into the Secret Server configuration.