You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit febbfef
Browse filesBrowse the repository at this point in the historyBrowse files
fix(webapp): tighten session create and webhook endpoint permissions
Tighten three permission checks in the webapp:
- The webhook endpoint page's generate secret, set secret and generate
verify token actions now require `write:webhooks`, matching the API, and
their buttons are disabled without it.
- Session `externalId`s can no longer contain a `/channels` path segment
or end in `:channels`, since both forms name a session's channels.
Session create returns 422, and webhook session keys and playground chat
ids follow the same rule.
- Session create no longer stores the webhook-only `channelEvent` and
`actionSource: "webhook"` fields from a client's base payload, matching
how client `.in` appends are already handled.
Mono-RevId: d1aa9aad641047f37d54396774d4dd4e84530e68
Session external ids can no longer contain a `/channels` path segment (for example `chat-1/channels/support`) or end in `:channels`, since both forms name a session's channels. Creating a session with one now returns a 422 validation error.
Copy file name to clipboardExpand all lines: apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.webhooks.endpoints.$endpointParam/route.tsx
+84-7Lines changed: 84 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ import type { WebhookValueSource } from "@trigger.dev/core/v3";
Copy file name to clipboardExpand all lines: apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.playground.action.tsx
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,11 @@ import { findEnvironmentBySlug } from "~/models/runtimeEnvironment.server";
0 commit comments