Commit 0df6d09
committed
fix(mail): address review feedback on PR #3238
- env.js: relax SMTP_SECURE from enum(4-values) to z.string() +
case-insensitive transform, so any casing from the V1 secret
(True/TRUE/true) flows through without a Zod validation crash.
- .kontinuous/values.yaml: expand the SMTP-mapping comment to spell
out the env/envFrom precedence, which is what makes the dev/preprod
MailDev fallback work when smtp-app is missing.
- smtp-app.sealed-secret.yaml: annotate the file header with a note
on the V1-legacy MAILER_SEND_EMAILS key — sealed, kept for a no-op
migration, not consumed by the V2 app.
- transporter.ts: document that the cached transporter is process-
scoped on purpose (configmap/secret changes roll the pod anyway).1 parent 3eaf308 commit 0df6d09
4 files changed
Lines changed: 25 additions & 7 deletions
File tree
- .kontinuous
- env/prod/templates
- packages/app/src
- modules/mail
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
0 commit comments