ProblemThe gateway defaults the JWT secret to a known development string when unset; in a misconfigured prod it silently uses the known secret.
- Default known secret.
- No startup guard for prod.
- Forged tokens possible.
Solution
- Fail startup when the JWT secret is missing or the default in prod.
- Add a secret-strength check.
- Test the guard.
Acceptance Criteria
- Prod refuses to boot with a weak/default secret.
- Dev still works.
pnpm --filter api-gateway build passes.
Note for Contributors: Write a clear PR description. Show the prod boot guard.
ProblemThe gateway defaults the JWT secret to a known development string when unset; in a misconfigured prod it silently uses the known secret.
Solution
Acceptance Criteria
pnpm --filter api-gateway buildpasses.Note for Contributors: Write a clear PR description. Show the prod boot guard.