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:
co-authored by
Claude Fable 5.2
parent
99c73ed0ff
commit
6c4e244094
+1
-1
@@ -519,7 +519,7 @@ export type { SitemapRouteOptions, SitemapStyleOptions } from './modules/seo/ind
|
||||
export { applyCollectionOverride } from './modules/shared/collectionOverride.js'
|
||||
export type { CollectionOverride } from './modules/shared/collectionOverride.js'
|
||||
// Development addresses by pattern (no env): the built-in list and the matcher behind `developmentHosts`.
|
||||
export { DEFAULT_DEVELOPMENT_HOSTS, isDevelopmentHost, matchDevelopmentHost } from './modules/shared/developmentHosts.js'
|
||||
export { assertDevelopmentHosts, DEFAULT_DEVELOPMENT_HOSTS, isDevelopmentHost, matchDevelopmentHost } from './modules/shared/developmentHosts.js'
|
||||
export { clientIp, setRateLimitStore, setUnknownIpFactor, UNKNOWN_IP_FACTOR } from './modules/shared/rateLimit.js'
|
||||
export type { ClientIpOptions, RateLimitStore } from './modules/shared/rateLimit.js'
|
||||
export { buildSlugField, toSlug } from './modules/slug/index.js'
|
||||
|
||||
Reference in New Issue
Block a user