Re: [dnsext] New RRtype "KREALM" in draft-vanrein-dnstxt-krb1-02.txt

"Niall O'Reilly" <niall.oreilly@ucd.ie> Fri, 11 September 2015 13:40 UTC

Return-Path: <niall.oreilly@ucd.ie>
X-Original-To: dnsext@ietfa.amsl.com
Delivered-To: dnsext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7F5471B4014 for <dnsext@ietfa.amsl.com>; Fri, 11 Sep 2015 06:40:21 -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, J_CHICKENPOX_35=0.6, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 0fNQbeZDCpel for <dnsext@ietfa.amsl.com>; Fri, 11 Sep 2015 06:40:15 -0700 (PDT)
Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (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 F20581A1B6C for <dnsext@ietf.org>; Fri, 11 Sep 2015 06:40:14 -0700 (PDT)
Received: by wiclk2 with SMTP id lk2so58829903wic.1 for <dnsext@ietf.org>; Fri, 11 Sep 2015 06:40:13 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:message-id:to:cc:subject:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=LEEg9f8Zk+K582teAOCRIot09biF5Ru0m9dXzO6mMZA=; b=OkhE+ST12FBw9+4MaTrdhnX5yC6mvje7xrdq/7SgOnTLxMtFJOLrpQSz0gzRO9GZed O49CVE0tJAFdfS5PupIqw1b07DDvkVjaSKxDKxcGghyIs9oZgOjM1mEslWDiXyBSo6kO 7TuH0ryGeZvfn55QLxwTXhIE4VCK8u+PXRY/+LJdlI35QD+01CQ5TtVD7wCT1HlQD1TE 8gplh7qnoZMIkliac4Pn2x66CrupAZMOaPomY3GNzTlAV+2LxEmxrhkVnXdXrkzUIw2n 5oaNMqmO+8KQYBfhHIkvLWf2Rhq+2Q8Mhovv54NgdreduiNVcj5i0JZhq9O3xzz9azbI 5tcw==
X-Gm-Message-State: ALoCoQmCzeX0l18dZmvx7oV6WeifYEDOs9VUmUcMUwpPZYo4aoMU0PkPIZrevxT6irBVi7dEoP2O
X-Received: by 10.180.37.76 with SMTP id w12mr4878387wij.0.1441978813414; Fri, 11 Sep 2015 06:40:13 -0700 (PDT)
Received: from dhcp-162.wlan.no8.be.ucd.ie ([2001:770:13f:1:982e:1026:6ec6:8956]) by smtp.gmail.com with ESMTPSA id pu6sm429404wjc.34.2015.09.11.06.40.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 06:40:12 -0700 (PDT)
From: Niall O'Reilly <niall.oreilly@ucd.ie>
X-Google-Original-From: Niall O'Reilly <Niall.oReilly@ucd.ie>
Date: Fri, 11 Sep 2015 14:40:11 +0100
Message-ID: <m2vbbh2hxg.wl-Niall.oReilly@ucd.ie>
To: Rick van Rein <rick@openfortress.nl>
In-Reply-To: <55F2B79A.3010701@openfortress.nl>
References: <55E868E8.6050504@openfortress.nl> <alpine.LSU.2.00.1509081536450.734@hermes-2.csi.cam.ac.uk> <55F2A5CC.1080409@openfortress.nl> <alpine.LSU.2.00.1509111115410.29599@hermes-2.csi.cam.ac.uk> <55F2B555.4050105@openfortress.nl> <alpine.LSU.2.00.1509111207110.20720@hermes-2.csi.cam.ac.uk> <55F2B79A.3010701@openfortress.nl>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.5 Mule/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/dnsext/gxRgL9YTswpWKfk2W1pSLeY2O0I>
Cc: dnsext@ietf.org
Subject: Re: [dnsext] New RRtype "KREALM" in draft-vanrein-dnstxt-krb1-02.txt
X-BeenThere: dnsext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DNS Extensions working group discussion list <dnsext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsext>, <mailto:dnsext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsext/>
List-Post: <mailto:dnsext@ietf.org>
List-Help: <mailto:dnsext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsext>, <mailto:dnsext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Sep 2015 13:40:21 -0000

On Fri, 11 Sep 2015 12:14:34 +0100,
Rick van Rein wrote:

  Hi, Rick.

> Hi Tony,
> 
> Thanks for thinking along!
> 
> > I was thinking
> >
> > @ KREALM "realm" "EXAMPLE.COM"
> > KREALM "realm" "EXAMPLE.ORG"
> > KREALM "admin" "carl"
> > KREALM "admin" "mary"
> > KREALM "service" "HTTP"
> > KREALM "service" "imap"
> 
> That would make it impossible to express everything that is desired. 
> The level of alternation that you are using here has been reserved for
> independent statements; the combined tag=value statements form a
> cross-product; for example all the realms mentioned combine with all the
> admins mentioned in the same RDATA portion.  If another realm has
> another admin set it will be specified in a separate KREALM.

  Don't you end up with a potentially large but sparse matrix of
  valid tag/value pairs in this model, Rick?

  Would a two-stage representation of the data you need work?
  I'm thinking of normalization and foreign keys.

  Here's an example below.

    ; advertise realms to which $ORIGIN belongs
    ; so that clients can perform discovery
    ; this RRset is the REALM-SET
    @ KREALM "realm" "EXAMPLE.COM"
    @ KREALM "realm" "EXAMPLE.ORG"
    ;
    ; for each realm at $ORIGIN, advertise its attributes
    ;
    ; this RRset is the ATTRIBUTE-SET for realm "EXAMPLE.COM" at $ORIGIN
    EXAMPLE.COM._realm	   KREALM "admin" "carl"
    EXAMPLE.COM._realm	   KREALM "service" "HTTP"
    ;
    ; this RRset is the ATTRIBUTE-SET for realm "EXAMPLE.ORG" at $ORIGIN
    EXAMPLE.ORG._realm	   KREALM "admin" "mary"
    EXAMPLE.ORG._realm	   KREALM "service" "imap"
  
  If the realm isn't really "at" $ORIGIN, a CNAME reference might be
  appropriate.

  If this approach risks string overflow in the owner names, an
  alternative might be to use

    @ KREALM <realm-handle> <realm-name>

  for the REALM-SET, and use the same handle in composing the owner
  name of the ATTRIBUTE-SET, so:

    @ KREALM "r1" "EXAMPLE.COM"
    @ KREALM "r2" "EXAMPLE.ORG"
    r1._realm	KREALM "admin" "carl"
    ; ...
    r2._realm	KREALM "admin" "mary"

  As I write, it occurs to me that it may be more "natural" to assign
  the RDATE fields in the REALM-SET in the reverse order.  That's a
  detail which just needs to be unambiguously specified. 8-)

  This-all seems to keep the option of re-using HINFO as Tony suggested.

  ATB
  Niall