Repository navigation
Description
Current status, September 22
Global organization-scoped Slack support and member mapping shipped in #373 and #382. That does not provide the checked-in app manifest, Marketplace approval or recorded second-workspace install acceptance required here. Keep this open, with #185 tracking the broader Slack work.
Original requirements
Connecting Slack to Orbit currently requires every single team to create their own Slack app first. From docs/integrations.md, that means going to api.slack.com, creating an app from scratch, adding a redirect URL, adding five bot scopes by hand, configuring event subscriptions, copying three secrets, and setting three environment variables.
That is a fifteen minute job for somebody who has done it before and a wall for everybody else. It is the single biggest reason Slack is not connected on most Orbit instances, including the hosted one.
What to build
A published Slack app in the Slack Marketplace, owned by the Orbit project, that the hosted instance uses and that anyone can install with one click.
This is partly engineering and partly a submission process, and both halves need doing.
The engineering half
- An app manifest checked into the repository, so the required scopes, event subscriptions, shortcuts and slash commands are version controlled rather than living only in a web form. Slack supports manifest based app creation, so this also makes the self hosted path a paste rather than a click-through.
- The install flow has to work for a workspace that is not the one the app was created in. Test it against a second Slack workspace, because a single workspace app can appear to work while being unusable by anyone else.
- Token storage per installing workspace. The
integrationtable already keys on provider andexternalId, so the shape is right. Confirm it handles reinstallation and token rotation. - Distribution requires the OAuth flow to be complete and correct, including the state parameter.
apps/web/src/lib/integrations/oauth-state.tsalready handles this for the existing flow.
The submission half
Slack's directory has a review process with requirements around scopes, privacy policy, support contact and a description. Getting through it means:
- Requesting the narrowest scope set that supports the features, and being able to justify each one.
users:read.emailin particular will get questions, and the answer is that it is what maps a Slack account to an Orbit account so notifications reach a person instead of a channel. - A privacy policy and support URL. Orbit has SECURITY.md but no privacy policy page, so one has to be written.
- Screenshots and a description.
Self hosting still has to work
A published app must not become the only way to use this. Somebody running Orbit on their own infrastructure has to be able to point at their own Slack app, because their Slack workspace may not be allowed to install third party apps at all. Keep the existing environment variables working and treat the published app as the default rather than the requirement.
Why this is worth doing before the other Slack features
Every other issue in this milestone adds capability that nobody can reach until connecting is easy. This one changes how many people ever see any of it.
Help wanted
The manifest and multi workspace install work is a normal engineering task. The directory submission needs somebody with an email address at the project and the patience for a review queue, so coordinate on this thread before starting that half.
Files
apps/web/src/app/api/integrations/slack/apps/web/src/lib/integrations/oauth-state.tsdocs/integrations.md- A new manifest, somewhere like
infra/slack/manifest.yml
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity