Skip to content

fix(auth): document SES and fail closed on missing mail config (#1) - #385

Open
EHFCEngineering07 wants to merge 1 commit into
Bitcoindefi:mainfrom
EHFCEngineering07:fix/ses-password-reset-config-1
Open

EHFCEngineering07 wants to merge 1 commit into
Bitcoindefi:mainfrom
EHFCEngineering07:fix/ses-password-reset-config-1

Conversation

@EHFCEngineering07

Copy link
Copy Markdown

Summary

Fixes #1: password recovery depends on Amazon SES, but the four SES env vars were undocumented and only failed when a user requested a reset.

  • Document SES_* in api/.env.example and README
  • Fail API startup when SES is incomplete (clear missing-var message)
  • Log AWS/sandbox detail server-side via formatSesSendError
  • Always return a generic client error for /auth/password-reset/request
  • Add unit coverage for missing config + provider-failure formatting

Test plan

  • pnpm exec vitest run src/tests/ses-config.test.ts
  • Maintainer: confirm production .env has verified SES identity (sandbox vs production)
  • Maintainer: end-to-end mail receipt screenshots per issue evidence checklist

Made with Cursor

…oindefi#1)

Document SES env vars, fail closed when they are missing, log AWS/sandbox
detail server-side, and keep a generic client-facing recovery error.
@gitar-bot

gitar-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Gitar is working

Gitar

@EHFCEngineering07
EHFCEngineering07 force-pushed the fix/ses-password-reset-config-1 branch 2 times, most recently from 0f5a76a to 690b049 Compare September 28, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recuperacion de contrasena falla en produccion: Amazon SES sin configurar ni documentado

1 participant