Re: [openpgp] v5 interoperability

Andrew Gallagher <andrewg@andrewg.com> Wed, 03 April 2024 10:08 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 C8CCDC1516EB for <openpgp@ietfa.amsl.com>; Wed, 3 Apr 2024 03:08:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, 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 IgvyVmk8M9s7 for <openpgp@ietfa.amsl.com>; Wed, 3 Apr 2024 03:08:37 -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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9088BC1516E1 for <openpgp@ietf.org>; Wed, 3 Apr 2024 03:08:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=andrewg.com; s=andrewg-com; t=1712138915; bh=17qI75oc0CddbDcqMOxeHUxs295FF8aTaybdpXKNB70=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=pwEgU1CbNno4osnRJVJQTrbUpuhVXVio5fQAud2gaqvCgEhDmbYiGefFoFf7AKmAd BSDnRWiu14fPDauA3OI7gzjhIvz1eJhms7sQ4F1dKvwUjcOtS27fdNfgYTeQNZtQ/a T/9s6bXJctJtrw0Q/N3PG0eYc2ClmWY7c1atIf3wTxmaDAsJcVkSdZ815l1UPn1CIO W3TKnft/JyRFp63piZ6rRsSR21YzsspH7RBbMdcqozo0/wJDFsUhDrPs0gVxcMXlrI 7IShcBLzfhzFqGVH4UHOpELW2RJOeQlB0CUwdB40keqd24mUTatpyxbw1elOI48ock afrbFeMHOWtRQ==
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 56A1E5DC4C; Wed, 3 Apr 2024 10:08:35 +0000 (UTC)
Content-Type: multipart/signed; boundary="Apple-Mail=_92071F21-05CD-4C90-A460-9CF925091147"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.1\))
From: Andrew Gallagher <andrewg@andrewg.com>
In-Reply-To: <OxwBjPxjKr9c6TLimy66G_sd1gcTenXtbtwSQptBwxo2sBL2fzpeKa-PB59ANTeNWvLXrLJWWu2bEq1tR4WAizV4R56qemPwxTB4rAe4Km8=@protonmail.com>
Date: Wed, 03 Apr 2024 11:08:17 +0100
Cc: IETF OpenPGP WG <openpgp@ietf.org>
Message-Id: <1E1642B0-E053-4D6D-B4F9-BC4B9F699664@andrewg.com>
References: <EAE8D81F-05F6-4551-8878-80555709A4EF@andrewg.com> <2OonUbUZ9iR9hDOxXli1u20qpPYokvk2XJ5-7O6XNryRr02pfydpgMFcyfwzYGb2NgmsD-H9cqvIc2CpW8CQlHu2i-E3Dqsts4ch1ECvs_A=@protonmail.com> <B756ABD1-7036-4D40-BE89-8BCE940CA133@andrewg.com> <OxwBjPxjKr9c6TLimy66G_sd1gcTenXtbtwSQptBwxo2sBL2fzpeKa-PB59ANTeNWvLXrLJWWu2bEq1tR4WAizV4R56qemPwxTB4rAe4Km8=@protonmail.com>
To: Daniel Huigens <d.huigens=40protonmail.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3731.700.6.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/oGNIpsjnkZ8zQCSir2mdlRj10JM>
Subject: Re: [openpgp] v5 interoperability
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: Wed, 03 Apr 2024 10:08:41 -0000

On 3 Apr 2024, at 10:54, Daniel Huigens <d.huigens=40protonmail.com@dmarc.ietf.org> wrote:
> 
> On Wednesday, April 3rd, 2024 at 11:40, Andrew Gallagher wrote:
>> But can I serve such a v5-subpacket key indiscriminately, and trust that non-librepgp clients will silently ignore the subkey, or do I have to strip it myself before serving it, in case a client will treat the v5 subkey as invalidating the primary?
> 
> Since the crypto refresh considers them noncompliant, I don't think we
> can guarantee anything about how non-librepgp implementations should/
> would handle them.
...
> Whether that means you should strip subkeys, or just warn the uploader
> that the key might not be compatible with all implementations, I'm not
> sure, though.

One solution might be to require clients to state what they support when requesting keys over HKP. Or we could specifically say that HKP clients MUST silently ignore any unknown/mismatching subkey versions IFF they supply ?v=1, otherwise they get stripped keys. Or we could serve two keys over HKP, one stripped and one not...

A