Enabling Sealights Integration with Slack in your Organization
Slack Administrative permissions are required to enable the Sealights integration.
Please contact your IT department if is not associated with your account.
In order to enable notifications in your Slack, please open the Cockpit > Settings page and press the ‘Add to Slack’ button.
This will open a page in Slack to enable the integration and review the permissions requested by Sealights, press on the ‘Allow’ button.
When installation is completed you’ll see the following Cockpit > Settings page updated
Adding Slack recipients to your Sealights Notifications
Following the installation, any user will be able to setup notifications to include the Slack channel by defining the Slack recipient who needs to receive the notification from Sealight per the rule defined.
Possible Slack recipients are retrieved from your Slack information:
@members
#channels
Notifications will appear like the one below as Direct Messages from Slackbot
Slack private channel
If you need to send Sealights notifications to a Slack channel marked as private, you’ll need to add Sealights app specifically to the channel.
Your channel is private if there is a black locker icon next to its name.
For that purpose, select the “Add App” option either from the channel menu or from its Apps section in channel details.
Search for Sealights app and add it
The app will appear in the list of authorized apps in the channel and will be able to publish notifications
When Sealights app is not explicitly added to the private channel, a specific error is returned by the Slack API: Notification failed on channel SLACK: Slack user was not found
This error will be visible in the Cockpit Build Monitor.