[openpgp] Re: New Version Notification for draft-gallagher-email-unobtrusive-signatures-00.txt

Andrew Gallagher <andrewg@andrewg.com> Wed, 14 May 2025 13:50 UTC

Return-Path: <andrewg@andrewg.com>
X-Original-To: openpgp@mail2.ietf.org
Delivered-To: openpgp@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 2D861287B67C for <openpgp@mail2.ietf.org>; Wed, 14 May 2025 06:50:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=andrewg.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oqAnd0OWD8ep for <openpgp@mail2.ietf.org>; Wed, 14 May 2025 06:49:59 -0700 (PDT)
Received: from fum.andrewg.com (fum.andrewg.com [135.181.198.78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 95B93287B674 for <openpgp@ietf.org>; Wed, 14 May 2025 06:49:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=andrewg.com; s=andrewg-com; t=1747230598; bh=AJ7tLEKdTed2Fyr9KjyIsgRy/tjD4pW1Ov0Ly+BFMqo=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=JkEV0NmFoOnnbU6E/fw/TxdDlMz0Szzvub0u40hFxpnwUngvSN6/GnArQuwKUDhoc tpxOGsqgHV1RX+xs0Mb4tHTTywFZbUkj4eDBe1Q4w9zQ3jN4p7EW0fPURH0KsdRDYt FUvv7CCjyg2awdwZ2iQvcaMASkO3T+8gBYwcaGJu66Xtb6EPPwNJqsua4H0Ly5Z2Xq 7czaXB2iTj9cOTDLcUCzEOhx7I6e0n3BAWXbNmXp17BzRybJNfJXaw4frb66YkOq8b CmBbpk33Z25hcGscFIl3/6ldPFzVw+td27uJssTb3cfyuZeO6duQfazg8azw5RvM2o O1U0uMWautNbQ==
Received: from smtpclient.apple (serenity [IPv6:fc93:5820:7349:eda2:99a7::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by fum.andrewg.com (Postfix) with ESMTPSA id 3F5625EF8D; Wed, 14 May 2025 13:49:58 +0000 (UTC)
Content-Type: multipart/signed; boundary="Apple-Mail=_CD5B45FE-7DE6-440B-9EEC-14041E73018C"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.10\))
From: Andrew Gallagher <andrewg@andrewg.com>
In-Reply-To: <6c4d97a2-3703-4e34-8289-00f137ab0109@cs.tcd.ie>
Date: Wed, 14 May 2025 14:49:40 +0100
Message-Id: <69BA9CE3-97F2-4F0E-AF3F-B6CC20E5FA85@andrewg.com>
References: <174702320882.1511511.8381323996704122012@dt-datatracker-58d4498dbd-6gzjf> <B58116E7-54A0-4C2A-AAD7-CA60BE0C2C55@andrewg.com> <07d0f93b-4739-49d1-ba31-e32cd201a8ba@cs.tcd.ie> <1924584.1747211935@dyas> <50dd8be9-0068-4404-8c8b-591e524d8739@cs.tcd.ie> <150249D2-605E-44FF-87F2-90F73B8F1B2D@andrewg.com> <6c4d97a2-3703-4e34-8289-00f137ab0109@cs.tcd.ie>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
X-Mailer: Apple Mail (2.3731.700.6.1.10)
Message-ID-Hash: S34BQIDC5TB2DMFV744JDRH6G5KIAON3
X-Message-ID-Hash: S34BQIDC5TB2DMFV744JDRH6G5KIAON3
X-MailFrom: andrewg@andrewg.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-openpgp.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Michael Richardson <mcr+ietf@sandelman.ca>, IETF OpenPGP WG <openpgp@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [openpgp] Re: New Version Notification for draft-gallagher-email-unobtrusive-signatures-00.txt
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/OPz_loX1OBq_hs1vq0AWR-azf0o>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Owner: <mailto:openpgp-owner@ietf.org>
List-Post: <mailto:openpgp@ietf.org>
List-Subscribe: <mailto:openpgp-join@ietf.org>
List-Unsubscribe: <mailto:openpgp-leave@ietf.org>

On 14 May 2025, at 14:35, Stephen Farrell <stephen.farrell@cs.tcd.ie> wrote:
> 
> On 14/05/2025 14:22, Andrew Gallagher wrote:
>> The only caveat is whether DKIM’s relaxed/relaxed canonicalisation
>> allows a DKIM signature over a slightly mangled message (e.g.
>> trailing whitespace) to validate when an E2E signature would not -
>> but the message canonicalisation guidance in section 5.4 of the
>> current draft is designed to avoid this.
> 
> I don't disagree, but there's also the potential that
> the way you're spec'ing multipart/mixed here causes the
> DKIM2 algebra to get a wrong answer. I guess that also
> shouldn't happen, but it's a thing to be checked as
> that DKIM2 algebra is developed.

We'll definitely keep an eye on it, although DKIM should be ignorant of MIME structure. That said, one issue that I have encountered is that some MUAs (such as Apple Mail) create MIME parts with spurious extra leading newlines in the preamble, and some MTAs (I never pinpointed the culprits) silently strip the redundant newlines in transit. However, this also breaks DKIM signatures over the same body, even under the proposed DKIM2 guidance...

A