Conversation
…L_PROJECT_SECRET_SERVER_KEY Mirrors the prior rename of the publishable client key (#1411). Renames the env var across 20 occurrences in 8 files: backend env files, the Prisma seed script, runtime config, and the docker entrypoint / local-emulator scripts.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughThis PR renames the internal project secret server key environment variable from ChangesInternal Secret Server Key Variable Rename
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR renames the environment variable
Confidence Score: 5/5Safe to merge — a mechanical rename with complete coverage, verified by a repo-wide grep showing zero remaining uses of the old name. Every usage site — env files, seed script, runtime app init, Docker entrypoint, emulator cloud-init, fast-rotate, and the secret-rotation script — has been updated atomically and consistently. No stale references remain anywhere in the repository, including CI/CD workflows. No files require special attention; all eight changed files carry straightforward one-for-one substitutions. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Environment Variable\nSTACK_INTERNAL_PROJECT_SECRET_SERVER_KEY] --> B{Runtime Mode?}
B -- "Local Emulator" --> C[entrypoint.sh: require var is set\nvalidate 64-char hex]
B -- "Standard Docker" --> D[entrypoint.sh: auto-generate\nopenssl rand -base64 32]
C --> E[Export as\nSTACK_SECRET_SERVER_KEY]
D --> E
E --> F[apps/backend/src/stack.tsx\ngetEnvVariable → StackServerApp]
A --> G[prisma/seed.ts\nupsert internal ApiKeySet]
A --> H[rotate-secrets.sh\nvalidate + write rotated-secrets.env\nSQL UPDATE ApiKeySet]
A --> I[user-data / run-emulator.sh\nqemu fast-rotate payload]
Reviews (1): Last reviewed commit: "Rename STACK_SEED_INTERNAL_PROJECT_SECRE..." | Re-trigger Greptile |
Summary
STACK_SEED_INTERNAL_PROJECT_SECRET_SERVER_KEYtoSTACK_INTERNAL_PROJECT_SECRET_SERVER_KEYeverywhere it is used (20 occurrences across 8 files), covering backend env files, the Prisma seed script, runtime config, and the docker entrypoint/local-emulator scripts.Test plan
pnpm lintpnpm typecheckSummary by CodeRabbit