Four connectors, one connection model
AURELITH connects to Slack, GitHub, an arbitrary HTTP endpoint and an outbound webhook. OAuth providers start from the workspace and finish at a callback route; secret providers store a token in Secret Manager. Nothing else is in the catalog.
What each connector can do
The capability labels are the adapter's own. If a scope is narrow, the page says so.
| Provider | Mode | What leaves the workspace |
|---|---|---|
| Slack | OAuth (chat:write, team:read) | Posts messages to a channel you choose. Reads the workspace team name and id to bind the connection. |
| GitHub | OAuth (read:user) | Reads your GitHub login to bind the connection. No repository content is requested. |
| HTTP endpoint | Secret | Sends requests only to the base-URL host you allowlist, with the secret as a bearer token or x-api-key header. |
| Outbound webhook | Secret | Posts signed JSON to your URL. The signing secret is created per connection and destroyed on disconnect. |
The OAuth model
The browser starts the flow; the server owns state, the client secret and the token exchange.
- Start with a state
- beginIntegrationConnect requires an admin role and the integrations entitlement, then issues a single-use state bound to the caller, org and provider with an expiry.
- Authorize at the provider
- The workspace redirects to the provider's authorize URL built from the configured client id (AURELITH_SLACK_CLIENT_ID or AURELITH_GITHUB_CLIENT_ID).
- Finish at the callback
- The provider returns to /app/integrations/callback. completeIntegrationCallback exchanges the code server-side and verifies the state before storing anything.
- Disconnect is revocation
- Disconnect revokes where the provider supports it (Slack auth.revoke) and destroys the stored secret version in every case.
The host allowlist
Every outbound request is checked against a per-provider host list before it is attempted.
| Provider | Default hosts | Additional hosts |
|---|---|---|
| Slack | slack.com, *.slack.com | Optional admin additions |
| GitHub | api.github.com | Optional admin additions |
| HTTP endpoint | None — at least one is required | Required; the base URL's host must be listed |
| Outbound webhook | None — at least one is required | Required; the destination's host must be listed |
Requests are checked against private-IP rules as well as the host list, so an allowlisted hostname that resolves into a private range is refused.
Outbound webhook delivery
Deliveries are queued by event triggers and processed by a scheduled worker with lease-based claims.
- Signature
- Each request carries x-aurelith-signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>"> using the connection's signing secret.
- Retries
- Attempts are scheduled at 0, 1, 5 and 25 minutes. A fourth failure is terminal: the delivery is audited and the organisation's admins are notified.
- No double sends
- A delivery is claimed with a 60-second lease inside a transaction, so overlapping runs cannot both send the same event.
Health and circuit breakers
A failing provider is skipped, not retried forever.
Each connection carries a circuit state: closed (calls allowed), half-open (one probe allowed) or open (calls skipped until the cooldown ends). A scheduled sweep tests connections up to 200 per tick with a persisted cursor, and records checked/skipped counts for the run.
Configure a connector
The integration guide lists the environment variables, the callback route and the exact payload contract.