Re: [Ietf-dkim] Tolerating Mailing-List Modifications I-D

Wei Chuang <weihaw@google.com> Thu, 13 July 2023 14:29 UTC

Return-Path: <weihaw@google.com>
X-Original-To: ietf-dkim@ietfa.amsl.com
Delivered-To: ietf-dkim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3402DC151097 for <ietf-dkim@ietfa.amsl.com>; Thu, 13 Jul 2023 07:29:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.597
X-Spam-Level:
X-Spam-Status: No, score=-17.597 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 5wltYevacOH2 for <ietf-dkim@ietfa.amsl.com>; Thu, 13 Jul 2023 07:29:21 -0700 (PDT)
Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F0EECC14CEFF for <ietf-dkim@ietf.org>; Thu, 13 Jul 2023 07:29:21 -0700 (PDT)
Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-3458e2c3218so55ab.0 for <ietf-dkim@ietf.org>; Thu, 13 Jul 2023 07:29:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689258561; x=1689863361; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tXyYRkx6a8fRPyCJX/f/Ja4StYQN1g99br76gs0fpsU=; b=O6U6ya/r8zjCsMkxwPT0aCl3b2N3qaeeHLwW8bcDvhP0g0P0e88DsvbbSwiLlf6ZoV s88uKhJN3TfFfuUsMtIItRQrlRd4E7q2Y9ZCwjJ2CjfaU7eHbYPAm8OSExlrg/VVoL1n q3Q9sPJi2jFVwNBWJ0cfBX+U8SzV2nHV/fUr1EmTGpdLD/nb2YiTG0S/+XJf9cx375Ei db8y0paqx1lEo26Tkv8dvwbpGApJp+Paiedx+1CxZkiMigARjzNKdVXRl8OyiT0kvHHx SlMeIAuf4hBeluFzmp+EHTEy2IhaH+NFZGTl8j4VpmuDTeS+ytObkwQXVnoUPfXn1S09 6xOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689258561; x=1689863361; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tXyYRkx6a8fRPyCJX/f/Ja4StYQN1g99br76gs0fpsU=; b=duBnnZ/YUG14xcBJGhxiMBjdSrA5UzzYyk62gDNshgsp13P7jVTA1Gjxgo7GqZ0poX mfMb8ji7zc8QPkkL64oQRjNyeWRIGnpf1oMkqEwOnPKkaUsWORnriIhFFXobXG1z07Id CGxr8w0Of+yHSgMmjPePfIs9pm5DGl3YGsFcWYRIF0ZLqeD53cp/aRmFkpt/DqT58y7N Esssbsmp9Ro8p8FudzgEXU5DMpuEzUXTt6wB7uVqFR9hdmpRdS2MDhT4IFuZ/TR5nLm0 b02Wk4HLiWF/lRKD6wxgZgnv6v3eJbFGC6wl11JWu4ahB68AXyzu4p6BBIwSO06B6H1f 51mA==
X-Gm-Message-State: ABy/qLYOwXA7S0EwZnsEfBjbAJMU8IqUVSE1+TDMBRV0gU52Ph2l2N8P 01tAcZ0K6Hj+voPbqq4Uuutn86szYmtuThP3YTsIJhm3NWKkXfJDR/dbDw==
X-Google-Smtp-Source: APBJJlEDgdqLQy1zeZqwSAFSDMmxa4mWJmK+1Qt+ZIvIGB1Kl0I3fjp6rdN1epM4CM+0Ni0lUwz6+nzAznOAEbUXLig=
X-Received: by 2002:a05:6e02:12e9:b0:338:14a2:18a8 with SMTP id l9-20020a056e0212e900b0033814a218a8mr295430iln.2.1689258560627; Thu, 13 Jul 2023 07:29:20 -0700 (PDT)
MIME-Version: 1.0
References: <CAAFsWK20SojKgKjQB2MEuPh42ac5ta5bOhnHL8xPsidAigSOhQ@mail.gmail.com> <f666878f-9825-bc82-6ec4-2ea491e4f702@tnetconsulting.net>
In-Reply-To: <f666878f-9825-bc82-6ec4-2ea491e4f702@tnetconsulting.net>
From: Wei Chuang <weihaw@google.com>
Date: Thu, 13 Jul 2023 07:28:58 -0700
Message-ID: <CAAFsWK1aEygAxGi-Nq+nDi+4GDiN7x8TOVXMsfaRbjQmW+Uzmg@mail.gmail.com>
To: Grant Taylor <gtaylor=40tnetconsulting.net@dmarc.ietf.org>
Cc: ietf-dkim@ietf.org
Content-Type: multipart/alternative; boundary="000000000000711f2906005f2895"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-dkim/x7VX6zXOyyTk6kM4ekNN86Y9DY0>
Subject: Re: [Ietf-dkim] Tolerating Mailing-List Modifications I-D
X-BeenThere: ietf-dkim@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: IETF DKIM List <ietf-dkim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-dkim>, <mailto:ietf-dkim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-dkim/>
List-Post: <mailto:ietf-dkim@ietf.org>
List-Help: <mailto:ietf-dkim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-dkim>, <mailto:ietf-dkim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jul 2023 14:29:24 -0000

