🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89640

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

#89640
From: Julien ÉLIE
Date: Wed, 21 Sep 2022 20:58
60 lines
4195 bytes
Hi Russ,

> INN's mesage ID generation algorithm is not great and we
> could indeed get duplicates if multiple hosts are using the same
> right-hand side.

Do you think we should improve the generation of Message-IDs?
They're currently based on the date, PID and a counter incrementing at 
each call.  A quick improvement could be to also add for instance 6 
bytes from RAND_bytes() if OpenSSL support is available (which is most 
often the case I believe).


>> Besides, it could be worthwhile adding a check that the domain parameter
>> (inn.conf or readers.conf) contains valid characters for a Message-ID...
>> and fall back to FQDN otherwise (hoping that FQDN also returns a string
>> suitable for a Message-ID!).
> 
> I think if domain has invalid characters we should probably just abort
> with a fatal error, assuming it's worth checking for this.  That seems
> like a basic configuration error we should just make people fix.

Yes, people should fix such a misconfiguration.


> I think the tactical fix to honor domain in readers.conf regardless of
> what domain in inn.conf is set to is the right fix for stable.

I also agree; I'll do that.


> What I'm coming around to for the next major release is that the parameter
> in readers.conf should just be called something different, since it is
> something different, and we should remove the domain setting in
> readers.conf (since it doesn't make sense to change the DNS resolution
> stuff in readers.conf since that will be a global problem, not just an
> nnrpd problem) and have innupgrade change it to some other name. >
> The ABNF construct that's used in the standards for Xref is server-name.
> That's not a bad name for this setting; maybe the new readers.conf setting
> should be servername?

Yes, servername looks like an appropriate name.  It will be a useful 
improvement for the next major release.
I propose to also have a servername parameter in inn.conf as inews 
generates Message-IDs (and currently uses the value of the domain 
parameter in inn.conf).
And the value of servername can be overriden in readers.conf.


> Which normally you would want to set to the same
> thing as pathhost in inn.conf, but they're distinct settings since there
> are cases where you may want them to be different.

The default value of servername in inn.conf (optional parameter) would 
then be pathhost (mandatory to set in inn.conf).

-- 
Julien ÉLIE

« C'est une forêt vierge où la main de l'homme n'a jamais mis le pied. »
Technical Details
Message-ID: <tgfttk$2enqk$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
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>

Show Full Headers
Complete Article Headers
Message-ID: <tgfttk$2enqk$1@news.trigofacile.com>
Subject: Re: How to permit user to set the right part of message-id
Date: Wed, 21 Sep 2022 22:58:28 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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>
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: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 21 Sep 2022 20:58:28 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="2580308"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.2
Cancel-Lock: sha1:HsEqWM2GLduDhg1RKWLZHinYjvU= sha256:AoXHQsXoniCP7DBoZshr/RIC9+dk1WrUvE5CdO8h+4Y= sha1:NXnF02AG5PI0A2CzDECwDG7QjjI= sha256:3l8quX666/DPEIOPNEgWcYtJd2exZgn4T7ne3SxxlBQ=
In-Reply-To: <87sfkmxcsj.fsf@hope.eyrie.org>
Lines: 60