Re: [Extra] I-D Action: draft-ietf-extra-sieve-special-use-01.txt

Ned Freed <ned.freed@mrochek.com> Sun, 04 March 2018 19:36 UTC

Return-Path: <ned.freed@mrochek.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 5CA95127775 for <extra@ietfa.amsl.com>; Sun, 4 Mar 2018 11:36:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.011
X-Spam-Level:
X-Spam-Status: No, score=-2.011 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mrochek.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 0Kqb9kj2qxRd for <extra@ietfa.amsl.com>; Sun, 4 Mar 2018 11:36:58 -0800 (PST)
Received: from mauve.mrochek.com (mauve.mrochek.com [68.183.62.69]) (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 CE47012D80F for <extra@ietf.org>; Sun, 4 Mar 2018 11:36:57 -0800 (PST)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01QPQL9Z9H4W00EGJB@mauve.mrochek.com> for extra@ietf.org; Sun, 4 Mar 2018 11:34:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mrochek.com; s=201712; t=1520192052; bh=noa3xaXkc6kyrB/+7yxjPOpJPqN26TnDq2PbOhWgGVY=; h=Cc:Date:From:Subject:In-reply-to:References:To:From; b=hvH1JtjozNl+JpWRAIGQhwAAX32SVPFsnmNJ+9m6Lp2wVSSscsNENFFUFUcidK53o IpK+aXZdnkr5wcant7ctKzlLOJ3YWsADwjKVKr6QYUJxiYAbsvWPly+5NJftqPjCh6 xMmscS+4OzmAx11XsbrfFk4qky9qFrHE2VHrBM3A=
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: TEXT/PLAIN; CHARSET="us-ascii"
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01QPJK8UA574000051@mauve.mrochek.com>; Sun, 4 Mar 2018 11:34:07 -0800 (PST)
Cc: Ned Freed <ned.freed@mrochek.com>, extra@ietf.org
Message-id: <01QPQL9VWBH0000051@mauve.mrochek.com>
Date: Sun, 04 Mar 2018 11:33:52 -0800
From: Ned Freed <ned.freed@mrochek.com>
In-reply-to: "Your message dated Sun, 04 Mar 2018 20:31:12 +0100" <edd165d2-fb19-ecc7-145d-1c1baefbeec7@dovecot.fi>
References: <151533655607.10858.793231788332492256@ietfa.amsl.com> <ce56fc8f-366a-8e1e-2f00-1ed22da28d15@dovecot.fi> <01QNLYA7BLVQ000051@mauve.mrochek.com> <d3a952db-a264-9234-dff6-452d38a53d81@dovecot.fi> <01QNNBB3GEW0000051@mauve.mrochek.com> <edd165d2-fb19-ecc7-145d-1c1baefbeec7@dovecot.fi>
To: Stephan Bosch <stephan.bosch@dovecot.fi>
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/ZhwJcrNbJ30P9BjpOTzIGo-C6jU>
Subject: Re: [Extra] I-D Action: draft-ietf-extra-sieve-special-use-01.txt
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.22
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: Sun, 04 Mar 2018 19:37:05 -0000

> Hi Ned,

> Op 1/9/2018 om 10:44 PM schreef Ned Freed:
> >
> >>> Section 3 says:
> >>>
> >>>    If the "mailbox" string argument is omitted, the "specialuse_exists"
> >>>    test yields true if all of the following statements are true for each
> >>>    of the special-use flags listed in the "special-use-flags" argument:
> >>>
> >>>    a.  at least one mailbox exists in the mail store that has that
> >>>        particular special-use flag assigned, and
> >>>
> >>>    b.  that mailbox allows the user in whose context the Sieve script
> >>>        runs to "deliver" messages into it.
> >>>
> >>> I'm concerned about a. - the phrase "the mail store" conjures up an image
> >>> of searching through folders belonging to millions of users looking for
> >>> one that has an ACL allowing the sieve owner to write to it.
> >>>
> >>> I'm pretty sure you don't intend this to cover shared folders, so I suggest
> >>> changing the text to say something like:
> >>>
> >>>    a.  at least one mailbox exists in the user's personal namespace
> >>>        [NAMESPACE]  that has that particular special-use flag assigned, and
> >>>
> >>> And add the [NAMESPACE] reference pointing at RFC 2342.
> >> I must say I didn't consider any special problems with shared mailboxes.
> >> The scenario you describe is that lots of people are sharing some of
> >> their mailboxes with pretty much everyone.
> > It's not a question of lots of people doing it, it's a question of whether or
> > not you have an optimized way of looking through the entire list of mailboxes
> > in a deployment.
> >
> > Remember that per RFC 6154 section 2, special use attributes are not required
> > to be user-specific. (Although oddly, they only appear in private metadata.)
> >
> >> In that case, indeed, it
> >> could be a lengthy lookup. I guess the impact is
> >> implementation/deployment-dependent. I think we should warn about
> >> situations like this, but not restrict access to the personal
> >> namespace(s) in the specification.
> > I'm afraid I have to disagree. Restricting things to the personal
> > namespace needs to be an allowed implementation option. Frankly, I'm
> > not all that comfortable with even a MAY on allowing more, because I don't
> > think the implications of special-use flags on shared folders have
> > been given any real scrutiny, especially when they are not necessarily
> > per-user.
> >
> > At an absolute minimum this is going to require some discussion
> > in the security considerations. A situation where someone can
> > create a shared folder, open it up with an ACL, and then gather
> > up sent mail from a new user is not really acceptable.

> I've addressed this in the latest Github version. It is now fully
> restricted to the user's personal namespace. I've added some explanation
> to the "Security Considerations" section. I've left the option open to
> define a new special use flag that does have an application for shared
> mailboxes.

WFM.

				Ned