Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions devops/docker/compose/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
# TROGON_SOURCE_NOTION_STREAM_MAX_AGE_SECS=604800
# TROGON_SOURCE_NOTION_NATS_ACK_TIMEOUT_SECS=10

# --- Sentry Source ---
# TROGON_SOURCE_SENTRY_CLIENT_SECRET=
# TROGON_SOURCE_SENTRY_SUBJECT_PREFIX=sentry
# TROGON_SOURCE_SENTRY_STREAM_NAME=SENTRY
# TROGON_SOURCE_SENTRY_STREAM_MAX_AGE_SECS=604800
# TROGON_SOURCE_SENTRY_NATS_ACK_TIMEOUT_SECS=1

# --- Discord Source ---
# TROGON_SOURCE_DISCORD_BOT_TOKEN=
# TROGON_SOURCE_DISCORD_GATEWAY_INTENTS=guilds,guild_members,guild_messages,guild_message_reactions,direct_messages,message_content,guild_voice_states
Expand Down
8 changes: 8 additions & 0 deletions devops/docker/compose/services/trogon-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ prefix:
| incident.io | `/incidentio/webhook` | `TROGON_SOURCE_INCIDENTIO_SIGNING_SECRET` |
| Linear | `/linear/webhook` | `TROGON_SOURCE_LINEAR_WEBHOOK_SECRET` |
| Notion | `/notion/webhook` | `TROGON_SOURCE_NOTION_VERIFICATION_TOKEN` |
| Sentry | `/sentry/webhook` | `TROGON_SOURCE_SENTRY_CLIENT_SECRET` |

The gateway port is configured via `TROGON_GATEWAY_PORT` (default `8080`).
Liveness and readiness probes are available at `GET /-/liveness` and `GET /-/readiness`.
Expand Down Expand Up @@ -67,6 +68,13 @@ then point the Notion webhook endpoint at `/notion/webhook`. Verified events
are forwarded to NATS on `{subject_prefix}.{type}` subjects such as
`notion.page.created`.

## Sentry webhooks

Sentry integration-platform webhooks sign the raw JSON body with the app client
secret. Configure `TROGON_SOURCE_SENTRY_CLIENT_SECRET`, point the webhook URL
at `/sentry/webhook`, and the gateway will forward verified payloads to NATS on
`{subject_prefix}.{resource}.{action}` subjects such as `sentry.issue.created`.

## Exposing webhooks with ngrok

```bash
Expand Down
20 changes: 20 additions & 0 deletions rsworkspace/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rsworkspace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trogon-source-gitlab = { path = "crates/trogon-source-gitlab" }
trogon-source-incidentio = { path = "crates/trogon-source-incidentio" }
trogon-source-linear = { path = "crates/trogon-source-linear" }
trogon-source-notion = { path = "crates/trogon-source-notion" }
trogon-source-sentry = { path = "crates/trogon-source-sentry" }
trogon-source-slack = { path = "crates/trogon-source-slack" }
trogon-source-telegram = { path = "crates/trogon-source-telegram" }
trogon-std = { path = "crates/trogon-std" }
Expand Down
1 change: 1 addition & 0 deletions rsworkspace/crates/trogon-gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ trogon-source-gitlab = { workspace = true }
trogon-source-incidentio = { workspace = true }
trogon-source-linear = { workspace = true }
trogon-source-notion = { workspace = true }
trogon-source-sentry = { workspace = true }
trogon-source-slack = { workspace = true }
trogon-source-telegram = { workspace = true }
trogon-std = { workspace = true, features = ["clap", "telemetry-http"] }
Expand Down
Loading
Loading