Re: [Captive-portals] Discovering captive portal API URL via DNS?

Erik Kline <ek@loon.com> Wed, 04 September 2019 01:18 UTC

Return-Path: <ek@google.com>
X-Original-To: captive-portals@ietfa.amsl.com
Delivered-To: captive-portals@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5DCA012009C for <captive-portals@ietfa.amsl.com>; Tue, 3 Sep 2019 18:18:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.149
X-Spam-Level:
X-Spam-Status: No, score=-9.149 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, HTTP_ESCAPED_HOST=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_SPF_WL=-7.5] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=loon.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 45a5ai5bXRVT for <captive-portals@ietfa.amsl.com>; Tue, 3 Sep 2019 18:18:11 -0700 (PDT)
Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 F04ED120098 for <captive-portals@ietf.org>; Tue, 3 Sep 2019 18:18:10 -0700 (PDT)
Received: by mail-wr1-x435.google.com with SMTP id l11so10534218wrx.5 for <captive-portals@ietf.org>; Tue, 03 Sep 2019 18:18:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=loon.com; s=google; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=DIIM1/TYPZtqvF8jN6a6+xoHz0MM1GoYO5/mEcJP4WU=; b=PsJ/uJHCZkVC0R8kOnyMf83VxG5WCyMfJQZg4MzKg2TZIrOH2eJwrVD1NAFYaxrgfu P5BtjA7pBC+4wWAiCkie5icpMUO+UZpIwH76oColORDD/0qmSNUsAsVVG3Koh4uWPNOL XOZwe+MJKZuvknZuU13HjbEhKPH8UV9xAi6yg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=DIIM1/TYPZtqvF8jN6a6+xoHz0MM1GoYO5/mEcJP4WU=; b=C/ZaQ6+/ztmByBsN8E0OJLb/rbiC6X7HE9CJKLWYPu202QLqRVaAisqlFb5ytop3l2 CWJDd/DObwmayvJse6piq6aKVtgFP/yU3UmilmMbKl59dyQyy1AE568bsDfgMYLyJnuo XgKx6wRrCjUSCLmnUgXpSJsQvEuk/WYTsCiyRWjZ8+0UelB79uFOn+R4tu4Xm/iMHIuj VPHlwO5bJ2vjosOr3yXdncpvZVcLq9tpefR2xrB4PtyJK6qwTZhs4fjrqum5GIGrxm0v RHT+tXsUK0dlK/8tghfcF7x/hwWbdX9Ai7ekm4BuwjS5YjxOBjughYfO4CBytQi5Ebb5 e1dg==
X-Gm-Message-State: APjAAAXuO3PjmbLo/9bUGtp69Hx85RwNWLlB8fhDUb5rU+ryjqVL+Pz+ THJ+Ai298S3UIhJfdjqIoDpM8Xl5sNqvhsAXaGmOVw==
X-Google-Smtp-Source: APXvYqy8YlBj+tyEwvkldXQvqPfYJNJDNiAtB+byH1D30JInTNno8Q1p8Cn2hEGAQ2W18pDl5SnLAG9fdWZ0gdH4bJc=
X-Received: by 2002:adf:ff8e:: with SMTP id j14mr45300045wrr.141.1567559889126; Tue, 03 Sep 2019 18:18:09 -0700 (PDT)
MIME-Version: 1.0
References: <CAKD1Yr1mR57OsOzDtjM=7YCV_R6zFF9WPxqA-XrWsuJWv+VTag@mail.gmail.com> <99C952E5-7D05-4F9E-A280-F422DF39FE1D@hpe.com> <CAAedzxoJpCavhkzM01Fekwv_A-n6VwfcM7Z37WdPdEKk77expQ@mail.gmail.com> <CAKD1Yr09m-EVBhED6AMgDiTxwOr=n2wwc9Mnquf+5E6ce7DvTA@mail.gmail.com>
In-Reply-To: <CAKD1Yr09m-EVBhED6AMgDiTxwOr=n2wwc9Mnquf+5E6ce7DvTA@mail.gmail.com>
Reply-To: ek@loon.com
From: Erik Kline <ek@loon.com>
Date: Tue, 03 Sep 2019 18:17:57 -0700
Message-ID: <CAAedzxo6U+Dkx45d3Boq8WUoDXUJY1_0g3S4y7WtWu5zGHwYjQ@mail.gmail.com>
To: Lorenzo Colitti <lorenzo@google.com>
Cc: "Cappalli, Tim (Aruba Security)" <timc@hpe.com>, "captive-portals@ietf.org" <captive-portals@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000005b5ebe0591affaac"
Archived-At: <https://mailarchive.ietf.org/arch/msg/captive-portals/5t27x4B_77i0EgsS4iznkRLNOhc>
Subject: Re: [Captive-portals] Discovering captive portal API URL via DNS?
X-BeenThere: captive-portals@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of issues related to captive portals <captive-portals.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/captive-portals>, <mailto:captive-portals-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/captive-portals/>
List-Post: <mailto:captive-portals@ietf.org>
List-Help: <mailto:captive-portals-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/captive-portals>, <mailto:captive-portals-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Sep 2019 01:18:13 -0000

