Re: [OAUTH-WG] MAC: Cookie name or value as MAC key id

"Manger, James H" <James.H.Manger@team.telstra.com> Tue, 14 June 2011 02:17 UTC

Return-Path: <James.H.Manger@team.telstra.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6BD2C21F866B for <oauth@ietfa.amsl.com>; Mon, 13 Jun 2011 19:17:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.901
X-Spam-Level:
X-Spam-Status: No, score=-0.901 tagged_above=-999 required=5 tests=[AWL=0.001, BAYES_00=-2.599, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QlnqfjCJkPap for <oauth@ietfa.amsl.com>; Mon, 13 Jun 2011 19:17:25 -0700 (PDT)
Received: from ipxano.tcif.telstra.com.au (ipxano.tcif.telstra.com.au [203.35.82.200]) by ietfa.amsl.com (Postfix) with ESMTP id AA7D221F866A for <oauth@ietf.org>; Mon, 13 Jun 2011 19:17:24 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.65,361,1304258400"; d="scan'208";a="39993242"
Received: from unknown (HELO ipcani.tcif.telstra.com.au) ([10.97.216.200]) by ipoani.tcif.telstra.com.au with ESMTP; 14 Jun 2011 12:17:23 +1000
X-IronPort-AV: E=McAfee;i="5400,1158,6376"; a="29384224"
Received: from wsmsg3754.srv.dir.telstra.com ([172.49.40.198]) by ipcani.tcif.telstra.com.au with ESMTP; 14 Jun 2011 12:17:23 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3754.srv.dir.telstra.com ([172.49.40.198]) with mapi; Tue, 14 Jun 2011 12:17:23 +1000
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Adam Barth <ietf@adambarth.com>
Date: Tue, 14 Jun 2011 12:17:21 +1000
Thread-Topic: [OAUTH-WG] MAC: Cookie name or value as MAC key id
Thread-Index: AcwqNDdszRTrQX2dSgSHOuu0iDfH0gAAFWUw
Message-ID: <255B9BB34FB7D647A506DC292726F6E112867EF000@WSMSG3153V.srv.dir.telstra.com>
References: <255B9BB34FB7D647A506DC292726F6E112867EEDE0@WSMSG3153V.srv.dir.telstra.com> <BANLkTi=fWxjWY1dmA=Js+_gdw2jPdHcxnw@mail.gmail.com>
In-Reply-To: <BANLkTi=fWxjWY1dmA=Js+_gdw2jPdHcxnw@mail.gmail.com>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: oauth <oauth@ietf.org>
Subject: Re: [OAUTH-WG] MAC: Cookie name or value as MAC key id
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/oauth>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 14 Jun 2011 02:17:25 -0000

>> This is a bit hacky, too hacky. Wouldn't it be better for a client that
>> recognizes a special MAC cookie to use it to construct Authorization headers
>> and omit it from Cookie headers?

> Nope.  Sending the value in the Cookie header is important to help
> servers implement this scheme without breaking themselves.

Why? How? Could you explain this a bit more?

Is this so the cookie can be reused as a session id that load balancers can use to implement "sticky" sessions? A key id doesn't sound like a great session id. Wouldn't a separate session cookie be better?

Is this so a server can issue MAC credentials, but still accept clients that are unaware of the MAC scheme? That seems possible either way.

Is this so a central security server can start issuing MAC credentials while some of its content servers don't understand MAC and just treat the key id as a bearer token? That sounds bad -- client's think they are getting MAC security when they are not.

--
James Manger