Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39,511
    • Issues 39,511
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,223
    • Merge requests 1,223
  • Requirements
    • Requirements
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #28164

You need to sign in or sign up before continuing.
Closed
Open
Created Apr 18, 2019 by Daniel Gruesso@danielgruessoContributor

Slack application integration for self-managed instances

Problem to solve

Our "slack application" app for Slack was limited to one host URL at the time of publication, so we decided to use it for gitlab.com only. Self-managed users were given the option of using "Slack slash commands" whereby they can create a custom slack app by manually configuring it.

Intended users

Further details

Proposal

With the introduction of "custom installs" we can now publish a self-managed version of our app (https://slack.com/apps/AH1QYSUF9), where users can simply specify the URL of their GitLab instance when installing and configure the app instance-wide via *admin>>settings>>integration>>slack application (currently only visible for gitlab.com).

This would give us consistency between self-managed and gitlab.com as well as allow us to eliminate "slack slash commands" options.

  1. We will need to make the instance-level slack configuration available to all, so that users can plug in their "GitLab Self-Managed" app values (Client ID, Client Secret, and Verification Token)

  2. We will need to make the "Slack Application" project-level integration available to self-managed instances and remove the "Slack slash commands" integration

Permissions and Security

Documentation

Testing

What does success look like, and how can we measure that?

Links / references

  1. We're currently returning the admin slack option only for gitlab.com and dev environments, see https://gitlab.com/gitlab-org/gitlab-ee/blob/master/ee/app/views/admin/application_settings/_slack.html.haml#L1

  2. We're returning the project level integration option (Slack application) only for gitlab.com and dev environments, see https://gitlab.com/gitlab-org/gitlab-ee/blob/master/ee/app/models/ee/service.rb#L18

  3. In the admin area, the settings between GitLab and Slack are mapped as follows:

GitLab Slack
APP_ID Client ID
APP_SECRET Client Secret
Verification Token Verification Token
Edited Apr 23, 2019 by Daniel Gruesso
Assignee
Assign to
Time tracking