On Wed, Jul 12, 2023 at 8:34 PM Grant Taylor <gtaylor=
40tnetconsulting.net@dmarc.ietf.org> wrote:

> On 7/12/23 9:26 AM, Wei Chuang wrote:
> > Hi folks,
>
> Hi Wei,
>
> > Being able to reverse mailing-list message modifications to repair
> > the message and enable digital signature verification, would resolve
> > a significant roadblock for further DMARC deployment.  Potentially it
> > would allow better attribution of which party contributed which
> > content in the message.  I propose some ideas around reversible
> > mailing-list message modifications in:
> >
> https://datatracker.ietf.org/doc/html/draft-chuang-mailing-list-modifications-00.
>
> >  These modifications are: 1) prepending a description string to the
> > Subject header, 2) rewriting the From header, 3) removing the
> > original DKIM-Signature and 4) appending a footer to the message
> > body.  (Apologies that -00 draft is still in a rough form)
>
> N.B. I've not read draft-chuang-replay-resistant-arc yet.
>
> I have some questions:
>
> 1)  Why limit the supported modifications to the four listed above?
>
> 2)  What if we turned the problem on it's head and instead of recording
> old values along with the new values, instead we record the new values
> and the permutation used to derive the new values.
>
> Consider:
>
>     2 + 3 = 5
>
> to be:
>
>     O + C = N
>
> Instead of recording O and N as headers, what if we recorded C and N?
>
> Would recording the Change method -- dare I say -- regular expression --
> for want of a better example for discussion -- make reverting the change
> simpler?
>
> Old:
>
>     Subject:  This is a test
>
> Change:
>
>     s/^Subject:\s+\(.*\)$/Subject:  [ietf-dkim] \1/
>
> New:
>
>     Subject:  [ietf-dkim] This is a test
>
> I would think that it would be possible to mutate the RE to reverse the
> change.  E.g.:
>
> New:
>
>     Subject:  [ietf-dkim] This is a test
>
> Change-Back:
>
>     s/^Subject:  [ietf-dkim]  \(.*\)/Subject:  \1/
>
> Original:
>
>     Subject:  This is a test
>
> I absolutely agree that regular expressions have problems and may open
> up a can of worms.  I'm mostly using them as a place holder for
> something, maybe a dialect of BNF, to describe the change.
>
> I would think that such descriptions of 1) what was changed and 2) how
> the change was made would be more flexible than specifying specific
> things supported.
>
> I'm going to assume that you have thought of this and have a perfectly
> valid reason to not do it that I'm ignorant of.  If you can, please
> enlighten me as to why such delta descriptions might not work.
>
>
>
Murray proposed something like the regular expression matching approach in
https://datatracker.ietf.org/doc/draft-kucherawy-dkim-transform/.  The
matching pattern is very restricted though- match and remove content within
brackets.  My primary concern is that since a receiver has to also worry
about From header and DKIM-Signature header rewriting, just fold in the
Subject header mechanism to reduce the effort on the mailing-list and
receiver.  The second level concern is being able to scalably support
multiple mailing-lists composing their modifications.  A regular expression
might be able to support this, but likely leaves ambiguity that could cause
interop problems.  Murray seems to hint at a sequence number, but I don't
believe that fully described.

-Wei


>