3 months ago
Hi Railway Team,
I'm experiencing a critical production issue where environment variables are being silently dropped and not injected into my application runtime.
Problem:
Environment variables set in Railway dashboard don't appear in
process.envOnly certain variable names work (appears to be an undocumented whitelist)
Railway CLI has the same issue - variables save but don't inject
Zero error messages or documentation about restrictions
Evidence:
✅ STRIPE_SECRET_KEY - Works
❌ STRIPE_WEBHOOK_SECRET - Silently dropped
❌ TEST=1234 - Silently dropped
✅ DATABASE_URL - Works
Tested Both Methods:
Web UI: Variables save in dashboard but missing from runtime
CLI:
railway variables --setshows variables saved, butprocess.envis empty
Setup:
Project: Express.js in Turborepo monorepo
Build:
turbo run build --filter=backendStart:
turbo run start --filter=backendNode.js v18.20.8
Impact: This is blocking production deployment - I cannot configure API keys, webhook secrets, or any custom environment variables.
Request:
Is there an undocumented whitelist of allowed variable names?
Why do variables save successfully but not inject into runtime?
What's the recommended workaround while this is being fixed?
This appears to be a platform-wide bug affecting basic environment variable functionality that works on other hosting providers.
Service: ghostshorts-monorepo
Thanks for investigating this urgently.
This hits the key points while staying professional and actionable for their support team.
1 Replies
3 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
Status changed to Solved haisem-j • 3 months ago