Send registration verification emails via Resend#131
Open
sfoale wants to merge 3 commits into
Open
Conversation
Add Resend as the preferred transport for registration verification emails, falling back to SMTP when RESEND_API_KEY is unset. Emails now send from the branded, domain-verified address no-reply@send.treasuremap.space instead of the personal Gmail account. - server/utils/email.py: add _send_resend() (lazy resend import, run in a worker thread); select transport Resend -> SMTP -> dev log fallback - server/config.py: add RESEND_API_KEY and RESEND_FROM settings - server/requirements.txt: add resend>=2.0.0 - helm: wire RESEND_API_KEY secret (secrets.yaml, _helpers.tpl) and RESEND_FROM env (deployment.yaml); add resendApiKey placeholder to values.yaml and values-argocd.yaml
There was a problem hiding this comment.
Pull request overview
This PR switches registration verification emails to use Resend as the preferred delivery mechanism (with SMTP fallback when no Resend API key is configured) and updates application + Helm configuration to support the new transport and branded sender identity.
Changes:
- Add Resend transport support to verification-email sending (Resend → SMTP → dev logging fallback).
- Introduce
RESEND_API_KEY/RESEND_FROMconfiguration and add theresendPython dependency. - Wire Helm values/templates for the Resend API key secret and
RESEND_FROMenvironment variable.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| server/utils/email.py | Adds _send_resend() and selects Resend-first transport with async thread offload. |
| server/requirements.txt | Adds resend>=2.0.0 dependency. |
| server/config.py | Adds RESEND_API_KEY and RESEND_FROM settings. |
| gwtm-helm/values.yaml | Adds secrets.resendApiKey value placeholder. |
| gwtm-helm/values-argocd.yaml | Adds secrets.resendApiKey placeholder/comment for ArgoCD-managed values. |
| gwtm-helm/templates/secrets.yaml | Adds resend-api-key entry to generated Secret data. |
| gwtm-helm/templates/fastapi/deployment.yaml | Adds RESEND_FROM env var to the FastAPI deployment. |
| gwtm-helm/templates/_helpers.tpl | Adds RESEND_API_KEY env var sourced from the chart secret. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Resend as the preferred transport for registration verification emails, falling back to SMTP when RESEND_API_KEY is unset. Emails now send from the branded, domain-verified address
no-reply@send.treasuremap.space instead of the personal Gmail account.