Skip to content

The connection's service account signs deliveries

Accepted. Reverses an earlier rule (2026-09-19) that keyed signing on the application.

2026-09-22.

Outbound webhook deliveries carry a bearer token and an HMAC signature so the receiver can verify the sender. Both come from a service account with webhook credentials.

The first rule chose the application’s oldest active service account and ignored the service account selected on the connection and the subscription. But the connection form requires a service account, and the subscription form asks for no application. Both screens described a credential that nothing used. A receiver configured with the connection account’s signing secret rejected every delivery with 401, the job went FAILED after its retries, and nothing recorded why.

The first rule that names an account decides. There is no fall-through past a named account, because silently signing with a different account is how a rotated or deactivated credential keeps working by accident.

  1. subscription.serviceAccountId, an explicit override.
  2. The subscription’s connection: connection.serviceAccountId. This is the normal case.
  3. The application’s oldest active service account, found through the subscription’s application code or, for a direct job, the first segment of the job code. Kept only as the fallback when no connection names an account.
  4. Nothing: bare delivery, with a reason.

Steps 1 and 2 resolve by id and require the account to be active. An inactive or missing account, or one without webhook credentials, yields no credentials and a reason naming what configured it. Lookups sit behind a one-minute per-key cache.

Never unsigned silently. The resolved credentials carry a reason, non-empty exactly when both credentials are empty. The delivery handler logs delivering unsigned at WARN with the job, subscription and reason, and on a failed attempt appends (delivered unsigned: <reason>) to the attempt’s error message so the job page explains the 401. No secret appears in any log field or message.

Good:

  • What the UI asks for is what the platform uses.
  • A misconfiguration is visible on the failing job, not only in server logs.
  • Deactivating a service account takes effect (after the cache interval) rather than being masked by another account.

Bad:

  • Changing the rule changed which secret receivers must trust; existing integrations that relied on the application account had to be re-checked.
  • The fallback in step 3 is still implicit for jobs with no connection, so it remains the least predictable path.
  • A one-minute cache means rotation is not instant.
Alternative Why not
Keep the application rule and remove the service account from the connection form Loses the ability to run several differently-credentialed connections for one application.
Fall through to the next candidate when a named account is inactive Hides misconfiguration.
Fail the job outright when no account resolves Some receivers are deliberately unauthenticated; the reason string covers diagnosis.