Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(relay): forward webhook requests to the environment's tunnel #15086

Mergedjuliusmarmingemerged 8 commits intot3code/webhooks-server fromrefs/pull/15086/headmerged by juliusmarminge View on GitHub

Showing 14 changed files with 8 additions and 0 deletions (loading 11).

x
0 of 14 viewed, 14 left
6 additions and 0 deletionsdocs/internals/t3-connect.mdModified
View file
@@ -4,6 +4,12 @@
credentials for reaching environments, and managed tunnel allocations. After
bootstrap, clients send application traffic through the environment's tunnel
hostname; the relay Worker does not proxy their HTTP or WebSocket sessions.
+The one exception is automation webhooks: the relay forwards
+`/v1/hooks/:environmentId/:hookId/:token` statelessly to the environment's
+tunnel so senders get a stable URL. It stores nothing, keeps bodies and tokens
+out of its traces, and leaves token and signature verification to the
+environment
+([forwarder](../../infra/relay/src/hooks/HookForwarder.ts)).
​
Clerk, deployment, and native authentication setup live in the
[Connect setup runbook](../operations/connect-setup.md).
1 addition and 0 deletionsinfra/relay/src/agentActivity/AgentActivityPublisher.test.tsModified
View file
@@ -94,6 +94,7 @@
]),
listForUser: () => Effect.succeed([]),
getForUser: () => Effect.succeed(null),
+ findActiveManagedForEnvironment: () => Effect.succeed([]),
revokeForUser: () => Effect.succeed(false),
...overrides,
1 addition and 0 deletionsinfra/relay/src/agentActivity/FcmDeliveries.test.tsModified
View file
@@ -171,6 +171,7 @@