[openpgp] Re: v4+v6

andrewg <andrewg@andrewg.com> Mon, 10 February 2025 16:39 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 8312EC1E641D for <openpgp@ietfa.amsl.com>; Mon, 10 Feb 2025 08:39:30 -0800 (PST)
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, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable 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 2Y6kYcNp0TzQ for <openpgp@ietfa.amsl.com>; Mon, 10 Feb 2025 08:39:26 -0800 (PST)
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 ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17388C1E6404 for <openpgp@ietf.org>; Mon, 10 Feb 2025 08:39:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=andrewg.com; s=andrewg-com; t=1739205562; bh=bNgXoHkZ+R2AOBTJxUfOgUggmIyOTQCyapiJ+evOcRk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ruUZMSSKHRk1TZdMstu7JuDrxZ267i2vcl41RFw/fSu5xmAcFcv6d9LE8fQBO6dTH /LHX6ariDfL0qEBt+pCcFIehCcATvjrfcj9/jxTCoUl82E4dXfjdNBgEIkglr3laC2 fzZsf8MBAvfWDYJm0xGM5gv49m9Tr9k02llw8jDZpNuqKk0MuxQUyxR5PhlmCDhYz2 p67p8kbm+3sqKTMz2nobAmcccC5NP8nUG8PEZ/N0xgKPov8NUEWHC6uL1WTMp1eoD7 dP9Piw/woRGWOzbKXWgp8VmQ5O3Naj6TCkR2G2SLYnCb92aDz3Sq/r4QMJWpf954VY ikvY8xbOlSTKQ==
Received: from mail.andrewg.com (localhost [127.0.0.1]) by fum.andrewg.com (Postfix) with ESMTP id 269915ED70; Mon, 10 Feb 2025 16:39:22 +0000 (UTC)
MIME-Version: 1.0
Date: Mon, 10 Feb 2025 16:39:22 +0000
From: andrewg <andrewg@andrewg.com>
To: "Neal H. Walfield" <neal@walfield.org>
In-Reply-To: <87bjvaf6c8.wl-neal@walfield.org>
References: <87h653fd5p.wl-neal@walfield.org> <964855C8-C7AB-404E-84D9-22F8D25DD8CB@andrewg.com> <87bjvaf6c8.wl-neal@walfield.org>
Message-ID: <a29bba8ffbb190770e3e46de3c151503@andrewg.com>
X-Sender: andrewg@andrewg.com
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Content-Transfer-Encoding: 7bit
Message-ID-Hash: TSZBBYFSK2B3VKFEPWOSE74OR2US3AX5
X-Message-ID-Hash: TSZBBYFSK2B3VKFEPWOSE74OR2US3AX5
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: Andrew Gallagher <andrewg=40andrewg.com@dmarc.ietf.org>, OpenPGP IETF <openpgp@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [openpgp] Re: v4+v6
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/jz1ibJFzJRwNK8UKgU5CNgue3-4>
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>

Hey, Neal.

On 2025-02-10 10:21, Neal H. Walfield wrote:
> There are many reasons to check
> for updates to a certificate before using it: it might have been
> revoked, the owner may have added a new subkey, etc.  This is another
> type of update, and can be checked for using the usual mechanisms.  I
> think the same reasoning also applies to the forward replacement key
> subpacket: the owner may have added one, but a user will only know if
> they check for an update.

A user should(?) be performing refresh requests on the original anyway. 
This new mechanism would mean at least doubling the number of refreshes 
(once for v4 and once for v6, possibly more) in every client that 
supports it, even if nobody ever creates such a key.

> Sorry, I don't understand the issue you're raising.  Can you elaborate
> what you mean by the trapdoor scenario?

I mean a scenario where a keyholder wants their correspondents to 
upgrade from an original to a replacement if possible, but doesn't want 
to allow fallback to the original. If it was customary for all of the v4 
encryption subkeys to be duplicated onto the v6 doppelganger, then there 
would be no scenario where a correspondent would find the v6 cert, see 
no usable subkeys on it, then search for the v4 cert and find new usable 
subkeys. In that scenario following a reverse subpacket isn't useful, so 
we could keep things simple by assuming a trapdoor and not bothering to 
fall back.

> In case you are suggesting that an implementation should transform a
> v4 encryption-capable subkey into a v6 encryption-capable subkey if it
> can't find the v6 certificate, I don't think that that is a good idea.

No, I'm not suggesting that, that would be bad. :-)

> In my proposal, I was careful to ensure that there is only a single
> possible mapping by requiring that the meta-data be the same.  This
> prevents chains and the associated complexity, as there can only be at
> most one equivalent certificate per version.

I just meant that there are more than two versions in the wild already, 
and at some point presumably we may specify a version 7, so there may 
well be a chain "4->(5?)->6->7". To be fair, it does have an intrinsic 
ordering - it just may not be the order that the keyholder wants... ;-)

Thanks again,
A