That's not strictly true (or it needn't be strictly true).

The text in #section-3 as worded allows for a portal that lets the
clear-text query through but still adds the API link rel into the
response.  If the text somehow doesn't allow this, we could make it more
explicit.

If there are 2 equally good ways to do this (DNS and link relation) then it
does, I grant, seem like it would be worth the time to see if the group
could scope it back down to one.

On Tue, 3 Sep 2019 at 18:08, Lorenzo Colitti <lorenzo@google.com> wrote:

> If we have a way to discover the portal via DNS, then maybe we don't need
> <link rel> at all? The problem with <link rel> is that it cannot be used
> once the portal is open, so if the device logs in, and then disconnects and
> reconnects, it doesn't work.
>
> On Wed, Sep 4, 2019 at 10:05 AM Erik Kline <ek@loon.com> wrote:
>
>> Chair hat off, co-author hat on.
>>
>> We can certain craft some text to round out
>> https://tools.ietf.org/html/draft-ietf-capport-rfc7710bis-00#section-4
>> when the time comes..  Certainly DHCP/RA would retain highest precedence.
>>
>> RFC 7553 URI records would obviate the inevitable discussion about the
>> merits of .well-known (I know nothing about .well-known/ except that it
>> tends to bring up some (.)well-known responses).
>>
>> Where would you slot DNS results relative to link relation in an HTTP
>> intercept/redirect?
>>
>> On Tue, 3 Sep 2019 at 17:32, Cappalli, Tim (Aruba Security) <timc@hpe.com>
>> wrote:
>>
>>> I like that idea, combined with well known. Ex:
>>> https://<targetofcname>/.well-known/capport-api/xyz
>>>
>>>
>>>
>>> Ideally there would be some standardized precedence order as there are
>>> different cases for each of these. An example would be a common DNS a
>>> service that doesn’t have views-like functionality so the ability to return
>>> a different value based on the source IP/subnet may not be possible. In
>>> this case, the operator may have control of DHCP and could use 7710.
>>>
>>>
>>>
>>> Tim
>>>
>>>
>>>
>>>
>>>
>>> *Tim Cappalli* *|* Identity & Policy Architect *|* Aruba Security
>>> <https://www.arubanetworks.com/products/security/> *|* @timcappalli
>>> <https://twitter.com/timcappalli>
>>>
>>>
>>>
>>> *From: *Captive-portals <captive-portals-bounces@ietf.org> on behalf of
>>> Lorenzo Colitti <lorenzo=40google.com@dmarc.ietf.org>
>>> *Date: *Tuesday, September 3, 2019 at 4:45 PM
>>> *To: *"captive-portals@ietf.org" <captive-portals@ietf.org>
>>> *Subject: *[Captive-portals] Discovering captive portal API URL via DNS?
>>>
>>>
>>>
>>> All,
>>>
>>>
>>>
>>> During discussions with captive portal operators about implementing the
>>> capport API, one of the stumbling blocks that keeps coming up is that the
>>> captive portal operator does not always control the DHCP configuration and
>>> thus cannot easily use RFC7710.
>>>
>>>
>>>
>>> The WG has previously rejected the option of using a well-known DNS name
>>> to discover the URL, because the API itself requires TLS, and without a
>>> hostname it is not possible (or at least not easy) to validate the server.
>>> However, what if the client did a CNAME query for capport.arpa (or
>>> equivalent other local-only, non-DNSSEC-signed name), got back a CNAME for
>>> the real server, and then assumed that the API server was
>>> https://<targetofcname>/capport-api ?
>>>
>>>
>>>
>>> Alternatively, Erik and Warren suggest RFC 7553. In this scheme the
>>> client would do a URI lookup for "capport.arpa" or equivalent, and would
>>> take the result of that URL as the API endpoint.
>>>
>>>
>>>
>>> Thoughts?
>>>
>>>
>>>
>>> Regards,
>>>
>>> Lorenzo
>>> _______________________________________________
>>> Captive-portals mailing list
>>> Captive-portals@ietf.org
>>> https://www.ietf.org/mailman/listinfo/captive-portals
>>>
>>