Closed
Conversation
Plan for provisioning Personal Servers on account.vana.org (vana-connect) when users log in. Covers Dockerizing personal-server-ts, GCP provider abstraction (swappable to Sprites.dev), Stripe-style API routes, Neon Postgres state, and login-triggered provisioning flow.
…xecution detail Resolve all open questions (unified URL scheme, disk retention, auto-registration, wallet-derived keys, env var security for MVP). Add Cloudflare Worker routing layer as new Phase 2, detailed validation criteria per phase, and rollback plan. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This was referenced Mar 20, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Replace Worker-proxy approach (blocked by CF Workers can't fetch IPs) with Cloudflare Tunnels: each VM runs cloudflared sidecar, provisioning API creates tunnel + DNS CNAME via CF API. No proxy fleet, no per-user DNS management. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
tnunamak
added a commit
to vana-com/vana-connect
that referenced
this pull request
Mar 21, 2026
## Summary - Stripe-style API routes (`POST /api/servers`, `GET /api/servers/:id`, `DELETE /api/servers/:id`) - GCP Compute Engine provider (e2-micro VMs on Container-Optimized OS with persistent data disks) - Neon Postgres DB layer for user→server mapping - Cloudflare Worker for `*.myvana.app` subdomain routing with KV cache - Wallet-based auth (same pattern as existing `/api/sign`) ## Context Part of the Cloud Personal Server plan ([data-connect PR #86](vana-com/data-connect#86)). When users log into account.vana.org, a Personal Server is auto-provisioned in the cloud at `{userId}.myvana.app`. ## Infrastructure set up - [x] GCP service account (`cloud-ps-provisioner@corsali-development`) with Compute Engine admin - [x] Vercel env vars: `DATABASE_URL`, `GCP_SERVICE_ACCOUNT_KEY`, `GCP_PROJECT` - [x] Neon `personal_servers` table created - [x] Cloudflare `*.myvana.app` wildcard DNS - [ ] Cloudflare Worker deployed with `DATABASE_URL` secret and `SERVER_CACHE` KV binding - [ ] Docker image built and pushed for personal-server-ts ([PR #58](vana-com/personal-server-ts#58)) ## Test plan - [ ] `POST /api/servers` with valid masterKeySignature → creates GCE VM, returns `{ status: "provisioning" }` - [ ] `POST /api/servers` again → returns existing server (idempotent) - [ ] `GET /api/servers/:id` → transitions to "running" once VM healthy, writes `vm_ip` to DB - [ ] `https://{userId}.myvana.app/health` returns 200 (Worker routes to VM) - [ ] `https://{userId}.myvana.app/mcp` responds (MCP endpoint reachable) - [ ] `DELETE /api/servers/:id` → stops VM, retains disk for 30 days - [ ] Auth: missing/invalid signature → 401 - [ ] Auth: user A cannot access user B's server → 404 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
Member
Author
|
Superseded by the repo-specific implementation PRs and the new cross-repo launch/QA plan. Live implementation PRs:
Shareable plan PR:
Closing this because it is a plan-only PR in the wrong repo. |
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.
Summary
Plan for provisioning Personal Servers on account.vana.org when users log in — no desktop app required.
POST /api/servers,GET /api/servers/:id, etc.)Phasing
Key decisions made
srv_prefixed IDs)See
docs/260319-cloud-personal-server-plan.mdfor full details.Review
This is a plan doc for discussion — no code changes.