Commit Graph

36 Commits

Author SHA1 Message Date
Baptiste Arnaud
d6bcc26f27
🐛 Fix cross-workspace credential theft via preview endpoint (#2430)
## Summary
- **Fixes
[GHSA-cq66-9cwr-x8jr](https://github.com/baptisteArno/typebot.io/security/advisories/GHSA-cq66-9cwr-x8jr)**
— the previous fix for GHSA-4xc5-wfwc-jw47 was incomplete: the
bot-engine runtime still allowed any authenticated user to exfiltrate
credentials from any workspace via the preview endpoint by passing
`workspaceId: ""`
- Invert the falsy check in `getCredentials()` so that missing or empty
`workspaceId` **denies** access instead of skipping validation
- Add `z.string().min(1)` on the typebot schema's `workspaceId` to
reject empty strings at the Zod validation layer
- Tighten `getGoogleSpreadsheet` param type from `string | undefined` to
`string`

## Test plan
- [x] Typecheck passes on `credentials`, `bot-engine`, `whatsapp`
- [x] All tests pass (lint, bot-engine, whatsapp, results, lib,
rich-text, emails, builder)
- [ ] Verify that preview mode still works correctly with valid
workspaceId
- [ ] Verify that forged blocks, Google Sheets, and streaming endpoints
still load credentials for legitimate users

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 16:21:17 +02:00
Baptiste Arnaud
1541877836
👌 Introduce Spaces 2026-03-25 18:17:05 +01:00
Baptiste Arnaud
acd2f2971b
🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
Baptiste Arnaud
d04605c8ea
♻️ Remove shared-primitives package 2026-03-25 10:43:35 +01:00
Baptiste Arnaud
e9186003a6
🔧 Upgrade Effect packages 2026-03-24 14:51:38 +01:00
Baptiste Arnaud
92a33129e4
🔧 Upgrade effect and fix workflows ci build 2026-03-23 10:23:08 +01:00
Baptiste Arnaud
9cf506c5d1
🔧 Add feature-flags service 2026-03-20 17:58:25 +01:00
Baptiste Arnaud
a9b2af116d
🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
Baptiste Arnaud
c2b251c7e5
♻️ Migrate to NX (#2418) 2026-03-18 15:29:32 +00:00
Baptiste Arnaud
09b2446d04
🔧 Migrate workflows stack to Effect 4 beta
Switch the workflows, RPC clients, and shared service layers to the new Effect 4 APIs so the export and onboarding flows use a consistent runtime model. This also raises the background export threshold to keep smaller exports on the simpler path.
2026-03-11 18:05:25 +01:00
Baptiste Arnaud
ae5ea1f328
🔧 Fix Prisma scripts and refresh dependencies (#2389)
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
Deploy Workflows (Fly.io) / deploy (push) Has been cancelled
- Update workspace dependencies across apps and packages to align with
new lint/Effect expectations
- Adjust Prisma scripts and configs (db push, studio, adapters, read
replicas) for the latest CLI flags and tracing helpers
- Refresh generated locks and helper modules (emails, bot engine,
telemetry, rich text, scripts)
2026-02-12 12:45:01 +01:00
Baptiste Arnaud
5e0de89911
🔧 Add forward WA errors and campaign statuses option 2026-02-11 16:46:35 +01:00
Baptiste Arnaud
80db9565cd
♻️ Upgrade to Zod v4 (#2355) 2026-01-19 10:51:20 +01:00
Baptiste Arnaud
8febf1a4bd
Introduce Effect-based workflow system (#2345) 2026-01-15 10:35:22 +01:00
Baptiste Arnaud
a15673f5a6
♻️ Migrate builder from tRPC to oRPC (#2342) 2026-01-13 15:10:07 +01:00
Baptiste Arnaud
f29467df4f
💚 Fix typecheck lastActivityAt on schema 2026-01-05 21:22:30 +01:00
Baptiste Arnaud
d76381ae58
🛂 Better typebot read authorization 2025-12-08 16:56:45 +01:00
Baptiste Arnaud
dd82c4d318
♻️ Migrate to Bun test 2025-11-27 12:08:31 +01:00
Baptiste Arnaud
27c9bf12e8
🧱 (results) Process results export in the background for big exports 2025-11-18 18:15:08 +01:00
Baptiste Arnaud
842f8ef0bb
🚸 Auto-update typebot if it was migrated while getting it 2025-10-30 11:47:56 +01:00
Baptiste Arnaud
e928987623
⬆️ Upgrade tooling
TS v5.9, Biome v2 + fixes
2025-09-09 10:32:38 +02:00
Baptiste Arnaud
a78498f829
🐛 Fix cards block duplication
Especially when button paths are connected
2025-04-29 15:46:45 +02:00
Baptiste Arnaud
47107e3b55
🚸 (auth) Add user change email form 2025-04-16 15:27:48 +02:00
Baptiste Arnaud
d8b3b8484e
Revert "🔧 Introduce 'isShared' property to Typebot model"
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
This reverts commit 18459bc4d3.
2025-03-31 22:47:55 +02:00
Baptiste Arnaud
18459bc4d3
🔧 Introduce 'isShared' property to Typebot model 2025-03-31 18:25:59 +02:00
Baptiste Arnaud
b61b5f5e4e
Add Cards Input
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
Closes #1987
2025-03-10 16:05:10 +01:00
Baptiste Arnaud
c93b4f4ce7
Add Command event (#2017)
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
Closes #1102
2025-02-14 09:40:42 +01:00
Baptiste Arnaud
d3c4a535cc
🐛 Avoid sending useless queries when not having the rights 2025-02-13 21:37:50 +01:00
Baptiste Arnaud
27366dde5a
💚 Add missing packages and clean up unused packages 2025-02-04 11:39:17 +01:00
Baptiste Arnaud
aae6caaa0a
Revert "build: add ts references for better DX"
This reverts commit b8ffad0159.
2025-01-29 17:44:06 +01:00
Baptiste Arnaud
b8ffad0159
build: add ts references for better DX 2025-01-25 14:57:01 +01:00
Baptiste Arnaud
06e6faa9d5
feat: integrate new brand (#1935) 2025-01-23 13:25:47 +01:00
Baptiste Arnaud
5a770d30f2
🛂 Add accessRight prop in listTypebots endpoint response
Closes #1916
2024-12-11 18:59:03 +01:00
Baptiste Arnaud
698eda7079
🔧 Add version filed in package json files 2024-10-09 08:31:03 +02:00
Baptiste Arnaud
59c0ea03cf
Add Webhook block (#1815)
Closes #1531
2024-10-07 11:44:28 +02:00
Baptiste Arnaud
10750f54d1
♻️ Use bun, biome, better ts config, new license and remove all barrel files (#1801)
Closes [#1754](https://github.com/baptisteArno/typebot.io/issues/1754)
2024-09-25 14:50:13 +02:00