Skip to content

Scope engine data access to the executing app - #330

Merged
merlinfuchs merged 1 commit into
mainfrom
merlin/tenant-scoping
Sep 23, 2026
Merged

merlinfuchs merged 1 commit into
mainfrom
merlin/tenant-scoping

Conversation

@merlinfuchs

@merlinfuchs merlinfuchs commented Aug 3, 2026 •

Copy link
Copy Markdown
Owner

The engine looked up variable values, message templates, message instances and resume points by ID alone, and those IDs come from user-authored flow data or custom IDs, so one app could read or write another app's data. Queries now scope by app, joining through variables/messages for the two tables without an app_id.

The instance upsert from #361 now also refuses to re-link another app's instance. queries_scoping_test.go fails any query that touches variable_values or message_instances without mentioning app_id, since there's no DB in tests.

@vercel

vercel Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
kite Ready Ready Preview Sep 23, 2026 9:42pm UTC
kite-docs Ready Ready Preview Sep 23, 2026 9:42pm UTC

Request Review

@merlinfuchs
merlinfuchs merged commit 8411425 into main Sep 23, 2026
2 of 3 checks passed
@merlinfuchs
merlinfuchs deleted the merlin/tenant-scoping branch September 23, 2026 21:42

This branch was successfully deployed

2 active deployments
Preview – kite — 3f0234e4 Deployed Sep 23, 2026 by vercel[bot]
Preview – kite-docs — 3f0234e4 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant