Re: [Captive-portals] Review of draft-ietf-capport-rfc7710bis

"Martin Thomson" <mt@lowentropy.net> Wed, 31 July 2019 03:24 UTC

Return-Path: <mt@lowentropy.net>
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 97A0E1200B8 for <captive-portals@ietfa.amsl.com>; Tue, 30 Jul 2019 20:24:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 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_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=lowentropy.net header.b=hRAgSg6E; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=YKkEbTzX
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 cdgtMILTaY6G for <captive-portals@ietfa.amsl.com>; Tue, 30 Jul 2019 20:24:04 -0700 (PDT)
Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 36B1A12008A for <captive-portals@ietf.org>; Tue, 30 Jul 2019 20:24:04 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 71B09509 for <captive-portals@ietf.org>; Tue, 30 Jul 2019 23:24:03 -0400 (EDT)
Received: from imap2 ([10.202.2.52]) by compute1.internal (MEProxy); Tue, 30 Jul 2019 23:24:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=oukjzYTijPlFo/C2HS6Nm3uHoNuW5XB cON52HUu3Wl0=; b=hRAgSg6EI0j46n7oeDegA/Mg640ctF3zzqrLMUuG5mxNAkw kVo1kwKtkKDG2jRJZqjOKGRLef6vjhnPT6UuAHfSVNaebB4o5YwBnfKZ/hocFX6o jkLBTrQivmY/2W1RoXmHRPNklCmwB5wZjvXdIrLWoa/7knvWz/3EYCRaYORCCgZ6 ZY9ribRmztWblvdTRDvdK2OeNiLoRITrivnC4OfDNQREHmh6OsXXi2huqboKfemm k9zo3CZIL4hEGnzYkcF7sLC71zXTsTzWab4fvLLFlaqeg8e2XudPJ0klhZ3ZEvED x4oJ/1ln2wm6bzriQxD50qck0XlREq50nENwCBg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=oukjzY TijPlFo/C2HS6Nm3uHoNuW5XBcON52HUu3Wl0=; b=YKkEbTzXK8qm+ZjEeKzW0d 0A/XdweJKQaWVasjFdmtLrWXM8WQi1jrgnCME6+c1sCFe9zrK1MEcpwnHDbj8VFz TwFWAOqsona0RkhFjSlO+8002Q/+SIOTFDerhxemiP0A4PAj05Q+ft8WN8cUXbaU vzxj9L1tGzz4IiCuiCvYEvnmrkuhX+k3SVxit3IeJL02AYD67BshaEXFo1Yh0NO7 +d3iyklusbbFWJPNgwjATgeE1XGaOWHwS6VkdiPrfMN8K+9PkJJkdRDYWM39LTuo 9R6Qg4QlJC7mZVWHcp9W+IFFHsJLzeTkqCx1tKtjEsD1A9nV4rLlpCyt/sCIO+qA ==
X-ME-Sender: <xms:0glBXRga1k3qzn0a7-q7m9OAv6Qo6-wP_SHk-XIGhEwO2vg4hk53gQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrleeggdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreertdenucfhrhhomhepfdforghrthhinhcuvfhhohhmshhonhdfuceomhhtsehlohif vghnthhrohhphidrnhgvtheqnecuffhomhgrihhnpehivghtfhdrohhrghenucfrrghrrg hmpehmrghilhhfrhhomhepmhhtsehlohifvghnthhrohhphidrnhgvthenucevlhhushht vghrufhiiigvpedt
X-ME-Proxy: <xmx:0glBXbPzOo7LlSLjbm2Nf0M3ASiSK8A2iN9-xWu0mdxYEr4U1tXzfw> <xmx:0glBXUcde4idV5Cey6k-1YstEENU6iPszxocyI0nEBV3qy8ttlaIog> <xmx:0glBXVyAS-bEWRODs0tb2_qxAAKEZalFDfFcCe1IKNIJr7jS8gOspg> <xmx:0wlBXU_RqnfHO4fuXQBbCnvQXo01yMtLZlto_m69gd-YVyqnBwNzwA>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8A333E00A5; Tue, 30 Jul 2019 23:24:02 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.6-799-g925e343-fmstable-20190729v1
Mime-Version: 1.0
Message-Id: <14eba834-e18a-4324-8baa-3a8b90cdaec4@www.fastmail.com>
In-Reply-To: <CAKxhTx_CngPfs3V8sZ5n0SYbTN4zcu3L_cvGuLpbLJOZYu-1Kg@mail.gmail.com>
References: <CAKD1Yr32DXr8fYHP_x7z9pQWwSchey8zQW11vw02bW9ONEV8Kg@mail.gmail.com> <01ad5bf0-1f60-4dbb-aa83-31d14fce6082@www.fastmail.com> <CAKD1Yr08LmfDhmDLqpR87iQQ4Z61CVpR9BTDeRHobpsvVxFJvA@mail.gmail.com> <CADo9JyW6TmBnr5f0AuSXKnKMXnMxGhMkgYbGQ1WYOQjSMefy=w@mail.gmail.com> <CAKD1Yr1Zo0NQod=p4ZqT6fJYJ=Xqh1q8eJT2+ich+p7Jmg1WiA@mail.gmail.com> <CADo9JyX1T8AnxirXLfGdcJzmjvy5_UGJktnbYByAuO7H++y8uA@mail.gmail.com> <CAKD1Yr0C_KEUpGUC-wbAV-ufG_VpNposecmzNQU5rEXaCeSZNQ@mail.gmail.com> <26405.1564182227@dooku.sandelman.ca> <CAKxhTx_CngPfs3V8sZ5n0SYbTN4zcu3L_cvGuLpbLJOZYu-1Kg@mail.gmail.com>
Date: Wed, 31 Jul 2019 13:24:03 +1000
From: Martin Thomson <mt@lowentropy.net>
To: captive-portals@ietf.org
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/captive-portals/XOojTBZM6mPN1hAm1Ixhys0grOM>
Subject: Re: [Captive-portals] Review of draft-ietf-capport-rfc7710bis
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, 31 Jul 2019 03:24:06 -0000

