Repository navigation
Commit 8fe46f4
committed
Freeze organizations moving to v2
Writes, OAuth completion and OAuth token refresh are refused for an
organization whose org_moved_to_v2 row is moving or moved (423 Locked;
503 when the state cannot be read). The dashboard of a moved organization
redirects to its v2 page. Toolkit connections forwarded to v2 are now
named per member.
The executor asks the host's write gate before a write transaction opens
and carries the verdict into it, never asking from inside one: the gate
reads on its own connection, which a single-session database would not
serve while the transaction holds the request's.
Migration 0022 adds v2_org_slug and the rolled_back state, and grants
v1_import_writer its access when the role exists. For a role created
after the migration has run:
GRANT INSERT, UPDATE ON org_moved_to_v2 TO v1_import_writer;
GRANT SELECT (org_id, state, v2_org_id, v2_org_slug) ON org_moved_to_v2 TO v1_import_writer;1 parent 4998ad0 commit 8fe46f4
28 files changed
Lines changed: 2859 additions & 95 deletions
File tree
- .changeset
- apps/cloud
- drizzle
- meta
- src
- account
- auth
- db
- edge
- engine
- extensions/billing
- mcp
- org
- packages/core
- api/src
- handlers
- server
- sdk/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments