Re: [dmarc-ietf] DMARC bis: ticket 49: remove normative requirement on policy tag placement

Alessandro Vesely <vesely@tana.it> Sat, 16 May 2020 09:37 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 CBEF33A09D5 for <dmarc@ietfa.amsl.com>; Sat, 16 May 2020 02:37:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.198
X-Spam-Level:
X-Spam-Status: No, score=-0.198 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UyG_r8G55PZo for <dmarc@ietfa.amsl.com>; Sat, 16 May 2020 02:37:09 -0700 (PDT)
Received: from wmail.tana.it (wmail.tana.it [62.94.243.226]) (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 BE3D33A09D1 for <dmarc@ietf.org>; Sat, 16 May 2020 02:37:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=delta; t=1589621826; bh=cHedZdugpKiX0ODkxThmaVj+cwUhHU7IjE5kFYE785U=; l=2117; h=To:References:From:Date:In-Reply-To; b=A8hnYe97ZzEuhgzVHhlNtSoNSfhzVh3GidEUaN8cT5E9VTiK0A66OS9mqTz45P0H+ ihBCYFRiOpyQjjEEpz8JEkoWRosJt+1ZI6AqWLu+ujNv23NpzRlprazqOW3FQOdrBH 7ZTYm597EVW/omhBvn9nvGeUgApIvciql2LrNaBW1JsZcmGji1GN5V+23zEvK
Authentication-Results: tana.it; auth=pass (details omitted)
Received: from [172.25.197.111] (pcale.tana [172.25.197.111]) (AUTH: CRAM-MD5 uXDGrn@SYT0/k, TLS: TLS1.2, 128bits, ECDHE_RSA_AES_128_GCM_SHA256) by wmail.tana.it with ESMTPSA id 00000000005DC09F.000000005EBFB441.00005053; Sat, 16 May 2020 11:37:05 +0200
To: dmarc@ietf.org
References: <CAOZAAfP9AiYi2Gpyd2gfhbN5tUmTA5oH4_bOGq_HY4JnqYT+fQ@mail.gmail.com>
From: Alessandro Vesely <vesely@tana.it>
Message-ID: <50efb6dc-4b66-4846-f464-3787f399f340@tana.it>
Date: Sat, 16 May 2020 11:37:05 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0
MIME-Version: 1.0
In-Reply-To: <CAOZAAfP9AiYi2Gpyd2gfhbN5tUmTA5oH4_bOGq_HY4JnqYT+fQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/tRjV69kdM6XzkiIb3ceZ2T8OWK8>
Subject: Re: [dmarc-ietf] DMARC bis: ticket 49: remove normative requirement on policy tag placement
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.29
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: Sat, 16 May 2020 09:37:12 -0000

On Fri 15/May/2020 20:26:30 +0200 Seth Blank wrote:
> https://trac.ietf.org/trac/dmarc/ticket/49
> 
> The penultimate paragraph
> of https://tools.ietf.org/html/rfc7489#section-6.3 states:
> 
> the "v" and "p" tags MUST be present and MUST
>    appear in that order.


Actually, the text says:


   A DMARC policy record MUST *comply with the formal specification* found
   in Section 6.4 in that the "v" and "p" tags MUST be present and MUST
   appear in that order.


I agree to relax that rule, but that entails changing the spec in Section 6.4.
 A possible way is be like so:


OLD
     dmarc-record    = dmarc-version dmarc-sep
                       [dmarc-request]
                       [dmarc-sep dmarc-srequest]
                       [dmarc-sep dmarc-auri]
                       [dmarc-sep dmarc-furi]
                       [dmarc-sep dmarc-adkim]
                       [dmarc-sep dmarc-aspf]
                       [dmarc-sep dmarc-ainterval]
                       [dmarc-sep dmarc-fo]
                       [dmarc-sep dmarc-rfmt]
                       [dmarc-sep dmarc-percent]
                       [dmarc-sep]
                       ; components other than dmarc-version and
                       ; dmarc-request may appear in any order


NEW
     dmarc-record    = dmarc-version *(dmarc-sep dmarc-tag)

     dmarc-tag       = dmarc-request /
                       dmarc-srequest /
                       dmarc-auri /
                       dmarc-furi /
                       dmarc-adkim /
                       dmarc-aspf /
                       dmarc-ainterval /
                       dmarc-fo /
                       dmarc-rfmt /
                       dmarc-percent
                       ; components other than dmarc-version may
                       ; appear in any order


The latter syntax allows repeating the same tag more than once.  Should we add
that in such cases it is undefined which value an implementation retains?


> While the v= tag pretty universally appears first, the p= tag does not in many
> records, and no implementation appears to care.
> 
> The v= tag must appear first, or the policy discovery mechanism as defined
> in https://tools.ietf.org/html/rfc7489#section-6.6.3 would break.
> 
> But there doesn't appear to be any real reason to keep the normative
> requirement that the p= tag MUST be second in the record after the v= tag, nor
> does this requirement seem to have any impact on interoperability or general
> record parsing in theory or in practice.
> 
> Should we remove this normative requirement?


Yes.



Best
Ale
--