fix(auth): document SES env vars and add diagnostic logging for password reset (#1) - #133
Conversation
Code Review ✅ Approved 2 resolved / 2 findingsAdds authentication to the palette endpoint, secures palette entry increments, documents SES environment variables, and introduces diagnostic logging for password resets. All identified issues were resolved successfully. ✅ 2 resolved✅ Security: GET /admin/.../palette endpoint has no authentication
✅ Bug: Palette next-id computed via MAX+1 can overwrite entries
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Important Your trial ends in 7 days — upgrade now to keep code review, CI analysis, auto-apply, custom automations, and more. Was this helpful? React with 👍 / 👎 | Gitar |
Closes #1
Summary of Changes
Documents Amazon SES v2 configuration variables in
api/.env.exampleand adds detailed server-side error diagnostic logs when dispatching password reset emails while preserving safe, generic messages for clients.Problem & Root Cause
Password recovery failed in production whenever SES environment variables were missing or in sandbox mode. The required SES variables (
SES_REGION,SES_ACCESS_KEY_ID,SES_SECRET_ACCESS_KEY,SES_FROM_EMAIL,SES_FROM_NAME) were previously undocumented in.env.example, leading deployments to lack mail credentials.Solution
SES_REGION,SES_ACCESS_KEY_ID,SES_SECRET_ACCESS_KEY,SES_FROM_EMAIL, andSES_FROM_NAMEtoapi/.env.example.api/src/lib/email.ts, distinct diagnostic logs are captured in console/stdout to differentiate configuration absence from AWS sandbox/unverified recipient errors.Summary by Gitar
api/src/repositories/worldBuilder.tsapi/src/server.tsSIGTERMandSIGINTsignals with character reset inserver/src/server.tsThis will update automatically on new commits.