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

Alessandro Vesely <vesely@tana.it> Wed, 27 March 2024 09:01 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 D6C45C14F6FC for <dmarc@ietfa.amsl.com>; Wed, 27 Mar 2024 02:01:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.107
X-Spam-Level:
X-Spam-Status: No, score=-7.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_DNSWL_HI=-5, 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 HEp1cllXDTLF for <dmarc@ietfa.amsl.com>; Wed, 27 Mar 2024 02:00:59 -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 06CF5C14F6AF for <dmarc@ietf.org>; Wed, 27 Mar 2024 02:00:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=delta; t=1711530049; bh=LMIwzH7Go07y0TiqeYkFBgm5v97DAdkAUixKKfSJ7yk=; h=Date:Subject:To:References:From:In-Reply-To; b=Dh16+xBnZW5VrM9lgV9h0x1gVe4ca08ciCqddHR+xuPbASzh9VP5KEyW38Ur62yH1 KhL72sPZosy+NEFCOKfCxeDJKWanYzNIarJhyR//cXGKvkIm8dG8vOKbz55EDrBpB0 DQA4myTsl4WF9y4TTgphdQNp82cviZHzkoTE+MZQokusUHHCpyTghDVrBSw5U
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 00000000005DC133.000000006603E041.00001FE4; Wed, 27 Mar 2024 10:00:49 +0100
Content-Type: multipart/mixed; boundary="------------pKCEZflzsmr0U3qdJ6SXIoEt"
Message-ID: <32b7bb3c-e610-4454-b321-aac8feef41ac@tana.it>
Date: Wed, 27 Mar 2024 10:00:49 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: dmarc@ietf.org
References: <20240323185339.DA2DD85FCC3A@ary.qy> <97bdc6e7-0170-4101-8b57-2e8e7d8d72c6@tana.it> <3bfe0df7-d5c8-43e9-9e84-ba74cd1bb470@tana.it> <ada8e730-087f-3aa4-3ee3-95e93e6a3255@taugh.com> <2b914f3d-7219-4bea-b072-490cfd7ea672@tana.it> <958c3876-dc44-ae4e-c7f3-cd38ab1dae04@taugh.com> <8b3fea65-cab2-4c6e-9121-487bf4b607a6@tana.it> <41f71ecd-e7ae-4273-aaff-ec5d6f14f641@wander.science>
Authentication-Results: tana.it; auth=pass (details omitted)
From: Alessandro Vesely <vesely@tana.it>
Content-Language: en-US, it-IT
In-Reply-To: <41f71ecd-e7ae-4273-aaff-ec5d6f14f641@wander.science>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/Bm0bTYngchB3G8_fzrtQyMxfCm8>
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: Wed, 27 Mar 2024 09:01:04 -0000

On Tue 26/Mar/2024 21:57:46 +0100 Matthäus Wander wrote:
> Alessandro Vesely wrote on 2024-03-26 19:30:
>> No.  To take several years and come up with a syntax which does not cover all 
>> valid addresses is a sign of incompetence that this WG doesn't deserve, IMHO. 
>> What do others think?
>>
>> Let's rather switch to /[0-9a-fA-F.:]+/.  Terse and correct.
> 
> I'm in favor of a brief and coarse regex, which is suitable for detecting 
> obvious junk. The above proposal looks good enough to me. I wouldn't mind 
> adding an outer bounds check, e.g.: [0-9a-fA-F.:]{3,45}


I changed that to /[0-9a-fA-F.:]{2,45}/, to allow "::", and inserted it in dmarc-xml-0.2-short.xsd[*].  At the same time, I added a pattern for "::1.2.3.4" in dmarc-xml-0.2.xsd[†].  I tested both against the list of IP that I attach.  (xmllint allows breaking a pattern by backslash+newline, svalidate and xmlstarlet don't.  However, publishing on IETF XML Registry shouldn't have line length limitations.)


> If an implementer sees merit in a comprehensive syntax check, they can add one 
> to their software.


I'm not clear what will that schema be used for, if at all.  Personally, the only reason why I'd prefer the long regex is because it might have some value by itself.  The short one is cleaner and more grokkable.  The wrong one has none of those qualities.


Best
Ale

-- 
[*] https://github.com/alevesely/draft-ietf-dmarc-aggregate-reporting/blob/main/dmarc-xml-0.2-short.xsd
[†] https://github.com/alevesely/draft-ietf-dmarc-aggregate-reporting/blob/main/dmarc-xml-0.2.xsd