Re: [dhcwg] Fwd: New Version Notification for draft-ietf-dhc-sedhcpv6-20.txt

Lishan Li <lilishan48@gmail.com> Thu, 16 February 2017 06:49 UTC

Return-Path: <lilishan48@gmail.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D2E02129991 for <dhcwg@ietfa.amsl.com>; Wed, 15 Feb 2017 22:49:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.449
X-Spam-Level:
X-Spam-Status: No, score=-2.449 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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 (2048-bit key) header.d=gmail.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 2F_QxJhx0WJv for <dhcwg@ietfa.amsl.com>; Wed, 15 Feb 2017 22:49:01 -0800 (PST)
Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B807B129431 for <dhcwg@ietf.org>; Wed, 15 Feb 2017 22:49:00 -0800 (PST)
Received: by mail-qk0-x231.google.com with SMTP id p22so7588138qka.0 for <dhcwg@ietf.org>; Wed, 15 Feb 2017 22:49:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XqBkuMZC31hbYIz5cpdJPtc9xG1Ilel5OXp8/4Z2IQQ=; b=pkL2gsZHiLw8+9UmHx9/Q/V5R9i6auq8DcdSz7OQyNruus68ln8bzvKRrm1fPTHX2M HksCucxHo3AWJf+q0l+ykSBCKU0/FuS60kvLss3Y5Kv+wIyKRjKlG2GPoZYPsU50WNqj +Flmo2j89R0GOwXhleAWq7YW4egcb+IZlqWmGi3k+ylE6iUBnzSaM0uCNhhY2omiJncf ESwRjb+lBSpA+Aa1RRBOJfKSnKucRTHD1wlZhxpixW2Q0SGDh9HGPthgvceqK/ZsDnsy IPO8mw1jlI0iVoj5eeXVl96H6AqY0FpGd36lo670Q7o8bMKkywDsb8csxdHtV8a6q+QN 0RgA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XqBkuMZC31hbYIz5cpdJPtc9xG1Ilel5OXp8/4Z2IQQ=; b=KbpvhfTYzTIQIJxGnkKLTKtqBIQed50CEE6sgTNesAqET7KxSn/phdKZ+aJB7tMF6G P837xo0fAoa3syzPztNm3h6mfsq0MsiqVItQuoVWDGkvDPxSmfNgUpwqqYX/bYjO5LUq dFogX7heRykZ64qoOFc/DyN5gbG3b2V+86A5NebZU3nOj6140/1ZCgkswUGnPXzz+av7 WoAc6GJAawIofQBJn8GJQpFiRiG6f2oiHoOWzRh6ukvLVWh0ZlDK3fVZiwDiF+6uuRAc Dsl+wADWjPddvQhVymyPIYuWxkd2V523TYNugJErEmbmraBfJSw1DbDIj8wILCzKIQLr oteA==
X-Gm-Message-State: AMke39mzxNYS6IqxS/E/Ig/N8ahqsoGDLxixjdaQEMQRCUe7tLdSPs8HPfyZAhvaqD8Q2CkRkPwXih/hjAJHNA==
X-Received: by 10.55.170.17 with SMTP id t17mr588185qke.15.1487227739894; Wed, 15 Feb 2017 22:48:59 -0800 (PST)
MIME-Version: 1.0
Received: by 10.200.46.172 with HTTP; Wed, 15 Feb 2017 22:48:59 -0800 (PST)
In-Reply-To: <CAJE_bqdJgkbcr8iGomzkHn+doAR+MemGQnyDh8N-0EcemtJM4Q@mail.gmail.com>
References: <148455739520.22478.14651605359463322132.idtracker@ietfa.amsl.com> <CAJ3w4NdCk8CBfNagcXT_VW_50+=xK=N7aB5HHqqn3stMt7Gy-Q@mail.gmail.com> <CAJE_bqf_AP9w1Bh_5kSB4YkLaV9XJ1tngufAiOMxVqQLwMruNA@mail.gmail.com> <CAJ3w4NdR-YdNziqK1u_TpExhQLUukpL8uYzEQ4A0MoipOv-Huw@mail.gmail.com> <CAJE_bqeCBjoGj7V1jTxAh_ce4TH3h_VWxFoRim8wU4OHhaLaow@mail.gmail.com> <CAJ3w4NefG3M0+y53xVKM9fOzLaFDgd9FygbNPC5SFDsGXw55JA@mail.gmail.com> <CAJE_bqdJgkbcr8iGomzkHn+doAR+MemGQnyDh8N-0EcemtJM4Q@mail.gmail.com>
From: Lishan Li <lilishan48@gmail.com>
Date: Thu, 16 Feb 2017 14:48:59 +0800
Message-ID: <CAJ3w4NeZSjqnO1+G28jGcDfY3qzBq50Nr_dLqbgwTo0=pQdW_A@mail.gmail.com>
To: 神明達哉 <jinmei@wide.ad.jp>
Content-Type: multipart/alternative; boundary="001a114d519822fc3d0548a031f6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/1kLQY_C6g30nNQoVuiYiCgfP76Y>
Cc: dhcwg <dhcwg@ietf.org>, Ted Lemon <Ted.Lemon@nominum.com>
Subject: Re: [dhcwg] Fwd: New Version Notification for draft-ietf-dhc-sedhcpv6-20.txt
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Feb 2017 06:49:03 -0000

