Thread View: news.software.nntp
54 messages
54 total messages
Page 2 of 2
Started by LaLibreParole
Sun, 18 Sep 2022 21:42
Page 2 of 2 • 54 total messages
Re: How to permit user to set the right part of message-id
Author: Adam H. Kerman
Date: Sun, 19 Feb 2023 22:00
Date: Sun, 19 Feb 2023 22:00
39 lines
2600 bytes
2600 bytes
Julien ELIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Russ, >>One interesting wrinkle here: if servername and pathhost are set to >>different things, it's unclear what should go into Injection-Info. >>It looks like we never said. The ABNF grammar says it's a >>path-identity, which sort of implies it should be pathhost, but the >>grammar of course is identical for both elements. >Having a deeper look at it for INN 2.8.0 (as it is a >backwards-incompatible change), I've found the answer in Section 3.2 of >RFC 5537 > All news server components (injecting agents, relaying agents, and > serving agents) MUST identify themselves, when processing an article, > by prepending their <path-identity> (defined in Section 3.1.5 of > [RFC5536]) to the Path header field. Injecting agents MUST also use > the same identity in Injection-Info header fields that they add, and > serving and relaying agents SHOULD use the same identity in any Xref > header fields they add. >The server name in Injection-Info MUST be the path identity, and the >server name in Xref SHOULD be the path identity. >Hmm, nnrpd currently leaves the update of the Path header field to innd, >so we'll break a MUST if servername (intended to be the identity of >nnrpd) and pathhost (the identity of innd) are not the same. >I therefore suggest that if servername and pathhost are different, we >add both in Path. >nnrpd will generate "servername!.POSTED.xxx!not-for-mail", and innd will >add "pathhost!!" (with an additional verified diag match "!"). I don't have anything useful to add but I'm trying to follow along as best as I can. What is the purpose of the second bang? I do try to read Path and the purpose would not be obvious to me. >. . .
Re: How to permit user to set the right part of message-id
Author: Julien ÉLIE
Date: Sun, 19 Feb 2023 22:20
Date: Sun, 19 Feb 2023 22:20
109 lines
6322 bytes
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)
Re: How to permit user to set the right part of message-id
Author: Adam H. Kerman
Date: Sun, 19 Feb 2023 23:51
Date: Sun, 19 Feb 2023 23:51
7 lines
920 bytes
920 bytes
Julien ELIE <iulius@nom-de-mon-site.com.invalid> wrote: >. . . >You know everything about Path now :) Thank you very much.
Page 2 of 2 • 54 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads