Commit cff55d4
feat(email): route SendGrid sends through EU data residency
Add SENDGRID_REGION (default "eu") and call set_sendgrid_data_residency()
so the app's transactional email (email.py -> SendGrid HTTP API) routes
through api.eu.sendgrid.com, keeping recipient PII and content in EU data
centers. Requires SENDGRID_API_KEY to belong to an EU regional subuser.
Note: the echo-directus container sends its own emails via SMTP and must
separately move to smtp.eu.sendgrid.net with the EU subuser key (infra).
Refs ECHO-832
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8cd1e63 commit cff55d4
3 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
326 | 335 | | |
327 | 336 | | |
328 | 337 | | |
| |||
0 commit comments