[openpgp] Re: Primary Key Binding sigs on authentication subkeys

Daniel Huigens <d.huigens@protonmail.com> Wed, 29 January 2025 08:20 UTC

Return-Path: <d.huigens@protonmail.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 E0091C151995 for <openpgp@ietfa.amsl.com>; Wed, 29 Jan 2025 00:20:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, 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=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=protonmail.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 j4L1wQtMJufE for <openpgp@ietfa.amsl.com>; Wed, 29 Jan 2025 00:20:03 -0800 (PST)
Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (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 CAF4BC151539 for <openpgp@ietf.org>; Wed, 29 Jan 2025 00:20:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1738138801; x=1738398001; bh=4U9RKaFRUBBO3sV8Ro5/QvDuem/SMAO1o0wPbl3oriM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=ZD5KG9qZ78KIiEf8yZW6HJj/wg5Gpnozi+aHrNcLxowZvWALklxgEM4K3Fpzaso/P srYntVgB/7aUA89XMgotcDWWYpG2814/dDXQoQvammIvF1O3gbl9EhZV6NEVDHI5Vd JRebBKl2yQXtMeaNFOL4Eufcqvlao2VrsP0Od9MURDCZgT3DVaDqNhId7eP8nBF3ha W4VEbS3NB1FHLdZM/F1JtZfbji18wOd3cP/1Z1/4toBgF6FYZtW9T6fTWt/AaGO4dY SuXDtQhG8PjtwbQIxQHu2V8rkgMcaCaFzNm4fprZF6fbcHag9sGQVV06Bl/k8T6nZy C+DmuaNqewu8g==
Date: Wed, 29 Jan 2025 08:19:57 +0000
To: Stephan Verbücheln <stephan=40verbuecheln.ch@dmarc.ietf.org>
From: Daniel Huigens <d.huigens@protonmail.com>
Message-ID: <tIhav3cCbJLSw89FGpA2p8xRlysJCk5P41NESZjBVdJL9tnrCiM-Oezdq7lMk1SjdurUxGLBUU4yePr4TgYSZdNPglCiZXs7WaNbt-0I6EQ=@protonmail.com>
In-Reply-To: <c7ca0acc7298dcccb4f14d8b81a45b5733a93a1b.camel@verbuecheln.ch>
References: <D6B824E8-5559-41FB-8EC4-ACC0C35FAEB0@andrewg.com> <HBqO7fta_A4PuuS2EkZ4W5g6SAnzgN38ZYjpGWqgZJHCFqCQUNQ-BAXEHRqa7pwGU5jI7s6XpvGV2ZYLpa6se9e-SJDujNO6yknALtzlAW8=@protonmail.com> <875xm64wtk.fsf@europ.lan> <LIWr-Fiz5EpXR5DQtFrZRqWCtNc1_ADJN-d8TrWsw0s9auDsh76eXn6jdo0J1d3WTrWkxNnnSufHRlUcuBqsyxYhnReLn3fPR8ZUR4CPSNc=@protonmail.com> <c7ca0acc7298dcccb4f14d8b81a45b5733a93a1b.camel@verbuecheln.ch>
Feedback-ID: 2934448:user:proton
X-Pm-Message-ID: 6340d1eefcb2b8cb47e4af63020f616c7b959234
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: GWNOTDOBZWPC5DFFJB7QCTZ7J3VL5WTA
X-Message-ID-Hash: GWNOTDOBZWPC5DFFJB7QCTZ7J3VL5WTA
X-MailFrom: d.huigens@protonmail.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: openpgp@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [openpgp] Re: Primary Key Binding sigs on authentication subkeys
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/PxYFl7k0t9_PiOtItiUv1Y-mpfw>
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>

Hi Stephan,

I am not proposing to change the specification in this thread.

In the PR that Andrew linked, I proposed to align our implementation
with text in the specification that predates my involvement and is
present in RFC4880, Section 11.1:

   For subkeys that can issue signatures, the subkey binding signature
   MUST contain an Embedded Signature subpacket with a primary key
   binding signature (0x19) issued by the subkey on the top-level key.

Similarly, the idea of authenticating using OpenPGP signatures was not
raised by me but by RFC4880, Section 2.2:

2.2.  Authentication via Digital Signature

   The digital signature uses a hash code or message digest algorithm,
   and a public-key signature algorithm.  The sequence is as follows:
   (...)

If you or anyone else is of the opinion that this text is wrong,
please propose to change it, but surely you'd agree that it's a
good thing for the specification and its implementations to match.


Finally, I'll note that the changes in RFC9580 were not solely
proposed by me but by a group of people, all of whom (in my view)
had the best interest of OpenPGP in mind, and not only for email.
It's a shame that not all implementations were on board and that
things turned out the way they did, but I won't rehash that further
here.

Best,
Daniel