πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89652

Re: How to permit user to set the right part of message-id

#89652
From: Russ Allbery
Date: Sat, 24 Sep 2022 17:59
56 lines
3902 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Hi Russ,

>> In theory, tossing the counter and the PID and replacing both with
>> eight random bytes is better, since it doesn't rely as heavily on the
>> uniqueness of the right-hand side.  In practice, it feels weird because
>> we're giving up designed uniqueness for probability!  But it's probably
>> still the right thing to do.

> Besides, on two different servers, OpenSSL will compute different seeds
> at startup (or better say the chance that the seeds are identical is
> negligible).

Yeah, hopefully it's using /dev/urandom or getrandom(2) on most hosts.

> Radix32() only generates lower-case chars in the left-hand side.  I
> don't understand the remark that it "doesn't assume that message IDs are
> case-sensitive": is it because it could also have used upper-case
> letters and therefore generating even smaller message IDs?

Right, there's no reason to use a 32-character alphabet instead of a
64-character alphabet unless you're worried about case-insensitivity.
(You have to be a little careful of the extra characters needed by base64
since the default ones aren't always valid, but there's usually some
alternate selection that will work.)

> Indeed, though RFC 5536 only worries about case-insensitive matching on
> the right-hand side:

>    Some software will try to match the <id-right> of a <msg-id> in a
>    case-insensitive fashion; some will match it in a case-sensitive
>    fashion.  Implementations MUST NOT generate a Message-ID where the
>    only difference from another Message-ID is the case of characters in
>    the <id-right> part.

Oh!  I misread that and thought it said the left-hand side.  Yeah, that's
fine then; it should be possible to assume case-sensitive message IDs, in
which case if we switched to a 64-character alphabet for the encoding we
could put substantial randomness, keep the existing elements of the
message ID, and probably still make it shorter (or at least the same
length).

> Yes, that's an wise view, and we can consider servername for the identity
> of nnrpd and pathhost for the identity of innd.
> Maybe your point is that the name of the parameter should be serverhost
> instead of the previously proposed servername?

Whoops, no, that was just a mental error.  I think servername is better;
host is a bit confusing here.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87zgeoirgc.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <632790d3$0$22052$426a74cc@news.free.fr> <argle-bargle@argle.bargle.xyz> <63279bd2$0$22055$426a74cc@news.free.fr> <87h7148aq4.fsf@hope.eyrie.org> <6328a840$0$2976$426a74cc@news.free.fr> <tgaje6$6pa5$1@news.trigofacile.com> <6328dcc9$0$5132$426a74cc@news.free.fr> <tganq1$6pa5$2@news.trigofacile.com> <87y1ufxary.fsf@hope.eyrie.org> <tgc30j$7s0o$4@news.trigofacile.com> <87sfkmxcsj.fsf@hope.eyrie.org> <tgfttk$2enqk$1@news.trigofacile.com> <878rmaf75b.fsf@hope.eyrie.org> <tgnfr6$3llg$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87zgeoirgc.fsf@hope.eyrie.org>
Subject: Re: How to permit user to set the right part of message-id
Date: Sat, 24 Sep 2022 10:59:31 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <632790d3$0$22052$426a74cc@news.free.fr> <argle-bargle@argle.bargle.xyz> <63279bd2$0$22055$426a74cc@news.free.fr> <87h7148aq4.fsf@hope.eyrie.org> <6328a840$0$2976$426a74cc@news.free.fr> <tgaje6$6pa5$1@news.trigofacile.com> <6328dcc9$0$5132$426a74cc@news.free.fr> <tganq1$6pa5$2@news.trigofacile.com> <87y1ufxary.fsf@hope.eyrie.org> <tgc30j$7s0o$4@news.trigofacile.com> <87sfkmxcsj.fsf@hope.eyrie.org> <tgfttk$2enqk$1@news.trigofacile.com> <878rmaf75b.fsf@hope.eyrie.org> <tgnfr6$3llg$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: hope.eyrie.org; logging-data="13258"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:5wbHLMosCaVU8OIKkNlOpCHFaEA=