Re: [dmarc-ietf] Fwd: [Technical Errata Reported] RFC7489 (7865)

Alessandro Vesely <vesely@tana.it> Mon, 25 March 2024 17:42 UTC

Return-Path: <vesely@tana.it>
X-Original-To: dmarc@ietfa.amsl.com
Delivered-To: dmarc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 38C1BC14CE33 for <dmarc@ietfa.amsl.com>; Mon, 25 Mar 2024 10:42:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1152-bit key) header.d=tana.it
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y98lA77Uy-IU for <dmarc@ietfa.amsl.com>; Mon, 25 Mar 2024 10:42:40 -0700 (PDT)
Received: from wmail.tana.it (wmail.tana.it [94.198.96.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 78821C15198B for <dmarc@ietf.org>; Mon, 25 Mar 2024 10:42:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=delta; t=1711388552; bh=QPOgZDjBHjwiKJW8YUpEL7rgJ9gkvu2bTgmX2hYMPzM=; h=Date:Subject:To:References:From:In-Reply-To; b=AZS55ElpqkFMWg0UJ1R4izt2uF9mbjYiZg09nUfo7XwV0U2pCyVZGnLktPSwO2ZiK AAhGpG46qegXsMWBEM+b0ZoBSVZC7KXCXpbwOy9kTELvvEvPOVOQQ7FgRpww1rswZs 943uWaFmj9Q3uFd+68M0e2UwghBWZ0Ox5ewqN1rGBSpANc5syAznbmKURukVU
Original-Subject: Re: [dmarc-ietf] Fwd: [Technical Errata Reported] RFC7489 (7865)
Author: Alessandro Vesely <vesely@tana.it>
Received: from [172.25.197.120] (pcale.tana [::ffff:172.25.197.120]) (AUTH: CRAM-MD5 uXDGrn@SYT0/k, TLS: TLS1.3, 128bits, ECDHE_RSA_AES_128_GCM_SHA256) by wmail.tana.it with ESMTPSA id 00000000005DC0F0.000000006601B787.000014BE; Mon, 25 Mar 2024 18:42:31 +0100
Message-ID: <3bfe0df7-d5c8-43e9-9e84-ba74cd1bb470@tana.it>
Date: Mon, 25 Mar 2024 18:42:31 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: dmarc@ietf.org, John Levine <johnl@taugh.com>
References: <20240323185339.DA2DD85FCC3A@ary.qy> <97bdc6e7-0170-4101-8b57-2e8e7d8d72c6@tana.it>
Authentication-Results: tana.it; auth=pass (details omitted)
From: Alessandro Vesely <vesely@tana.it>
Content-Language: en-US, it-IT
In-Reply-To: <97bdc6e7-0170-4101-8b57-2e8e7d8d72c6@tana.it>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/Hf2S9pRjwApL8MZae-9QKqVfTLM>
Subject: Re: [dmarc-ietf] Fwd: [Technical Errata Reported] RFC7489 (7865)
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Domain-based Message Authentication, Reporting, and Compliance \(DMARC\)" <dmarc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dmarc>, <mailto:dmarc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dmarc/>
List-Post: <mailto:dmarc@ietf.org>
List-Help: <mailto:dmarc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dmarc>, <mailto:dmarc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Mar 2024 17:42:46 -0000

On Sun 24/Mar/2024 13:33:22 +0100 Alessandro Vesely wrote:
> On Sat 23/Mar/2024 19:53:39 +0100 John Levine wrote:
>> It appears that Murray S. Kucherawy  <superuser@gmail.com> said:
>>> -=-=-=-=-=-
>>>
>>> This seems like it's probably legitimate.  Does it need to be fixed in the
>>> -bis document?
>>
>> It's already fixed in the current markdown.
>>
>> FYI, the XML pattern is silly.  It forbids harmless stuff like leading zeros 
>> in 01.02.03.04
>> and doesn't allow some exotic but valid IPv6 forms like ::ffff:12.34.56.78.
> 
> 
> How about:
> "(::ffff:)?(([01]?\d?\d|2[0-4]\d|25[0-5])\.){3}([01]?\d?\d|2[0-4]\d|25[0-5])"/>


Testing yielded a correct fix:

   "(::[Ff]{4}:)?(([01]?\d?\d|2[0-4]\d|25[0-5])\.){3}([01]?\d?\d|2[0-4]\d|25[0-5])"/>


I'd agree it might have been better to allow an overly lax pattern, such as "[0-9a-fA-F.:]+".  When we (Tim and I) got to revise the grammar from Freddie's work on docs.google.com, in March 2020, we tried and followed the style of RFC 7489.  That led to the current grammar under the comment <!-- The Internet Protocol Address from which messages were received -->.  Obviously we hadn't tested all cases.  Now you (John) found a case.  Why shouldn't we fix it?  Why would it be too late, since we're in WGLC?  Why would it be the wrong place?

Note: the change doesn't make the grammar stricter than it is.  It makes it slightly more relaxed.

Please take my pull request.


Best
Ale
--