Re: HTTP Unprompted Authentication

David Schinazi <dschinazi.ietf@gmail.com> Tue, 07 February 2023 01:33 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CB3B3C140C20 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 6 Feb 2023 17:33:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.047
X-Spam-Level:
X-Spam-Status: No, score=-5.047 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.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JyQ7ODem5x8H for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 6 Feb 2023 17:33:30 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ECBE8C140C22 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 6 Feb 2023 17:33:29 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1pPCow-00A0Of-6f for ietf-http-wg-dist@listhub.w3.org; Tue, 07 Feb 2023 01:30:54 +0000
Resent-Date: Tue, 07 Feb 2023 01:30:54 +0000
Resent-Message-Id: <E1pPCow-00A0Of-6f@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <dschinazi.ietf@gmail.com>) id 1pPCou-00A0Ng-CV for ietf-http-wg@listhub.w3.org; Tue, 07 Feb 2023 01:30:52 +0000
Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <dschinazi.ietf@gmail.com>) id 1pPCot-003lqx-BF for ietf-http-wg@w3.org; Tue, 07 Feb 2023 01:30:52 +0000
Received: by mail-ej1-x62b.google.com with SMTP id ml19so39574431ejb.0 for <ietf-http-wg@w3.org>; Mon, 06 Feb 2023 17:30:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DPVqCH2/0Tw3zkQ6IZL7fPRAQhQlm7FggPOdrSATh64=; b=KPyJ7CxWu9A7qXp79BZ8CeSSCWRTpKjz7FBeBASXRTQsgJXYabTfjR1dLJLxmmOPDi R3y0kji2LkKYvh72fKE5CpBYaBEZcpoU3OH3VFQBEcyFfO8rZiBCLi6mBvRuHa5vQa43 lO4/KlwOI4gupfWWIhHTe9aRiG+yB1e9A/VMGUGXzEBVe6WKS6i94H7csWN8xuRHeCMx fUj/zt7BFRL2eof7levZWDV3l3qkBFFeQMlSyYxLBjhIwpS97gYTbb9hLKYIGS0uDQKw mlejbRSsrG8hfzU46BjeeUuDzO4fAbOc+hQD/fIk/erGsOWo6Phj7OK4WNaR4XqaoUIL wsGA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DPVqCH2/0Tw3zkQ6IZL7fPRAQhQlm7FggPOdrSATh64=; b=OTWhmYvmSGCcvt/xVneoZcIURgJPHDR4XGhtRZtMc9ZidGlFYnhVNAi+gMzzQFgfHm S4KaAMynV6u8R9tf/G7Gb2XvMxtURtNcBgGTA1eiUXxef6iH/GLaozq3P5RBNUc4A8N3 m3IBT5+kcAwrMO9nAeEyJUEzR61ckyNj0RYe4vIwNtkwXKvQVQA8PBwtprrVkx78VYXg uhDDG9uK/rUEti7w22B6LUw3plx+sQrgcoW/bvDpu+9HyhZOgilo9cDmh61N6Kj8Bl67 TELip81SnJVRQakdqoTo4daTycK/kCyAtc3qHQgINUpGMY695H/xiOzpKJtzXqR0LIrt EunQ==
X-Gm-Message-State: AO0yUKWq0KThxtU3sdHCDY30Ydy2JXl4hwsyr5sJQBd9t/wCZSf+N1EX bQ2BMOJx7Li4wOP+8n86YKaTQgH0nPTeuKEBUm2MqjCh/CY=
X-Google-Smtp-Source: AK7set9G1K3jRqpYhz1NaFrdwwpYysQRtWBZrXfxLyZRRrb7Lyf19elC/t8jlgad//7Ckn/6faHAIpyezi7U/WTQ9Z0=
X-Received: by 2002:a17:906:8557:b0:88c:7ac3:30d0 with SMTP id h23-20020a170906855700b0088c7ac330d0mr455387ejy.5.1675733439215; Mon, 06 Feb 2023 17:30:39 -0800 (PST)
MIME-Version: 1.0
References: <166568682708.62670.1401609977193260774@ietfa.amsl.com> <CAPDSy+4KzCqEg-Nt5geb5n87KbJuD=v8pRpRWTB6NsOwr=Bh5g@mail.gmail.com> <Y0hvwiN0qspglhnq@LK-Perkele-VII2.locald> <CACcvr=kPG=f2PEx4yhhd5dAGEy6uZNOKQBk7v=cjfK8=azB4OA@mail.gmail.com> <CAPDSy+44+1QtOecbtbZPWNoOapBS=g2MOYH+4W5L5KhW0YA4wA@mail.gmail.com> <CAPDSy+40ymp3Qje9QNhNgNpT-9-0qVqE4zrjQhvmHrsgyS5dog@mail.gmail.com> <Y99+HqYDBWxNCAmQ@LK-Perkele-VII2.locald>
In-Reply-To: <Y99+HqYDBWxNCAmQ@LK-Perkele-VII2.locald>
From: David Schinazi <dschinazi.ietf@gmail.com>
Date: Mon, 06 Feb 2023 17:30:28 -0800
Message-ID: <CAPDSy+7Xmp5Fx=kQx3OsoDumGJnfh-Meb-yw_ddvYNog3x0JZA@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="00000000000061fdc205f4121848"
Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=dschinazi.ietf@gmail.com; helo=mail-ej1-x62b.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=dschinazi.ietf@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1pPCot-003lqx-BF e1ce87fa1e566d12817c9ce51f281416
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP Unprompted Authentication
Archived-At: <https://www.w3.org/mid/CAPDSy+7Xmp5Fx=kQx3OsoDumGJnfh-Meb-yw_ddvYNog3x0JZA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/50685
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Thanks Ilari for the comments. I agree with your points and think we can
resolve them in a pretty straightforward way. To make sure we don't lose
them, I've filed them as individual GitHub issues <
https://github.com/DavidSchinazi/draft-schinazi-httpbis-transport-auth/issues>.
We'll look into addressing them once we have a decision from the WG whether
there is interest in adoption.

