Webhooks
Zentri has no general webhook feature. The coordinator cannot send an HTTP request to a URL that you or an API caller configure when something happens. There is no webhook setting, route, or table.
What exists instead
Section titled “What exists instead”To learn what happens in Zentri, use one of these:
| You want | Use |
|---|---|
| A pull request to fail on a coordination problem | The GitHub merge check. GitHub calls it, or its workflow job does. |
| People to get questions and decisions | The Slack bot. It pulls messages from the coordinator. The coordinator never calls Slack. |
| Your own notices on the command line | zt status, zt questions, and zt decisions. See the CLI reference. |
| An agent to get notices | The agent kit’s hooks and the end of each Zentri tool result. See Agents. |
| Numbers for a dashboard or alert | Prometheus metrics at /metrics. See Metrics and Observability. |
| Your own integration | The HTTP API, polled with a user token. See the HTTP API reference. An integration token cannot do this: its only scopes are checks:read, slack:act-as-verified-user, and metrics:read. |
Inbound request URLs
Section titled “Inbound request URLs”Two Zentri components take webhook-style requests from outside. Neither is the coordinator.
| Component | Route | Sender | How it checks the sender |
|---|---|---|---|
The GitHub App, zentri-github-check |
POST /webhook |
GitHub | X-Hub-Signature-256, HMAC over the raw body, checked in constant time before parsing. A second signature header is refused. The body is capped at 25 MiB. |
| The Slack bot in HTTP mode, the default | POST /slack/events |
Slack | The Slack signature, HMAC-SHA256 over the timestamp and the raw body, checked in constant time. A timestamp more than 5 minutes off and a replayed signature are refused. The team ID must match. |
In Socket Mode, opt-in with SLACK_MODE=socket, the Slack bot has no inbound URL at all. It opens a WebSocket to Slack.
The GitHub App is not registered anywhere yet, and the Slack bot has not run against a real workspace. Both are tested against fakes.
Outbound requests the coordinator does make
Section titled “Outbound requests the coordinator does make”The coordinator makes outbound requests only to endpoints that the operator sets in its environment:
| Endpoint | Set by |
|---|---|
| The embedder for intent dedup, such as a local Ollama | ZENTRI_EMBEDDER and ZENTRI_EMBED_BASE_URL |
| The LLM for the optional judge, extract, and phrase steps, and the model router’s tiebreak | ZENTRI_LLM_BASE_URL |
| An OpenTelemetry collector | OTEL_EXPORTER_OTLP_ENDPOINT |
No API caller can change these. See Environment variables.
SSRF and webhooks
Section titled “SSRF and webhooks”Server-side request forgery (SSRF) is the risk that someone makes the server send a request to a host they choose, such as a cloud metadata address or an internal service. Webhooks carry this risk because their URLs come from users. Threat T12 in the repository’s docs/plan/THREAT_MODEL.md covers it for webhooks and model endpoints.
What the code does today, for model endpoints:
- Only the operator’s environment sets them. No API caller can.
- Their clients accept only
httpandhttpsbase URLs with no credentials, query, or fragment. - They never follow a redirect.
- They are not range-checked, because they usually sit on a private address, such as Ollama on the same host.
Tests cover each of these: TestConstructorsRejectBadBaseURLs, TestModelClientsDoNotFollowRedirects, and TestModelsFromEnvRejectsBadConfig.
What T12 plans for a future webhook sender:
- Only admins configure webhook URLs.
- The sender resolves DNS and blocks loopback, link-local, private, and metadata ranges unless an admin allows them.
- It follows no redirect.
- It signs each delivery with HMAC-SHA256.
Limitations
Section titled “Limitations”- No outbound webhooks, and no event stream. An integration that wants to react to Zentri polls the HTTP API.
- The threat model lists
TestWebhookBlocksPrivateAddressesfor T12. That test does not exist, because the sender does not.
Related pages
Section titled “Related pages”- GitHub merge check and Slack bot
- Integrations for integration tokens
- The HTTP API reference
- Hardening