Re: [openpgp] Put Signature in an Email's Header

Andrew Gallagher <andrewg@andrewg.com> Thu, 10 August 2023 08:44 UTC

Return-Path: <andrewg@andrewg.com>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 67FFCC13AE38 for <openpgp@ietfa.amsl.com>; Thu, 10 Aug 2023 01:44:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 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_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 (2048-bit key) header.d=andrewg.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 iD_lT-gxQCSz for <openpgp@ietfa.amsl.com>; Thu, 10 Aug 2023 01:44:04 -0700 (PDT)
Received: from fum.andrewg.com (fum.andrewg.com [IPv6:2a01:4f9:c011:23ad::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 8DD28C1522A0 for <openpgp@ietf.org>; Thu, 10 Aug 2023 01:44:03 -0700 (PDT)
Received: from smtpclient.apple (unknown [IPv6:fc93:5820:7349:eda2:99a7::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by fum.andrewg.com (Postfix) with ESMTPSA id ED1BE5F4AD; Thu, 10 Aug 2023 08:44:00 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=andrewg.com; s=andrewg-com; t=1691657041; bh=jLXHvhC+oLgL+JguNzvXxzkS2BLlH9jSUl5qPtkhZA8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DmDV0NVJIuUZmtdbZ6xd290vf1DJ/QcedEsKyVuq6C67CVyz1FywTLgh5O2k1rRz0 RZgUVK9nalkxnUC8jzeaczbwhYg6uWSDLh6sxCwhnOSM5d3uPLTHwQmkzLtXJ742wf ZEZbebuRHkn2zO3lV/dxqYdtuPExraDHU9AYgj3cgYNNoUunX9IrUKTyguz/dytEPT RxpF3c61QHimUDSxreDJRlX8UPL870gFdrybzi5C9L2bn0dGjYZNLfVfFcVa2WRH0l 5vOe7SbGy1ZwrYu34G+M3pQS912zqxS3obkbErtxArGhhklCEit4o2zFUpiJXSCpnY 4gz3ytfFEHVzQ==
Content-Type: multipart/signed; boundary="Apple-Mail=_F593C026-5838-43D9-B572-7D2A339C9ABF"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
From: Andrew Gallagher <andrewg@andrewg.com>
In-Reply-To: <17566aae-8b29-4223-b641-26846f3d64f7@kuix.de>
Date: Thu, 10 Aug 2023 09:43:41 +0100
Cc: Andrew Gallagher <andrewg=40andrewg.com@dmarc.ietf.org>, Wiktor Kwapisiewicz <wiktor=40metacode.biz@dmarc.ietf.org>, IETF OpenPGP WG <openpgp@ietf.org>
Message-Id: <A6E69047-F50E-4122-954E-993253193577@andrewg.com>
References: <48be3fcf-cdce-9ef4-655b-63b6dddf9310@kuix.de> <20201211095836.5218a72e@computer> <cd02d2db-0671-dfc0-dab3-dc793a2c1605@metacode.biz> <878sa4y7hy.wl-neal@walfield.org> <4dbaf770-2b2e-47cc-afb5-3ba07706aafd@kuix.de> <87a5v1j4xo.fsf@wheatstone.g10code.de> <db447915-fc25-4759-879e-b64020c0ec0e@kuix.de> <87zg31hoee.fsf@wheatstone.g10code.de> <ba560bb0-0fa5-40a2-b70d-83f36859e17e@metacode.biz> <87v8dphmec.fsf@wheatstone.g10code.de> <17a06888-8516-457f-8ef3-85b7c77ce2f6@kuix.de> <51A7082C-D4E0-4577-B3E5-0688664FDD0F@andrewg.com> <17566aae-8b29-4223-b641-26846f3d64f7@kuix.de>
To: Kai Engert <kaie@kuix.de>
X-Mailer: Apple Mail (2.3731.600.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/VLrBWpi4n7SjFEHKE7chzbbl79Q>
Subject: Re: [openpgp] Put Signature in an Email's Header
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 10 Aug 2023 08:44:09 -0000

On 9 Aug 2023, at 09:32, Kai Engert <kaie@kuix.de> wrote:
> 
> On 08.08.23 19:09, Andrew Gallagher wrote:
>> I’d be wary of such a double-encapsulation, it feels fragile.
> 
> This is what we currently do when combining a signature and protected headers:
> 
> multipart/signed (application/pgp-signature)
>    multipart/mixed (protected-headers)
>        headers
>        payload
>    signature data
> 
> And the new suggestion is:
> 
> multipart/mixed
>    signature-as-a-header
>    multipart/mixed (protected-headers)
>        headers
>        payload
> 
> Given that both use two layers around the payload, why do you consider the new suggestion more fragile?

Sorry, I misunderstood your previous email, I thought you were introducing yet another encapsulation layer. I withdraw! :-)

A