2017-02-16 3:27 GMT+08:00 神明達哉 <jinmei@wide.ad.jp>:

> At Wed, 15 Feb 2017 19:46:27 +0800,
> Lishan Li <lilishan48@gmail.com> wrote:
>
> > > Encapsulated in an Encrypted-Response message?  If so, with setting
> > > transaction-id to 0 (like Reconfigure itself)?  And is the client
> > > supposed to try to decrypt it when transaction-id is 0 even if it
> > > doesn't match any outstanding Encrypted-Query it has sent?  And in
> > > that case which private key should the client use?  (For the last
> > > question, see also the comment on the assumption of the number of
> > > client certificate described in Section 6).
> > >
> > > I think these questions and issues can be addressed relatively easily,
> > > but I believe these should be clearly and explicitly described.
> > >
> > [LS]: How about the following method:
> > The transaction-id of the Encrypted-Reponse message MUST be equal with
> the
> > transaction-id of the received Encrypted-Query message and cannot be
> zero.
> > In this way, the client will try to decrypt it.
>
> Assuming the Reconfigure is encapsulated in an Encrypted-Response
> message: it won't work since in case of Reconfigure there's no
> corresponding message from the client to the server that would be
> encapsulated in the Encrypted-Query message in the first place.
>
[LS]: Yes. It is also the reason why the transaction-id of Reconfigure
message is set to zero. Right?
In this way, if the transaction-id of the Encrypted-Response is set to
zero.
Then in the client behavior part, we should states that: If the
transaction-id is 0, the client also try to decrypt it.
And in the server behavior part, we add the states that: If the DHCPv6
message is Reconfigure message, then the server set the transaction-id of
the Encrypted-Response message to 0.

>
> > > > >   The description of zero hash algorithm field seems to suggest the
> > > > >   signature and hash algorithms are tightly related in practice.
> So
> > > > >   it may be better to define the algorithm option so that
> > > > >   signature/hash algorithms are listed as pairs.
> > > > >
> > > > [LS]: Yes. In some cases, the signature and hash algorithm are
> tightly
> > > > related and cannot be separate. Sorry that I don't understand that
> > > > "it may be better to define the algorithm option so that
> signature/hash
> > > > algorithms are listed as pairs", Could you please explain it more
> > > clearly?
> > >
> > > For example, instead of listing SA-id List and HA-id List separately,
> > > we might have unified SA-id List:
> [...]
> > > and each pair of (SA-id[i], HA-id[i]) will be considered to specify a
> > > specific signature method.
> > >
> > [LS]: So, for every SA-id, there is a corresponding HA-id or multiple
> > HA-id(s).
> > SA-id and HA-id are set to a pair. Right?
>
> In this example, yes.  But I'm not necessarily insisting on this
> particular example itself.  My concern with the currently described
> way is how to address cases like:
>
> - the client includes SA0, SA1, HA0, HA1 in the algorithm option.  It
>   supports the combinations of (SA0, HA0) and (SA1, HA1), but not (SA0,
>   HA1) or (SA1, HA0)
> - the server returns a certificate with the combination of (SA0, HA1)
>   or (SA1, HA0)
>
> So the higher level question is whether and how to address this
> concern.  The above example approach could be one solution to it, but
> it can make the algorithm option unnecessarily larger.
>
[LS]: Agree.

>
> > > > > - Section 6
> > > > >
> > > > >    [...] In this document, it is assumed
> > > > >    that the client uses only one certificate for the encrypted
> DHCPv6
> > > > >    configuration.  So, the corresponding private key is used for
> > > > >    decryption.
> > > > >
> > > > >   I'm not sure if this is okay.  And, in fact, Section 11 talks
> about
> > > > >   a case where multiple key pairs (so multiple certificates) are
> used:
> > >
> > [LS]: We have discussed this issues before.
> > In most cases, a client will not uses multiple certificate(s) for the
> > encrypted DHCPv6 configuration process in the same time. Please see the
> > following reasons:
> > After the client authentication, the client will use the public key in
> the
> > certificate option for encryption. The server only knows one client's
> > public key for encryption. And the client will also only uses one private
> > key for decryption. So there is no cases that the client will use one key
> > pair for the encryption of some DHCPv6 messages and use another key pair
> > for the encryption of another DHCPv6 messages.
>
> This is fine, but I was wondering what if the client has multiple
> DHCPv6 sessions with different DHCPv6 servers using different key
> pairs.  It's probably very rare in practice, so I can live with saying
> such an operation is outside the scope of this spec.  But I'd like to
> see wg consensus on this, and if we reach it I'd like it to be
> explicitly documented.
>
[LS]: Agree. It is necessary to be explicitly documented.