feat: Add slack_app Django app with Slack Bolt and /inc help command#110
feat: Add slack_app Django app with Slack Bolt and /inc help command#110spalmurray wants to merge 14 commits intomainfrom
Conversation
85ae1e3 to
88f05c6
Compare
|
|
||
| User = get_user_model() | ||
|
|
||
| SERVICE_USERNAME = "firetower-slack-app" |
There was a problem hiding this comment.
this is for the firetower internal service account. The 'user' the slack app authenticates as for the purpose of accessing Incident data.
f281446 to
6f17d3e
Compare
6f17d3e to
97ffeaf
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| service: firetower-slack-app-test | ||
| project_id: ${{ secrets.GCP_PROJECT_SLUG }} | ||
| region: us-west1 | ||
| image: ${{ env.BACKEND_IMAGE_REF }} |
There was a problem hiding this comment.
Slack bot Cloud Run runs web server
High Severity
deploy-test-slack-bot deploys firetower-slack-app-test with only image: set, so the new service likely runs the container’s default CMD (/app/entrypoint.sh server) instead of the Slack bot process. This can make the Slack bot service come up “healthy” while never starting run_slack_bot.
| team_id: str | ||
| participant_sync_throttle_seconds: int | ||
| signing_secret: str | ||
| app_token: str |
There was a problem hiding this comment.
Existing configs may fail to deserialize
High Severity
SlackConfig now requires signing_secret and app_token, which can break startup if any deployed TOML configs (or secrets-driven config generation) haven’t been updated to include these keys, since deserialization via serde is typically strict about required fields.


Adds the foundations for migrating the incident bot (/inc slash commands) from opsbot to firetower. This sets up a new firetower.slack_app Django app with Slack Bolt wired up, a DRF authentication class that verifies Slack signing secrets, a /inc help smoke test command, and Datadog metrics instrumentation for command tracking.
Linear: https://linear.app/getsentry/issue/RELENG-463/infrastructure-and-slack-bolt-setup