]> Sergey Matveev's repositories - public-inbox.git/commit
index: support --max-size / publicinbox.indexMaxSize
authorEric Wong <e@yhbt.net>
Mon, 20 Apr 2020 22:55:37 +0000 (22:55 +0000)
committerEric Wong <e@yhbt.net>
Tue, 21 Apr 2020 20:13:47 +0000 (20:13 +0000)
commitfb8e7dbd1b711d25d1033c3f5f540ce47f6c0849
tree9560834162cdb04fbc95d5bc0bac3669cd9eaea5
parente700c37c0186915253d639462cfa403fd9fc964f
index: support --max-size / publicinbox.indexMaxSize

In normal mail paths, we can rely on MTAs being configured with
reasonable limits in the -watch and -mda mail injection paths.

However, the MTA is bypassed in a git-only delivery path, a BOFH
could inject a large message and DoS users attempting to mirror
a public-inbox.

This doesn't protect unindexed WWW interfaces from Email::MIME
memory explosions on v1 inboxes.  Probably nobody cares about
unindexed WWW interfaces anymore, especially now that Xapian is
optional for indexing.
Documentation/public-inbox-config.pod
Documentation/public-inbox-index.pod
lib/PublicInbox/Admin.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/V2Writable.pm
script/public-inbox-index
t/admin.t
t/cgi.t
t/v2mirror.t