Re: [Extra] Benjamin Kaduk's No Objection on draft-ietf-extra-imap4rev2-27: (with COMMENT)

Timo Sirainen <timo@sirainen.com> Thu, 04 February 2021 14:41 UTC

Return-Path: <timo@sirainen.com>
X-Original-To: extra@ietfa.amsl.com
Delivered-To: extra@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7AA2A3A1543; Thu, 4 Feb 2021 06:41:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 fdUqNOAYq1b5; Thu, 4 Feb 2021 06:41:56 -0800 (PST)
Received: from sirainen.com (mail.sirainen.com [94.237.26.55]) by ietfa.amsl.com (Postfix) with ESMTP id 8B2563A1545; Thu, 4 Feb 2021 06:41:55 -0800 (PST)
Received: from [192.168.10.120] (unknown [213.114.248.18]) by sirainen.com (Postfix) with ESMTPSA id 958C42B3C7E; Thu, 4 Feb 2021 14:41:53 +0000 (UTC)
From: Timo Sirainen <timo@sirainen.com>
Message-Id: <5A095B75-3BB9-4558-A8DA-826C7C875B10@sirainen.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_05F9380A-A3CE-44FF-B04E-84D67F061C01"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
Date: Thu, 04 Feb 2021 15:41:53 +0100
In-Reply-To: <CALaySJL4c2BQVf3eU57k+51EUHYGmbL-inhJNy=Xtt_SyWzHtg@mail.gmail.com>
Cc: Benjamin Kaduk <kaduk@mit.edu>, extra@ietf.org, Bron Gondwana <brong@fastmailteam.com>, draft-ietf-extra-imap4rev2@ietf.org, The IESG <iesg@ietf.org>, extra-chairs@ietf.org
To: Barry Leiba <barryleiba@computer.org>
References: <161243121159.6909.2386107317688674630@ietfa.amsl.com> <CALaySJL4c2BQVf3eU57k+51EUHYGmbL-inhJNy=Xtt_SyWzHtg@mail.gmail.com>
X-Mailer: Apple Mail (2.3654.40.0.2.32)
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/OkRgKfA6Q3OqWxHTH7S6OYRYxo0>
Subject: Re: [Extra] Benjamin Kaduk's No Objection on draft-ietf-extra-imap4rev2-27: (with COMMENT)
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <extra.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/extra>, <mailto:extra-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/extra/>
List-Post: <mailto:extra@ietf.org>
List-Help: <mailto:extra-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/extra>, <mailto:extra-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Feb 2021 14:41:59 -0000

On 4. Feb 2021, at 15.33, Barry Leiba <barryleiba@computer.org> wrote:
> 
>> Section 2.3.1.1
>> 
>>                                         A good UIDVALIDITY value to use
>>   is a 32-bit representation of the current date/time when the value is
>>   assigned: this ensures that the value is unique and always increases.
>>   Another possible alternative is a global counter that gets
>>   incremented every time a mailbox is created.
>> 
>> In light of the discussion in draft-gont-numeric-ids-sec-considerations,
>> I wonder if these are truly the most recommended options, as either
>> option has potential to leak some information about rate or time of
>> mailbox creation.  Leaking the time of mailbox creation to the user who
>> created it is, of course, not an issue, but not all IMAP mailboxes are
>> single-user-access.  A 32-bit PRP (e.g., block cipher) applied to either
>> option would provide some level of obfuscation while preserving the
>> uniqueness properties.
> 
> It would obfuscate and preserve uniqueness, but it would not preserve
> the monotonicity: a new UIDVALIDITY must always be greater than the
> previous ones.  Do you have a good suggestion for that, which still
> takes care of the privacy leak?

I wouldn't mind if that requirement was relaxed with rev2. It should be enough that the UIDVALIDITY is always different if a mailbox gets recreated. My guess is that all/most IMAP4rev1 clients would already work correctly.