Add Slack interactivity webhook support - #6674
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds inbound Slack interactivity support to hackbot-api by introducing a dedicated /slack/interactions endpoint protected with Slack request signature verification, plus parsing of Slack’s form-encoded interaction payloads into a normalized click object.
Changes:
- Introduces Slack signature verification (
require_slack_signature/verify_slack_signature) and wires it into a new Slack router. - Adds Slack interaction payload parsing utilities (
parse_interaction/parse_payload) and registers the new router in the FastAPI app. - Adds
slack-sdkdependency and ensures test env defaults includeSLACK_SIGNING_SECRET.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| services/hackbot-api/tests/conftest.py | Adds dummy SLACK_SIGNING_SECRET so settings validation doesn’t block test imports. |
| services/hackbot-api/pyproject.toml | Adds slack-sdk dependency for signature verification. |
| services/hackbot-api/app/slack_webhook.py | New Slack interaction payload decoding/parsing into a ButtonClick model. |
| services/hackbot-api/app/routers/slack.py | New /slack/interactions endpoint secured by Slack HMAC signature verification. |
| services/hackbot-api/app/routers/init.py | Exposes the new Slack router from the router package. |
| services/hackbot-api/app/main.py | Registers the Slack router on the FastAPI app. |
| services/hackbot-api/app/config.py | Adds Slack settings model and embeds it into global settings. |
| services/hackbot-api/app/auth.py | Implements Slack signature verification + dependency for request authentication. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
suhaibmujahid
force-pushed
the
slack-webhook
branch
from
August 20, 2026 01:58
1ec3290 to
8a90b01
Compare
evgenyrp
requested changes
Aug 20, 2026
suhaibmujahid
force-pushed
the
slack-webhook
branch
from
August 26, 2026 23:43
1615f87 to
445f278
Compare
suhaibmujahid
force-pushed
the
slack-webhook
branch
from
August 27, 2026 17:28
445f278 to
fbeef97
Compare
evgenyrp
approved these changes
Aug 27, 2026
Add a dedicated Slack interactions endpoint with request signature verification.
Refines Hackbot docs around Slack interactivity by tightening explanations of request handling, status codes, and configuration requirements.
suhaibmujahid
force-pushed
the
slack-webhook
branch
from
August 27, 2026 19:46
66d4465 to
2a64143
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #6670
Add a dedicated Slack interactions endpoint with request signature verification.
Stack created with GitHub Stacks CLI • Give Feedback 💬