Re: [kitten] Adoption of draft-mccallum-kitten-krb-service-discovery?

Nico Williams <nico@cryptonector.com> Thu, 19 May 2016 16:10 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A428312D177 for <kitten@ietfa.amsl.com>; Thu, 19 May 2016 09:10:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cryptonector.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 7z-P7a02mN1D for <kitten@ietfa.amsl.com>; Thu, 19 May 2016 09:10:44 -0700 (PDT)
Received: from homiemail-a54.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C2C3A12D16F for <kitten@ietf.org>; Thu, 19 May 2016 09:10:43 -0700 (PDT)
Received: from homiemail-a54.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a54.g.dreamhost.com (Postfix) with ESMTP id D2728400EE530; Thu, 19 May 2016 09:10:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=yXXD3pbM7owkRt 3fS2fwvuUFT/g=; b=bpsEawCugAp7MbGTgsHcv+zZqXncraw/XKTttXTPEvKA+U p0CC0PPfeGRjNmxgz5cUcsu+aKFFJHhJ+S5YoAAdps0OT4V2bNBIC7GdoFaL4Os7 0n53rH+KR2ovJBebswtaGvIUJ6TC2iiIv7JXlsTAs9J/Z6d4mhFwRUj5kjjSQ=
Received: from localhost (108-207-244-100.lightspeed.austtx.sbcglobal.net [108.207.244.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a54.g.dreamhost.com (Postfix) with ESMTPSA id 77FA3400F8A33; Thu, 19 May 2016 09:10:36 -0700 (PDT)
Date: Thu, 19 May 2016 11:10:06 -0500
From: Nico Williams <nico@cryptonector.com>
To: Jeffrey Altman <jaltman@secure-endpoints.com>
Message-ID: <20160519161004.GA19530@localhost>
References: <1463500163.2432.9.camel@redhat.com> <54c900f2-399c-0ff0-c292-91baba495a21@secure-endpoints.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <54c900f2-399c-0ff0-c292-91baba495a21@secure-endpoints.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <http://mailarchive.ietf.org/arch/msg/kitten/ZaFwVnbYabnznL-Gz7vImTVVfT4>
Cc: kitten@ietf.org
Subject: Re: [kitten] Adoption of draft-mccallum-kitten-krb-service-discovery?
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 May 2016 16:10:45 -0000

On Tue, May 17, 2016 at 12:25:10PM -0400, Jeffrey Altman wrote:
> On 5/17/2016 11:49 AM, Nathaniel McCallum wrote:
> > https://tools.ietf.org/html/draft-mccallum-kitten-krb-service-discovery
> > -02
> > 
> > I'd like to propose adoption of this draft:
> > 
> > 1. It is in the scope of the WG. This is an extension to the discovery
> > methods already defined in RFC 4120.
> > 
> > 2. It is beneficial. It provides both speed improvments and additional
> > functionality (discovery of MS-KKDCP proxies).
> > 
> > 3. It is small. It avoids defining new: DNS names, DNS semantics, URIs,
> > or transport semantics. It simply combines the existing tools in a
> > fairly obvious way.
> > 
> > Thoughts?
> > 
> 
> Having read the draft I am totally unclear how it is implemented.
> 
>   _kerberos.REALM
> 
> is not a valid DNS URI record name.  To translate the URI

RFC7553 is Informational.  Clearly it's the most authoritative when
describing the URI RR type's RDATA and their semantics.  But as for the
RRset names, I think it's mistaken, and anyways, it's Informational
(though it once aimed for Proposed Standard; we might want to find out
why it ended up being Informational).

>   https://host[:port][path]
> 
> to an URI record requires
> 
>  _kerberos._https.host
>
> [...]

Problems with this:

a) if we're going to be pedantic, _https is not the sort of protocol
   intended to go there (protocols running over IP are, so _tcp, _udp,
   _sctp, ...);

b) plus we have *two* HTTP-based protocols, so how would we indicate
   which protocol to use?

c) every additional transport for the KDC exchanges adds a (serial, as
   implemented) DNS lookup for the clients -- this is a performance
   disaster.

(c) is fatal.  We really need _kerberos.<REALM's domainname>. as the
QName and, therefore, the RRset name.  One question, one answer set.

And if we're going to use URI, then we'll need a 'krbtgt' URI scheme by
which to express the four protocols we have (raw over TCP, raw over UDP,
HTTP MSFT-style, and HTTP Heimdal-style:

  krbtgt:<host>[:<port>]#proto=tcp
  krbtgt:<host>[:<port>]#proto=udp
  krbtgt:http[s]://<host>[:port][/path]#style=POST
  krbtgt:http[s]://<host>[:port][/path]#style=GET

Or any variant of that that you might like, such as:

  krbtgttcp:<host>[:<port>]
  krbtgtudp:<host>[:<port>]
  krbtgtpost:http[s]://<host>[:port][/path]
  krbtgtget:http[s]://<host>[:port][/path]

> Can you make a case for something that DNS URI records provides that DNS
> SRV records do not?

Yes.  See above.

> The introduction of DNS URI records will only mean that in practice that
> Kerberos client libraries will need to issue the DNS URI queries in
> addition to the existing DNS SRV records.

Yes, but they should try URI queries first so as to create an incentive
to publish those (because that will be faster, because it will be just
one query instead of three or four).

Nico
--