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
fix(chat): keep public chat deployments admin-only
A chat deployed with authType 'public' is invocable by anyone holding the
URL with no authentication — the same unauthenticated exposure as a public
workflow API, which is admin-only. Deploying a chat itself stays at write,
so this gates the exposure rather than the deployment: an editor ships a
password/email/SSO chat, an admin is required to make one public.
Only the transition *to* public is gated. Editing an already-public chat,
or moving it off public, stays at write — neither increases exposure.
The chat auth selector disables Public for non-admins with a tooltip, and
the create default (which is 'public') falls back to the first mode they
can actually deploy, so an editor does not hit a wall on a fresh chat.
Existing chat suites mock @/app/api/chat/utils wholesale and deploy with
authType public, so they now default the new gate to admin and keep
testing what they were written to test.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/chat/chat.tsx
+35-6Lines changed: 35 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ import { GeneratedPasswordInput } from '@/components/ui'
0 commit comments