David

On Sun, Feb 5, 2023 at 2:01 AM Ilari Liusvaara <ilariliusvaara@welho.com>
wrote:

> On Fri, Feb 03, 2023 at 04:30:16PM -0800, David Schinazi wrote:
> > Hi HTTP enthusiasts,
> >
> > When I presented HTTP unprompted authentication at the last IETF,
> > there appeared to be interest in the room but Ben raised some concerns.
> > The chairs asked me to resolve those before asking about adoption.
> > Ben and I met and were able to resolve them by changing the document
> > to reuse the HTTP Authentication Schemes registry instead of defining
> > a new one. This change is visible in revision -01:
> >
> https://www.ietf.org/archive/id/draft-schinazi-httpbis-unprompted-auth-01.html
> > and a diff is here:
> >
> https://author-tools.ietf.org/iddiff?url2=draft-schinazi-httpbis-unprompted-auth-01
> >
> > Chairs, I would now like to ask for an adoption call if you think that's
> a
> > good idea.
>
> - In section 2, I see this text:
> ------------------------------------------------------------------------
> This includes any use of HTTP over TLS as typically used for HTTP/2
> [HTTP/2], or HTTP/3 [HTTP/3] where the transport protocol uses TLS as
> its authentication and key exchange mechanism [QUIC-TLS].
>
> The user agent leverages a TLS keying material exporter [KEY-EXPORT] to
> generate a nonce which can be signed using the user's key.
> ------------------------------------------------------------------------
>
> I think implying that it works for any TLS is rather bad, even if there
> was security considerations narrowing the scope (which there do not seem
> to be).
>
> The problem is that the original TLS 1.2 keying material exporter is
> flawed in a way that it can not be safely used for authentication. Now,
> either TLS 1.3 or the Extended Master Secret extension fixes this flaw.
>
> The TLS as used in HTTP/3 is TLS 1.3, so it will be okay. But TLS as
> used in HTTP/2 can be TLS 1.2 without EMS, which is not okay. And
> then there is HTTP/1.1, which has no TLS requirements at all.
>
>
> - The "TLS SignatureAlgorithm" and "TLS HashAlgorithm" registeries
> have been deprecated. A solution would be to just remove the h= and
> s= parameters: The server could look those up from the key (precludes
> variable-hash RSA keys, but I do not think those are actually
> important).
>
>
> - The signature/HMAC is taken over raw nonce, which I do think is a
> good idea. A solution would be using the TLS 1.3 signature format
> with some specific label.
>
>
> - In section 6, it is said that intermediaries will validate the
> authentication themselves. It would be possible for intermediary to
> export the nonces (which are not sensitive), and send those to the
> back-end (I have done PoC implementation of this).
>
>
>
>
> -Ilari
>
>