Development hosts, review V-1 to V-3: a malformed list stops the start, a trailing dot and Unicode patterns match, every send reads the store

- V-1: assertDevelopmentHosts - iapl({ developmentHosts }), mail.relay.developmentHosts and
  mailAdapter({ relay }) refuse anything but an array of non-empty host patterns, and a pattern of `*` alone
  (it would make the public site a development address). Nothing is ignored silently any more.
- V-2: one trailing dot of the host is stripped before matching; patterns are punycoded, so one written in
  Unicode matches; a `*` inside a non-ASCII label is refused.
- V-3: the 30-second memory of other hosts is gone. A dump restored into a running development site stops
  its very next e-mail.
- docs, AGENT.md, changelog draft, skills

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 10:57:32 +01:00
co-authored by Claude Fable 5.2
parent 99c73ed0ff
commit 6c4e244094
18 changed files with 135 additions and 46 deletions
+3 -1
View File
@@ -140,7 +140,9 @@ export type IaplOptions = {
* matches is "non-public" with no environment variable: when its database holds the mail-service
* connection of another host (a copy of production's data), it does not mail real people by itself
* (docs/email.md "Staging, copies and several hosts"). Replace the list with your own patterns, or
* pass `[]` so that no host is a development address. Mail only: the option does not make a
* pass `[]` so that no host is a development address. Anything but an array of non-empty host
* patterns, and a pattern of `*` alone, stops the start (`assertDevelopmentHosts`); a pattern may
* be written in Unicode (it is punycoded), a trailing dot and the port are ignored. Mail only: the option does not make a
* development host noindex (that is the hosting's business, or `IAPL_NOINDEX=1`). `mail.relay.developmentHosts` overrides it
* for the mail service alone.
*/