feat: app-scoped control plane for multi-app deployments#5095
Draft
Flo4604 wants to merge 4 commits intofeat/multi-app-schemafrom
Draft
feat: app-scoped control plane for multi-app deployments#5095Flo4604 wants to merge 4 commits intofeat/multi-app-schemafrom
Flo4604 wants to merge 4 commits intofeat/multi-app-schemafrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Feb 19, 2026
8a14ae8 to
1b51dbf
Compare
1b51dbf to
86a3b73
Compare
This was referenced Feb 19, 2026
86a3b73 to
3fd482f
Compare
3fd482f to
a8265b1
Compare
a8265b1 to
ebf6205
Compare
ebf6205 to
7ebf639
Compare
a8f53bd to
1bb80b5
Compare
19 tasks
7ebf639 to
de78fbf
Compare
Rewrites the control plane to key everything by app_id instead of
project_id, enabling concurrent deploys across different apps in the
same project.
- New AppService (CreateApp, ListApps) with transactional app + settings creation
- Deployment service resolves app from slug, uses app-scoped settings/env vars
- Deploy worker loads app, upserts internal K8s services for inter-app DNS
- Promote/rollback handlers use app.LiveDeploymentID instead of project
- Routing and Restate workflows keyed by app_id
- Domain generation always includes app slug in prefix
- Env var template resolver (${{ shared.KEY }}, ${{ app.KEY }}) in svc/ctrl/internal/envresolve
- Proto: app_slug on CreateDeploymentRequest, app_id on Deployment, new AppService
The template resolution logic (needsShared/needsSiblings scanning, shared var fetching, sibling var fetching) adds unnecessary complexity. Just pass app env vars straight through as secrets.
- Proto: add app_id field (18) to ApplyDeployment message - Ctrl: pass deployment.AppID through deploymentRowToState - Krane: add .AppID() label to deployment pods so Vector extracts it
TRPC routes now query via app's githubRepoConnection instead of project. selectRepository accepts appId, disconnectRepo deletes by appId. Project list JOIN changed to apps.id = githubRepoConnections.appId.
de78fbf to
9147c77
Compare
b22266a to
58817ff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What does this PR do?
Fixes # (issue)
If there is not an issue for this, please create one first. This is used to tracking purposes and also helps us understand why this PR exists
Type of change
How should this be tested?
Checklist
Required
pnpm buildpnpm fmtmake fmton/godirectoryconsole.logsgit pull origin mainAppreciated