Skip to content

Refactor/dev 186 make the anticapture slack bot public available on the marketplace#197

Merged
LeonardoVieira1630 merged 11 commits into
devfrom
refactor/DEV-186_Make_the_Anticapture_slack_bot_public_available_on_the_marketplace
Jan 5, 2026
Merged

Refactor/dev 186 make the anticapture slack bot public available on the marketplace#197
LeonardoVieira1630 merged 11 commits into
devfrom
refactor/DEV-186_Make_the_Anticapture_slack_bot_public_available_on_the_marketplace

Conversation

@LeonardoVieira1630

@LeonardoVieira1630 LeonardoVieira1630 commented Dec 16, 2025

Copy link
Copy Markdown
Member

Summary

This PR refactors the Slack bot integration to use HTTP receiver mode instead of Socket Mode, making it compatible with public Slack marketplace distribution.

Changes

Configuration

  • Removed SLACK_APP_TOKEN environment variable (no longer needed for HTTP mode)
  • Added API_PORT_SLACK (default: 3002) to configure HTTP server port
  • Updated .env.example and docker-compose.yml with new configuration

Slack Client (apps/consumers/src/clients/slack.client.ts)

  • Replaced Socket Mode setup with HTTPReceiver
  • HTTP endpoint configured at /slack/events
  • Changed from socketMode: true to HTTP-based event handling
  • Removed appToken parameter from constructor and Bolt app initialization

Tests

  • Updated all Slack client tests to remove appToken references
  • Tests now validate HTTP receiver initialization instead of Socket Mode

Why This Change?

Socket Mode is designed for development/internal apps and requires an app-level token. HTTP receiver mode is required for apps distributed on the Slack marketplace, as it uses event subscriptions with publicly accessible endpoints.

@LeonardoVieira1630 LeonardoVieira1630 self-assigned this Dec 16, 2025
@LeonardoVieira1630 LeonardoVieira1630 added the enhancement New feature or request label Dec 16, 2025
@LeonardoVieira1630 LeonardoVieira1630 marked this pull request as ready for review December 16, 2025 16:37
Comment thread CLAUDE.md Outdated
Comment thread docker-compose.yml
Comment thread apps/consumers/src/config/env.ts Outdated
Comment thread apps/consumers/src/config/env.ts Outdated
LeonardoVieira1630 and others added 3 commits December 23, 2025 10:20
Co-authored-by: lucas picollo <lucaspicolloo@gmail.com>
Co-authored-by: lucas picollo <lucaspicolloo@gmail.com>
Co-authored-by: lucas picollo <lucaspicolloo@gmail.com>
@LeonardoVieira1630 LeonardoVieira1630 changed the base branch from main to dev January 5, 2026 14:34
@LeonardoVieira1630 LeonardoVieira1630 merged commit fd1aa97 into dev Jan 5, 2026
4 checks passed
@LeonardoVieira1630 LeonardoVieira1630 deleted the refactor/DEV-186_Make_the_Anticapture_slack_bot_public_available_on_the_marketplace branch January 5, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants