
From nobody Fri Mar 22 10:00:29 2019
Return-Path: <nico@cryptonector.com>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E66151312C6 for <art@ietfa.amsl.com>; Fri, 22 Mar 2019 10:00:28 -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, SPF_PASS=-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 hCN01tREo0aU for <art@ietfa.amsl.com>; Fri, 22 Mar 2019 10:00:26 -0700 (PDT)
Received: from golden.birch.relay.mailchannels.net (golden.birch.relay.mailchannels.net [23.83.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7F6F0131297 for <art@ietf.org>; Fri, 22 Mar 2019 10:00:26 -0700 (PDT)
X-Sender-Id: dreamhost|x-authsender|nico@cryptonector.com
Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A21435C522B; Fri, 22 Mar 2019 17:00:23 +0000 (UTC)
Received: from pdx1-sub0-mail-a37.g.dreamhost.com (unknown [100.96.28.55]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 371255C5340; Fri, 22 Mar 2019 17:00:23 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|nico@cryptonector.com
Received: from pdx1-sub0-mail-a37.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Fri, 22 Mar 2019 17:00:23 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|nico@cryptonector.com
X-MailChannels-Auth-Id: dreamhost
X-Thoughtful-Rock: 3242961e1223c49d_1553274023430_3479663806
X-MC-Loop-Signature: 1553274023430:4118814747
X-MC-Ingress-Time: 1553274023430
Received: from pdx1-sub0-mail-a37.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a37.g.dreamhost.com (Postfix) with ESMTP id A67BA8076C; Fri, 22 Mar 2019 10:00:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:subject:message-id:mime-version:content-type; s= cryptonector.com; bh=g1eYqrhQnV/QccGh1zi2YK2zIlo=; b=yQ8k/8CuFiZ JlmesucNs6eNf2qMfLPdKEqjdHONuHb0/Vv0pg/u26wSuynMgI1ZbaSwNH8HR8IS v6ZfvfkmH7nn0kQ+faFFANMFopszjOJuIiTF2h0TTgZAmJG7rcgakXhgspfoP25X H/5lUyxwMU8Vz97Yv75ctW11dg5/RsSI=
Received: from localhost (unknown [24.28.108.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by pdx1-sub0-mail-a37.g.dreamhost.com (Postfix) with ESMTPSA id E97E77F570; Fri, 22 Mar 2019 10:00:19 -0700 (PDT)
Date: Fri, 22 Mar 2019 12:00:17 -0500
X-DH-BACKEND: pdx1-sub0-mail-a37
From: Nico Williams <nico@cryptonector.com>
To: art@ietf.org
Message-ID: <20190322170015.GN4211@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.9.4 (2018-02-28)
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: 0
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrjedugdeljecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggufgesthdtredttdervdenucfhrhhomheppfhitghoucghihhllhhirghmshcuoehnihgtohestghrhihpthhonhgvtghtohhrrdgtohhmqeenucffohhmrghinhepmhhitghrohhsohhfthdrtghomhenucfkphepvdegrddvkedruddtkedrudekfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghloheplhhotggrlhhhohhsthdpihhnvghtpedvgedrvdekrddutdekrddukeefpdhrvghtuhhrnhdqphgrthhhpefpihgtohcuhghilhhlihgrmhhsuceonhhitghosegtrhihphhtohhnvggtthhorhdrtghomheqpdhmrghilhhfrhhomhepnhhitghosegtrhihphhtohhnvggtthhorhdrtghomhdpnhhrtghpthhtohepnhhitghosegtrhihphhtohhnvggtthhorhdrtghomhenucevlhhushhtvghrufhiiigvpedt
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/T4nP5Rv91yuE0ew8p0vJh2fX1IM>
Subject: [art] HTTP 3xx XOR 401
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Mar 2019 17:00:29 -0000

The rise of 3xx, redirect-based HTTP authentication/authorization
schemes has caused a problem: 3xx results are mutually-exclusive with
401-based authentication schemes.

This means: the server gets to choose {SAML, OAuth, ...} xor {API keys,
Negotiate (Kerberos, basically), Basic, SCRAM, ...}, but cannot "offer"
both and let the user-agent pick one.

The user-agent can "pre-flight" some HTTP authentication methods (API
keys, Negotiate/Kerberos) but not others (e.g., SCRAM), and other than
that.  Other than that, the only other way the user-agent can influence
the server's choice is via the User-Agent: header...

If you have a user-agent that cannot do OAuth (e.g., a non-browser
applications), then you have a problem: you have to know a priori to
pre-flight the API keys / Kerberos / whatever, or the server has to
decide which of 3xx or 401 to respond with based on... the User-Agent:
header value.

Oof.  Just sayin'.

Fixing this may require a time machine -- one that can go back in time,
and I don't have access to one.  Here's how I would fix this if I had
one:

 - Blend 3xx with 401.  E.g., 3xx responses could carry
   WWW-Authenticate: headers to indicate "chase the redirect OR
   authenticate".  Or 401s could carry an optional redirect URI, perhaps
   as an authentication method, perhaps with a header other than
   WWW-Authenticate:.

   This way user-agents can choose based on _their_ capabilities.

 - Let 3xx redirects from authorization headers carry Authorization:
   headers that user-agents can/must then add to the next request when
   chasing the referral.

   This way a very dumb user-agent that can use HTTP authentication or
   TLS user certificates to authenticate to an authorization server
   could just chase referrals to get authorized at the relying party.

There are user-agents and servers that support the second fix, actually!
The Windows PowerShell Invoke-WebRequest command-let has a
-PreserveAuthorizationOnRedirect option described as:

|   Indicates the cmdlet should preserve the Authorization header, when
|   present, across redirections.
|
|   By default, the cmdlet strips the Authorization header before redirecting.
|   Specifying this parameter disables this logic for cases where the header
|   needs to be sent to the redirection location.

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-6

I suppose that implies that there are servers that do include an
Authorization header in 3xx replies, though I don't know which those
are.

Without a time machine... we can still do the above, but perhaps also:

 - Add a request header by which user-agents can idicate their
   authentication capabilities, which servers could use to choose
   between 3xx and 401.

   Since borwsers could quickly start supporting this, servers could
   default to 401 in the absence of this header sometime soon and end up
   doing the right thing 95% of the time.

Nico
-- 


From nobody Tue Mar 26 05:26:52 2019
Return-Path: <linuxwolf+ietf@outer-planes.net>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C93D412000F for <art@ietfa.amsl.com>; Tue, 26 Mar 2019 05:26:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=outer-planes-net.20150623.gappssmtp.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 IP0g3x1Er6PP for <art@ietfa.amsl.com>; Tue, 26 Mar 2019 05:26:49 -0700 (PDT)
Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 E53AD1202DB for <art@ietf.org>; Tue, 26 Mar 2019 05:26:48 -0700 (PDT)
Received: by mail-wm1-x32c.google.com with SMTP id v14so12700716wmf.2 for <art@ietf.org>; Tue, 26 Mar 2019 05:26:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outer-planes-net.20150623.gappssmtp.com; s=20150623; h=sender:subject:to:cc:references:from:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TLynxHk7/hqoL82h89aUJds/A13y64dbVsZJHVOlLAQ=; b=zksYu9bQnovfLFAA5qCTo2q+IyWfsmUc+ZQ2NUl7RU3Q5HM/THgxCynwpnLP/zo/hm yW5OHzoTcaq7rr67yEeisAuRqqiS/djmuNMYvNa8jO5DVSJ/24G+Rm/zEUj0agszOA8w xTOei8NX965GqPxuigNAQvSmGyOAbTVZsoOdkDah0gMBUt79ik+NCD7BcJ+ExFXsGACD lRSfwjk71fENbq5eE7eGvORVimhNEVSSg9WAxa73CmTNmDdM+0Kd1Jgy1mx+sXfCOHBy nUnGxX1j+QXxsK4ts9tTfKdtCQIvQps9/B+v/VHc5oUCC+fQQpX8ZrR//fsH0LQnkajw St8Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=TLynxHk7/hqoL82h89aUJds/A13y64dbVsZJHVOlLAQ=; b=JU2Y7VKw7w00GK5Yh40UiQe/VYElQuiSAkyQus+qQI4sdgNUR5uRfxMVBj4mYgorYZ t91n2ENeO/2PN3Kz3smYKT9Uct6OIhnV8nFJD7TDp6RlbNVIHkLUH7CqB+GMyw2Ixsgl 1O2mhasGs180GVjaIYgEhoQsax5BZh9ybB02YuXQXUqKpJmGgkOu9cwVnF/dZJCigJkX cfDReueFzUARxdi3X4l+RPWJlQJNcmRBg9zB/PKePDiLykz0XX094rveAOoiTXMCCF9t krkXwqALcVN/FUAjupsJfot3LhcfPo3z3roB0XrBg3DO6OVCXf+RpWTA7BHXM9gz6utI A3wQ==
X-Gm-Message-State: APjAAAW7jsjQfOMxDsOmsukrggFsiQyGABG+k36PO2wTgr7dEMD94Yge kE/XZe0YNWkW+SO0s2HiNEjoTA==
X-Google-Smtp-Source: APXvYqzafSYBJspzjvKUjmsU0SeVq9P5Q8oejznvIp/Ukr2RtjX/DmiqcT0xvW2UpoEFhX1ik5AbvQ==
X-Received: by 2002:a1c:a7c5:: with SMTP id q188mr10080751wme.126.1553603207391;  Tue, 26 Mar 2019 05:26:47 -0700 (PDT)
Received: from dhcp-965f.meeting.ietf.org ([2001:67c:1232:144:81e4:e6af:4e8:16c4]) by smtp.gmail.com with ESMTPSA id e193sm43722470wmg.18.2019.03.26.05.26.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 05:26:46 -0700 (PDT)
Sender: Matthew Miller <linuxwolf@outer-planes.net>
To: Julian Reschke <julian.reschke@gmx.de>, Mary Barnes <mary.ietf.barnes@gmail.com>, IETF ART Mailing List <art@ietf.org>
Cc: Barry Leiba <barryleiba@computer.org>, draft-ietf-dispatch-javascript-mjs@ietf.org, Murray Kucherawy <superuser@gmail.com>
References: <CAHBDyN5kB=yi_eFty2hRO4LpadKrSSY0KY-BAS2447Y84pPoWg@mail.gmail.com> <CAHBDyN6zTBR4yXnSeMMccALPcNVjgtHpaz3Pz4ngm=PXUOLd5Q@mail.gmail.com> <daea663e-eb61-b8b8-a3f2-c8d381750fc4@gmx.de>
From: "Matthew A. Miller" <linuxwolf+ietf@outer-planes.net>
Openpgp: preference=signencrypt
Autocrypt: addr=linuxwolf+ietf@outer-planes.net; prefer-encrypt=mutual; keydata= mQENBFJoAooBCADQmEtpbpY/4wTeKgZIuyG7HkxIFgiUeqOvtiBKj/pCA73d7Q5hCvQdGcKJ 6uZsYz3Il9oKoKFxVt90iEXspbE39g6ek19e6RsB4j0Q10l4QvH+EqeD760gs0H2yf/eYj9i uk9/VY6axdQlPsmid1zoQgCNjSM7X4/K26WGMs03sbXJpKdoonelzIlJSNfzi0q546iplo72 D2cCm9BriMkQvcGnsm4B9eBIBn3GKmVx1tsmPNeNTyun2DvaLnrYxbA0Ivo1DzZReds9NZ25 uROI/+b+lcg9/kmHzhK+q8NMQCFWmqpS/lZRKxVBSijKGpGr5h8VLVf5iURHtwG+B/QxABEB AAG0M01hdHRoZXcgQS4gTWlsbGVyIDxsaW51eHdvbGYraWV0ZkBvdXRlci1wbGFuZXMubmV0 PokBPQQTAQoAJwUCWKsJ1AIbAwUJC8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4erREPMD659h2lACPCXjPW/6ucnv0/cdPF8V2JNMCT0yPJVCSUfFLTrtyYtiRI 6S52cI4eEOZIXCQp30TA4E27O2mMLOYzlKA5P5T+Icf4gz8e/puNUKIBDlY6KF7p
Message-ID: <091d4147-0140-acd7-2d39-3148c412f04d@outer-planes.net>
Date: Tue, 26 Mar 2019 13:26:45 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.0
MIME-Version: 1.0
In-Reply-To: <daea663e-eb61-b8b8-a3f2-c8d381750fc4@gmx.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/K11IZXwsHf1i2NOAne67VmnfwsU>
Subject: Re: [art] Fwd: WGLC: draft-ietf-dispatch-javascript-mjs-02.txt
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Mar 2019 12:26:51 -0000

My apologies for the extreme lateness of this reply.  Thank you for your
comments, Julian; responding in-line.


> 1) we have a 21 page spec that *updates*, not *obsoletes* a 13 page spec
> - can we please get a stand-alone spec obsoleting the old spec instead?
> 

I personally I don't think there is value in having two documents.
However, I can see value in this draft obsoleting RFC4329 if the WG agrees.

> 2) for all the legacy type registrations, it would be *much* better to
> have a table that lists the differences between these, and just a single
> template for the common parts.
> 

We tried to be clear what the substantive changes are in the IANA
Considerations lede.  I am hesitant to add more complexity to IANA, and
a table to me seems more complicated than this (and this is admittedly
complicated).  For what it's worth, I asked Murray Kucherawy before
drafting this response, who found this workable on first glance.


- m&m

Matthew A. Miller

