Seed Convex Plaid env vars from Cursor Cloud secrets - #7
Conversation
Anonymous Convex deployments are empty each VM, so Connect account never saw PLAID_CLIENT_ID / PLAID_SECRET. Commit a repo-managed environment.json whose start script copies those secrets onto Convex after init, and document the Secrets-tab requirement. Co-authored-by: Daniel Xu <hi@danielx.me>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis change configures Cursor Cloud to install dependencies, initialize an anonymous local Convex deployment, and copy Plaid Cloud Secrets into that deployment. It also documents the required secret setup and the manual reseeding fallback. The potential startup failure caused by an interactive or authenticated Convex initialization was disproved: the complete seeded startup path was run in an isolated worktree with safe dummy Plaid values, closed stdin, and no inherited Convex deployment state. Anonymous initialization and all three Plaid environment updates completed successfully. Confidence Score: 5/5The verified startup workflow initializes Convex anonymously and applies Plaid configuration without interactive setup, so the change is safe to merge. The changed executable path completed successfully in an isolated environment, including anonymous deployment initialization and all intended environment updates. No actionable defects remain. Files Needing Attention: No files need follow-up attention.
What T-Rex did
Reviews (1): Last reviewed commit: "Seed Convex Plaid env vars from Cursor C..." | Re-trigger Greptile |
ApprovabilityVerdict: Approved 19a7409 Developer environment configuration for Cursor Cloud with a helper script to seed Plaid credentials onto Convex during local development. No production code or runtime behavior changes - purely developer tooling and documentation. You can customize Macroscope's approvability policy. Learn more. |
Anonymous Convex on each cloud VM starts with no Plaid credentials, so
/accounts→ Connect account cannot talk to Plaid.This commits a repo-managed
.cursor/environment.json(install stayspnpm install) whosestartcommand runsscripts/seed-convex-plaid-env.sh. That script copiesPLAID_CLIENT_ID,PLAID_SECRET, andPLAID_ENVfrom Cursor Cloud secrets onto the local Convex deployment afternpx convex init. Missing secrets are a no-op so the environment still boots.Required follow-up (secrets cannot live in git): add these on the bud cloud environment Secrets tab, then start a new agent so
startsees them:PLAID_CLIENT_IDPLAID_SECRETPLAID_ENV(optional; script defaults tosandbox)New agents after this lands will pick up the repo
environment.json. Existing running agents will not.Note
Seed Convex env vars from Plaid secrets on Cursor Cloud environment start
npx convex initand setsPLAID_CLIENT_ID,PLAID_SECRET, andPLAID_ENV(defaulting tosandbox) from Cursor Cloud secrets.pnpm install.PLAID_CLIENT_IDorPLAID_SECRETare unset, so the environment still starts cleanly without secrets configured.Macroscope summarized 19a7409.