Re: [openpgp] Web Key Directory I-D -07

Bart Butler <bartbutler@protonmail.com> Thu, 15 November 2018 20:48 UTC

Return-Path: <bartbutler@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 C8A38130DE4 for <openpgp@ietfa.amsl.com>; Thu, 15 Nov 2018 12:48:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=protonmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rQ_OTZNs_VPf for <openpgp@ietfa.amsl.com>; Thu, 15 Nov 2018 12:48:40 -0800 (PST)
Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68148130DD8 for <openpgp@ietf.org>; Thu, 15 Nov 2018 12:48:39 -0800 (PST)
Date: Thu, 15 Nov 2018 20:48:27 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1542314911; bh=/+38hvPTMDWjK5/TMz4wb4X03MTd53LZEhmfy16atRk=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=HkpSIo1v7aiCO1/W7ohnrGpJV5jNAGmmpwK95b7Zb3+wl0ef9xOt4anvce/X5b4pC 8K4wc8eDjXXYRgguotcB+nhnge8Jur22ptA7wxxoZVBzpzBDaaDfspmmA0SDM0JM3c ZcaR2OuwhI8P9DTZIwyve9Ytu/AB8dswwmaa8x6A=
To: Phil Pennock <ietf-phil-openpgp@spodhuis.org>
From: Bart Butler <bartbutler@protonmail.com>
Cc: "openpgp@ietf.org" <openpgp@ietf.org>
Reply-To: Bart Butler <bartbutler@protonmail.com>
Message-ID: <xj__bJJWR-drYaO0mVlp1iHPMjahysOjFOjiAYqxREFiT1yA5nulJXsT2Ucqqars-IME1tRumRhD_lCqlYhLAQ==@protonmail.com>
In-Reply-To: <20181115030305.GA14179@osmium.pennocktech.home.arpa>
References: <878t1xoz37.fsf@wheatstone.g10code.de> <9J2v287mmh9FWFLrXjxZGnVjA8HNCHpPc2wyEDDqhGeKAhE7grR6JKFMRoHJfKSq9qcjDGRNfoJ5sEODERtP0Q==@protonmail.com> <alpine.LRH.2.21.1811141020570.2540@bofh.nohats.ca> <20181115030305.GA14179@osmium.pennocktech.home.arpa>
Feedback-ID: XShtE-_o2KLy9dSshc6ANALRnvTQ9U24aqXW2ympbGschdpHbU6GYCTUCtfmGhY9HmOyP1Uweyandwh1AVDFrQ==:Ext:ProtonMail
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha512"; boundary="---------------------11b35418b84f386bae34a49cc5462d04"; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/DuMIw-0Gu1vsMyJTklwivE_Cep0>
Subject: Re: [openpgp] Web Key Directory I-D -07
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
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, 15 Nov 2018 20:48:43 -0000

Hi Phil,

You got it spot on, and were much more articulate than I was able to be despite multiple attempts. Thank you!

Yes, all I want to do is relax that one sentence in the spec so that no UserID match, however that is defined, is required in terms of the key returned by the WKD server. We can still require a valid UserID packet of course.

I also like leveraging HTTP cache control headers in the way you suggested, though that can be discussed separately at a later date.

-Bart


Sent from ProtonMail, encrypted email based in Switzerland.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, November 14, 2018 7:03 PM, Phil Pennock <ietf-phil-openpgp@spodhuis.org> wrote:

> On 2018-11-14 at 10:26 -0500, Paul Wouters wrote:
>
> > On Tue, 13 Nov 2018, Bart Butler wrote:
> >
> > > So if I request from ProtonMail Bart.Butler@protonmail.com, I would get a key back with bartbutler@protonmail.com, and the clients could then prompt on unrecognized types of mismatches if desired because they would know that the server is returning the canonical form of the address.
> >
> > We went through this with OPENPGPKEY and SMIMEA. You will get the SMTP
> > people blocking your draft when you try to interpret (or like above,
> > even rewrite) addresses based on "common mail provider rewrites". Their
> > firm believe is only receiving SMTP servers can interpret email addresses.
>
> Bart isn't suggesting encoding common rewrites into OpenPGP, although I
> believe that Werner might be. As an MTA maintainer, I think Bart's
> suggestion is entirely appropriate and inline with the ethos of
> federated SMTP. I'll proceed on the assumption that my analysis of
> Bart's intent is correct. Bart, please correct me if wrong.
>
> In Bart's suggestion, the WKD server, run within the same autonomous
> mail-system (or email administrative domain) as the SMTP servers, can
> decide to map addresses and return a key suitable for use for that email
> address. This does not change where the MUA should send email, but does
> adjust how a well-integrated MUA might choose an appropriate OpenPGP key
> for use for a given email address.
>
> This is entirely in line with the federated design and only the owner of
> the systems at that location getting to make such decisions. There are
> implications around caching, because such a rewrite becomes a long-term
> commitment if it's to be stored as ancillary data in the keyring for
> choosing the correct key.
>
> Thus if presented with a new address test+foo@spodhuis.org and needing
> to get a key for it, with Bart's proposal, the MUA and the OpenPGP
> client software can make no assumptions. It must not normalize anything
> to the left of the '@' sign. But the MUA can use WKD and get back a key
> for test@spodhuis.org; the software can then record a mapping of
> test+foo@spodhuis.org -> test@spodhuis.org in OpenPGP recipient key
> selection preferences. When later sending email to
> test+foo@spodhuis.org, the SMTP transaction proceeds unmodified: the MUA
> does not rewrite the recipient, you have to preserve the address
> as-given. The remapped OpenPGP key selection proceeds as suggested
> though. If sending email to test+bar@spodhuis.org then another WKD
> lookup needs to be made. (Future work might look at protocols for
> indicating patterns to avoid repeated lookups).
>
> Because server-side mapping decisions are being held elsewhere, and
> because people do change PGP keys (in particular: security teams which
> cycle their keys annually) this does suggest that the HTTP cache control
> expiration headers might play into SHOULD controls on how the OpenPGP
> client expires mappings and puts in place refresh checks.
>
> The spirit of Bart's proposal, as I read it, is a great fit for the
> autonomy of mail administrative domains.
>
> -Phil
>
> openpgp mailing list
> openpgp@ietf.org
> https://www.ietf.org/mailman/listinfo/openpgp