🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90132

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

#90132
From: Julien ÉLIE
Date: Sun, 19 Feb 2023 22:20
109 lines
6322 bytes
Hi Adam,

> What is the purpose of the second bang? I do try to read
> Path and the purpose would not be obvious to me.

"x!!y" means that x has verified that y is the right path identity for 
the peer from which it receives the article.

I quote the relevant part of RFC 5537:


3.2.1.  Constructing the Path Header Field

[...]
        A relaying or serving agent SHOULD prepend a <path-diagnostic> to
        the Path header field content, where the <path-diagnostic> is
        chosen as follows:

        *  If the expected <path-identity> of the source of the article
           matches the leftmost <path-identity> of the Path header
           field's content, use "!" (<diag-match>), resulting in two
           consecutive "!"s.

        *  If the expected <path-identity> of the source of the article
           does not match, use "!.MISMATCH." followed by the expected
           <path-identity> of the source or its IP address.

        *  If the relaying or serving agent is not willing or able to
           check the <path-identity>, use "!.SEEN." followed by the FQDN,
           IP address, or expected <path-identity> of the source.

        The "expected <path-identity> of the source of the article" is a
        <path-identity> for the injecting or relaying agent that passed
        the article to this relaying or serving agent, determined by
        properties of the connection via which the article was received
        (for example, an authentication identity or a peer IP address).
        Be aware that [RFC1036] did not include <path-diagnostic>.
        Implementations that predate this specification will add only
        single "!" characters between <path-identity> strings.

        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.

[...]

3.2.2.  Path Header Field Example

    Here is an example of a Path header field created by following the
    rules for injecting and relaying agents.

        Path: foo.isp.example!.SEEN.isp.example!foo-news
          !.MISMATCH.2001:DB8:0:0:8:800:200C:417A!bar.isp.example
          !!old.site.example!barbaz!!baz.isp.example
          !.POSTED.dialup123.baz.isp.example!not-for-mail

    This article was injected by baz.isp.example as indicated by the
    <diag-keyword> "POSTED".  The injector has recorded that it received
    the article from dialup123.baz.isp.example. "not-for-mail" is a
    common <tail-entry>.

    The article was relayed to the relaying agent known, at least to
    old.site.example, as "barbaz".  That relaying agent confirmed to its
    satisfaction that "baz.isp.example" was an expected <path-identity>
    for the source of the article and therefore used <diag-match> ("!")
    for its <path-diagnostic>.

    barbaz relayed it to old.site.example, which does not support <diag-
    keyword> and therefore used the old "!" delimiter.  This indicates
    that the identity of "barbaz" was not verified and may have been
    forged.

    old.site.example relayed it to a news server using the <path-
    identity> of bar.isp.example and claiming (by using the "!" <path-
    diagnostic>) to have verified that it came from old.site.example.

    bar.isp.example relayed it to foo-news, which, not being convinced
    that it truly came from bar.isp.example, inserted the <diag-keyword>
    "MISMATCH" and then stated that it received the article from the IPv6
    address [2001:DB8:0:0:8:800:200C:417A].  (This is not to say that
    bar.isp.example was not a correct <path-identity> for that source but
    simply that the identity did not match the expectations of foo-news.)

    foo-news then passed the article to foo.isp.example, which declined
    to validate its <path-identity> and instead appended the <diag-
    keyword> "SEEN" to indicate it knows the source of the article as
    isp.example.  This may be either an expected <path-identity> or the
    FQDN of the system from which it received the article.  Presumably,
    foo.isp.example is a serving agent that then delivered the article to
    a reading agent.

    baz.isp.example, bar.isp.example, and foo-news folded the Path header
    field.



You know everything about Path now :)

-- 
Julien ÉLIE

« The best preparation for tomorrow is to do today's work superbly
   well. » (William Osler)
Technical Details
Message-ID: <tsu7bo$1oh51$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> <tgfttk$2enqk$1@news.trigofacile.com> <878rmaf75b.fsf@hope.eyrie.org> <tstrnj$1oaur$2@news.trigofacile.com> <tsu66p$gnij$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <tsu7bo$1oh51$1@news.trigofacile.com>
Subject: Re: How to permit user to set the right part of message-id
Date: Sun, 19 Feb 2023 23:20:40 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <632790d3$0$22052$426a74cc@news.free.fr> <tgfttk$2enqk$1@news.trigofacile.com> <878rmaf75b.fsf@hope.eyrie.org> <tstrnj$1oaur$2@news.trigofacile.com> <tsu66p$gnij$1@dont-email.me>
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: Sun, 19 Feb 2023 22:20:40 -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="1852577"; 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.7.2
Cancel-Lock: sha1:kj6/f8L1xF93VS6hmyt5+zjJNeU= sha256:X2rf/VcCAdyYzXbVaBGipErxjrgg498Xj3Gqvj5kUmo= sha1:ednDsZkdPpdMcf99XCWX7/cmkgo= sha256:CtHT6plRIEBAkSHdGhK9N4Dp2gilnyhm/uNqHyuJBJ0=
In-Reply-To: <tsu66p$gnij$1@dont-email.me>