Configuration
Slack Configuration
Setup 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 them to the Secret Server configuration.
a. Log on your Secret Server instance.
b. Go to Admin > Show All, an alphabetized menu displays.
c. Click Slack Integration and the Slack Integration page displays.
e. Select the Enabled check box.
f. Enter your App ID in the App ID field.
g. Enter your Signing Secret in the Signature Key field.
Leave the Bot Token text box empty unless you entered the deprecated verification token.
-
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.