πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90148

Path insertions and preloads (was: Re: Results of a test of mixmin posts, comparing the past few years with today's results)

#90148
From: Russ Allbery
Date: Sun, 12 Mar 2023 01:21
98 lines
5639 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Hi Russ,

> I hope such insertions and preloads are done before adding the path
> identity of the news server which actually handles the message.  That is
> to say, if my.news.server.net inserts preload.net in the Path header
> field, and has verified the last entry of the received path is the
> expected one, it would be this way:

> Path: my.news.server.net!preload.net!!previous.path

Well, strictly speaking these sorts of Path preloads and insertions are
against the protocol unless one is adding only other Path identities that
one controls, so the protocol itself does not consider them or provide any
guidance, other than saying that doing this at all violates a MUST.  It's
just an old, slightly disreputable technique that happens to sort of
sometimes work.

(As it turns out, in this case apparently the person who made the original
report was inserting all of these spurious Path entries himself?  Without
knowing it?  I dunno, I got confused and didn't follow and decided I
didn't care enough.)

In the case of the server farm with multiple identities, this is covered
in RFC 5537 section 3.2.1 step 4:

   4.  The agent MAY then prepend to the Path header field content "!"
       or "!!" followed by an additional <path-identity> for itself
       other than its primary one.  Using "!!", and thereby adding a
       <diag-match> since the <path-identity> clearly is verified, is
       RECOMMENDED.  This step may be repeated any number of times.
       This is permitted for agents that have multiple <path-identity>s
       (such as during a transition from one to another).  Each of these
       <path-identity>s MUST meet the requirements set out in
       Section 3.2.

> By the way, is it wise to add a verified diag match here?
> (my.news.server.net!!preload.net) I am unsure, as the article did not
> pass through preload.net, and such a syntax would imply that
> my.server.net verified it came from preload.net.

In the case of some Path identity that isn't one's own, the server would
already be violating the rules of the protocol so it would amount to a
judgment call about what would cause the least harm.  I'd probably just
use "!" for everything because at the point that I'm lying about the Path
of the article, I can't really claim any of this stuff has been checked.

> The rationale for preload.net added first is that it would otherwise
> mean that the next peer would know that the path identity of
> my.news.server.net could be preload.net, so that it does not do
> something like:

> Path:
> next.server.com!.MISMATCH.my.news.server.net!preload.net!my.news.server.net!previous.path

One could argue that MISMATCH is correct in this case since it at least
documents that my.news.server.net is breaking the protocol.

> Coming back to how INN deals with additional path identities, we have 2
> parameters (pathcluster and pathalias) which preload like:

> Path: pathcluster!my.news.server!pathalias!previous.path

> Would path diagnostic only be activated between pathcluster and
> my.news.server, and never around pathalias?

> Path: pathcluster!!my.news.server!pathalias!previous.path

In the case of INN's pathcluster and pathalias settings, these are
intended to be used for additional Path identities that are yours, such as
the migration case mentioned in the RFC.  The delimiter between
my.news.server and pathalias therefore SHOULD use "!!".  (And pathcluster
should be the identity that you tell your peers to expect, so that they
will also use "!!".)

> It would imply that when pathalias is set, no verification of the path
> identity of the feeding peer is done.

The delimiter between pathalias and previous.path shouldn't be affected by
this setting.  It should be "!!" if previous.path is verified and
something else if it is not, regardless of whether pathalias or
my.news.server is the next entry.

> pathalias could indeed have 2 different uses: an internal name (and in
> that case, path diag would be OK) or the name of another server (and in
> that case, I am not sure path diag is OK to be added here)

I don't think we should document the latter (or even say explicitly that
this should only be some other alias that you control).  People who want
to break the rules should know what they're doing; it's not really the
sort of thing that one should document, IMO.

-- 
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: <87h6uqlq74.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: <tt5gee$2le7n$1@paganini.bofh.team> <87k009nk3y.fsf@hope.eyrie.org> <ttcffc$2657h$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87h6uqlq74.fsf_-_@hope.eyrie.org>
Subject: Path insertions and preloads (was: Re: Results of a test of mixmin posts, comparing the past few years with today's results)
Date: Sat, 11 Mar 2023 17:21:35 -0800
From: Russ Allbery <eagle@eyrie.org>
References: <tt5gee$2le7n$1@paganini.bofh.team> <87k009nk3y.fsf@hope.eyrie.org> <ttcffc$2657h$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="15091"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:VuBq27V0bwBlt4u7e7CJkngi7H0=