Re: [ietf-dkim] [Editorial Errata Reported] RFC6376 (5260)

Pete Resnick <presnick@qti.qualcomm.com> Thu, 08 February 2018 19:31 UTC

Return-Path: <ietf-dkim-bounces@mipassoc.org>
X-Original-To: ietfarch-ietf-dkim-archive@ietfa.amsl.com
Delivered-To: ietfarch-ietf-dkim-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7B2D412706D for <ietfarch-ietf-dkim-archive@ietfa.amsl.com>; Thu, 8 Feb 2018 11:31:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.789
X-Spam-Level:
X-Spam-Status: No, score=-1.789 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=qti.qualcomm.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 44nFpE70Ip7N for <ietfarch-ietf-dkim-archive@ietfa.amsl.com>; Thu, 8 Feb 2018 11:31:01 -0800 (PST)
Received: from simon.songbird.com (simon.songbird.com [72.52.113.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A97F3126CF6 for <ietf-dkim-archive@ietf.org>; Thu, 8 Feb 2018 11:31:00 -0800 (PST)
Received: from simon.songbird.com (simon.songbird.com [127.0.0.1]) by simon.songbird.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id w18JU29F013772; Thu, 8 Feb 2018 11:30:02 -0800
Authentication-Results: simon.songbird.com; dkim=fail reason="verification failed; unprotected key" header.d=qti.qualcomm.com header.i=@qti.qualcomm.com header.b=X7FYGhRU; dkim-adsp=none (unprotected policy); dkim-atps=neutral
Received: from sabertooth01.qualcomm.com (sabertooth01.qualcomm.com [65.197.215.72]) by simon.songbird.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id w18JTx8T013763 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for <ietf-dkim@mipassoc.org>; Thu, 8 Feb 2018 11:30:00 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1518118143; x=1549654143; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=uogpZ+dqcQGJuZFAuxWe5Ps3dXcpnQKiYU05IXKXyFU=; b=X7FYGhRUj3xmwj3VBQqlajt+KlX/Gq7wfXho3KkCUHBAyr4mVrO78dN2 QFhvnYyB5SmUBWIxfpbLowbLvLDyXDnk0uUGtTXi/dSBKVe41g8NFqvO5 DlZklUfP2Zp0SZevYQEAYYsedt5BQGyiP+Px85q9BlJZJAMQ/YPLpj8iz k=;
X-IronPort-AV: E=Sophos;i="5.46,480,1511856000"; d="scan'208";a="123739708"
Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by sabertooth01.qualcomm.com with ESMTP; 08 Feb 2018 11:27:08 -0800
X-IronPort-AV: E=McAfee;i="5900,7806,8799"; a="95347873"
X-MGA-submission: MDGz8S1JgbiWdpMqhAxuo8fN92K7v/PAg71VNoRG1JHzlbwj41bdbm0+rVmt42Va9SyR1ZmF1Ku/qJMAtL/s01ZEznfTqMBZS4xA/QjngSkIsk+qJEsz+37ntkiTXtt9Rx1RMY/anmzj5XONQ6OzOwRb
Received: from nasanexm01f.na.qualcomm.com ([10.85.0.32]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 08 Feb 2018 11:27:07 -0800
Received: from [10.110.21.114] (10.80.80.8) by NASANEXM01F.na.qualcomm.com (10.85.0.32) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Thu, 8 Feb 2018 11:25:07 -0800
From: Pete Resnick <presnick@qti.qualcomm.com>
To: Dave Crocker <dcrocker@bbiw.net>
Date: Thu, 08 Feb 2018 11:25:06 -0800
X-Mailer: MailMate (1.10r5443)
Message-ID: <DB348D74-73D3-4B08-AF99-BAB6EC133DF2@qti.qualcomm.com>
In-Reply-To: <8fd9da93-5b61-14b4-aceb-e669765de636@bbiw.net>
References: <20180208170511.8FD3AB81BBF@rfc-editor.org> <9ccd7f72-df63-7569-2002-cce3aace7c08@bbiw.net> <D70D08E2-804E-44A7-9936-08BA501241D1@qti.qualcomm.com> <8fd9da93-5b61-14b4-aceb-e669765de636@bbiw.net>
MIME-Version: 1.0
X-Originating-IP: [10.80.80.8]
X-ClientProxiedBy: NASANEXM01B.na.qualcomm.com (10.85.0.82) To NASANEXM01F.na.qualcomm.com (10.85.0.32)
Cc: ekr@rtfm.com, ietf-dkim@mipassoc.org, tony+dkimov@maillennium.att.com, vesely@tana.it, Kathleen.Moriarty.ietf@gmail.com, msk@cloudmark.com, barryleiba@computer.org, RFC Errata System <rfc-editor@rfc-editor.org>
Subject: Re: [ietf-dkim] [Editorial Errata Reported] RFC6376 (5260)
X-BeenThere: ietf-dkim@mipassoc.org
X-Mailman-Version: 2.1.16
Precedence: list
List-Id: IETF DKIM Discussion List <ietf-dkim.mipassoc.org>
List-Unsubscribe: <http://mipassoc.org/mailman/options/ietf-dkim>, <mailto:ietf-dkim-request@mipassoc.org?subject=unsubscribe>
List-Archive: <http://mipassoc.org/pipermail/ietf-dkim/>
List-Post: <mailto:ietf-dkim@mipassoc.org>
List-Help: <mailto:ietf-dkim-request@mipassoc.org?subject=help>
List-Subscribe: <http://mipassoc.org/mailman/listinfo/ietf-dkim>, <mailto:ietf-dkim-request@mipassoc.org?subject=subscribe>
Content-Transfer-Encoding: base64
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: ietf-dkim-bounces@mipassoc.org
Sender: ietf-dkim <ietf-dkim-bounces@mipassoc.org>

On 8 Feb 2018, at 10:23, Dave Crocker wrote:

> On 2/8/2018 10:05 AM, Pete Resnick wrote:
>
>> So, no error in 5322. As for the erratum below, not having ABNF for 
>> the header field does seem like a miss, though I'm not sure it should 
>> be marked as more than "Hold for document update".
>
> Consider:
>
> 1. RFC 5322 specifies ABNF for field names that is in terms of 
> 'allowed' characters, but has no text constraining the method of 
> defining the specific characters for specific header-field names.
>
> 2. Section 1.2.2 notes that "..." is case insensitive, but that the 
> %... is inflexible (ie, sensitive.)
>
> 3. Nothing in the definition of optional-field requires using the 
> "..." construct to define the header field name.  It merely defines 
> what range of characteris allowed in a field-name.
>
>    fields          =   *(trace
>                   ...
>                        optional-field)
>
>    optional-field  =   field-name ":" unstructured CRLF
>
>    field-name      =   1*ftext
>
>    ftext           =   %d33-57 /          ; Printable US-ASCII
>                        %d59-126           ;  characters not including
>                                           ;  ":".

Ah! I completely misunderstood: When you said, "RFC 5322 ... does not 
enforce case insensitity in the syntax", you were referring to 
optional-field. 5322 of course does enforce case-insensitivity in all of 
the other field names. My apologies.

That said, let's remember that, for better or worse (and in my 
aforementioned advancing age, I lean more toward worse every year), 5322 
does not have a multi-stage parser in the way that 733 or 822 did. So 
when you say:

> 4. If a spec defines a field-name using the %... construct, it has 
> effectively required case sensitivity in processing the field-name.

Well, sort of. I believe the expectation was that when syntactically 
processing a message, a field name would only match the field-name in 
optional-field if it failed to match any other defined field that the 
implementation understood, and therefore the semantic processing of the 
field would follow the instruction in 3.6.8:

    For the purposes of this specification, any optional field is
    uninterpreted.

The optional-field construct wasn't intended to define the syntactic 
processing of fields defined in other documents. I think it was assumed 
that other documents would syntactically extend 5322's syntax with new 
field names and implementations would update their parsers to include 
the new field names and therefore never process any recognized field 
name in a case-sensitive manner. That is, I believe the intent was to 
process any *recognized* field name in a case-insensitive manner.

> 5. That was most certainly /not/ what was 'intended' for field-name 
> parsing, going at least back to RFC 733.

Given the difference in how messages are parsed between 733 and 5322, I 
think their respective intents are still being honored. However, I now 
do see your point.

> Violation of 'intent' is the criterion for an RFC erratum.

Of that there's no doubt.

pr
-- 
Pete Resnick <http://www.qualcomm.com/~presnick/>
Qualcomm Technologies, Inc. - +1 (858)651-4478
_______________________________________________
NOTE WELL: This list operates according to
http://mipassoc.org/dkim/ietf-list-rules.html