This is one of the costs of this architecture.  If the external system (portal HTML, etc...) needs access to identifiers, then the API endpoint will have to decorate the URLs it provides.  That might mean having the API endpoint inside the network, where it can see source IP or BSSID or whatever is being used for identification.  

An external service won't be able to validate any identifier it receives in this way, so you might want to make the decoration a little more complex than a simple addition of `?ip=192.0.2.3`.  Of course, the worst I can think of (offhand) is that someone could pay for my network access.

On Mon, Jul 29, 2019, at 13:51, Remi NGUYEN VAN wrote:
> So to summarize, we've got a problem where the WLAN controller has some 
> rules to know who is blocked / allowed (probably based on mac address 
> ?), and can advertise a single API URL through DHCP / RAs / 
> Link-Relation and generate redirects, but does not have capabilities to 
> serve login pages or the API: this is handled by another box upstream 
> which has more capabilities like handling payment pages etc, and holds 
> the SSL certs. Because the API uses HTTPS (contrary to lots of login 
> pages), the WLAN controller can't easily insert identity of the 
> requestor in the request and the API has no way to know who it's 
> replying to.
> 
> Since we can't advertise different addresses for different clients in 
> RAs, how about having the client add a session identifier in their API 
> requests ? Having the client add a mac address in an HTTP request 
> header field would be a solution. Many devices are using random 
> per-SSID mac addresses now, so this sounds like a reasonable identifier 
> for the device to give to the API server (which could get it anyway 
> through some complicated setup).. It would be possible for clients to 
> make requests for API data of other clients (assuming they know their 
> mac address), but that's already possible by spoofing the address 
> anyway.
> 
> Cheers,
> 
> Remi
> 
> 
> On Sat, Jul 27, 2019 at 8:04 AM Michael Richardson 
> <mcr+ietf@sandelman.ca <mailto:mcr%2Bietf@sandelman.ca>> wrote:
> > 
> >  Lorenzo Colitti <lorenzo=40google.com@dmarc.ietf.org> wrote:
> >  > Is there a problem with saying that the portal server should identify the
> >  > device by IP address?
> > 
> >  Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org> wrote:
> >  > To that end, any enforcement of other traffic (such as normal web page
> >  > loading) will not be carrying any session identifier, so only signals
> >  > that are already present in the packets, such as the IP address, are
> >  > effectively useful here.
> > 
> >  It's not obvious to me that you are talking about the same thing!
> >  The portal server *could* use IP address as the key by which to identify
> >  the device to the Captive Portal Enforcer.
> > 
> >  That requires that the access to the Captive Portal Server to always
> >  be on the same side of a NAT44 as the client, and I don't think that is
> >  realistic given how these services are outsourced.
> > 
> >  (In architecture-04, we have "Captive Portal Enforcement", which seems
> >  to be an activity, while the description is about a thing. So I think
> >  that either the word "Point" should be added, or Enforcement->Enforcer)
> > 
> >  The Captive Portal Enforcer SHOULD enable traffic based upon the mapped
> >  L2 address, otherwise, there would have to be a new portal session for
> >  IPv4 and IPv6, and for each new IPv6 temporary/privacy address.
> >  I don't think we want that. It would also, I think, force the portal
> >  server to speak both v4 and v6.
> > 
> >  The communication between Captive Portal Server and Captive Portal Enforcer
> >  COULD identify the client by L3 address, but I wouldn't want to build things
> >  that way, because it would result in a poor experience for returning users,
> >  such as sleepy phones, or hotel guests that might leave the hotel and then
> >  return later in the day, and expect their 24hr pass to just work, despite
> >  DHCP leases being much shorter.
> > 
> >  --
> >  Michael Richardson <mcr+IETF@sandelman.ca <mailto:mcr%2BIETF@sandelman.ca>>, Sandelman Software Works
> >  -= IPv6 IoT consulting =-
> > 
> > 
> > 
> >  _______________________________________________
> >  Captive-portals mailing list
> > Captive-portals@ietf.org
> > https://www.ietf.org/mailman/listinfo/captive-portals
> _______________________________________________
> Captive-portals mailing list
> Captive-portals@ietf.org
> https://www.ietf.org/mailman/listinfo/captive-portals
> 
> Attachments:
> * smime.p7s