Re: [OAUTH-WG] [oauth-token-exchange] Composite Token Design

Brian Campbell <bcampbell@pingidentity.com> Tue, 28 February 2017 22:23 UTC

Return-Path: <bcampbell@pingidentity.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 ED2DF128AC9 for <oauth@ietfa.amsl.com>; Tue, 28 Feb 2017 14:23:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=pingidentity.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 BsFi3_4UnZl5 for <oauth@ietfa.amsl.com>; Tue, 28 Feb 2017 14:23:39 -0800 (PST)
Received: from mail-yw0-x229.google.com (mail-yw0-x229.google.com [IPv6:2607:f8b0:4002:c05::229]) (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 4C7DD1293E0 for <oauth@ietf.org>; Tue, 28 Feb 2017 14:23:39 -0800 (PST)
Received: by mail-yw0-x229.google.com with SMTP id v200so19131569ywc.3 for <oauth@ietf.org>; Tue, 28 Feb 2017 14:23:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pingidentity.com; s=gmail; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jZdjscVWi0yV5TkfaQBEUDtoJXdaKmLMYOhKnh8Zpdk=; b=OF2/mvSZDpBLkhQlOgKkDYPdPZgVw7k82Sq/BClsNOzSTqD6CWwcsRdTCrgFiJALS5 0HopeaNvrSrvJ3hBGGFn4Fa9gTOZ+j5KjLKaJ7ZrCQGFmoDvs2W0eW4of9ADkW9lZQ/G ij5fmOOheDTPHXzOh6MCTZrBYbQwd+bVDtdXA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jZdjscVWi0yV5TkfaQBEUDtoJXdaKmLMYOhKnh8Zpdk=; b=eK/CnkoxXFIDDwil3rNRymzGSOfWDjT6Q9zMVjte0wKszoFhy3gj3wvrhUYg5+98CF m9R6HbtlrQPrGIg6OD/lc59LPKCWRpvDrAE5VODTt+XxbKdlyytQ7PevAq84pC/avisM 3h1J08J9ZGXJlQJA7hS+8TGXbkLappJjhoglqGoab9rI3LenPwC8fR7FeX2YX4a4Ew+D 2c/PDLaVU34zljW01vEiYIZZdJxtNRfo2GdDjbz1KK252yfsraPtdSk075n7V5xX6SLj 6qzPTSMb5BOe1s7tJCgEod3+f+Py3lbOkBM0G1yY2bWv6Nmx21BQDOOTbc0gmpTOSboy tJ9Q==
X-Gm-Message-State: AMke39kkG0I5e+8XnY6sBWuH1Df4RdT0jdBMHW7rcwlmZ4yD8yyaox5Z5hm7DZjK+W9//XS12FuQl5WbUdaxctlL
X-Received: by 10.37.163.38 with SMTP id d35mr1570653ybi.32.1488320618366; Tue, 28 Feb 2017 14:23:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.37.43.4 with HTTP; Tue, 28 Feb 2017 14:23:07 -0800 (PST)
In-Reply-To: <CB347881-02CF-4ECB-AF02-01F28B54233F@zalando.de>
References: <CB347881-02CF-4ECB-AF02-01F28B54233F@zalando.de>
From: Brian Campbell <bcampbell@pingidentity.com>
Date: Tue, 28 Feb 2017 15:23:07 -0700
Message-ID: <CA+k3eCQuWgZmJq2aE0v0RpmzWN_PParqJBupqRC9rdQsAqO3sw@mail.gmail.com>
To: Jan Brennenstuhl <jan.brennenstuhl@zalando.de>
Content-Type: multipart/alternative; boundary="94eb2c19a52cc573fa05499ea533"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/VkoLoKYxzBQagnpI40pUdHaVEVE>
Cc: oauth <oauth@ietf.org>
Subject: Re: [OAUTH-WG] [oauth-token-exchange] Composite Token Design
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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, 28 Feb 2017 22:23:41 -0000

Hi Jan,

I don't think you're missing anything. However, the use of the 'act' claim
to identify the delegate and convey that delegation is happening was an
intentional decision. While delegation is a security sensitive thing, it
often occurs as impersonation with no explicit indication about delegation.
Layering on the delegate info in a claim like this allows for those kinds
of cases to continue working while augmenting the token with data
about the delegate
that can be used for audit or access control (but doesn't have to be).
Which, I guess, is to say that your worries were indeed a design goal of
the document. That may not alleviate those worries but hopefully does
provide some insight into the reasoning behind the current composite token
approach.



On Thu, Feb 23, 2017 at 7:46 AM, Jan Brennenstuhl <
jan.brennenstuhl@zalando.de> wrote:

> Hey everyone,
>
> Let me shortly introduce myself - My name is Jan, I do IAM at Zalando SE.
>
> I am writing, because I like to get a better understanding of the
> reasoning behind a fundamental conceptual decision that was made in the
> oauth-token-exchange draft.
>
> The draft describes one possible design of a composite token: an 'act'
> claim in a representee token, meaning that a regular principal token gives
> the information about a possible delegate/ agent a piggyback.
>
> In my eyes, this is not quite intuitive nor the most secure solution as:
>
>
>    - the current approach cloaks the true nature of the delegation as the
>    actual actor is not represented by/ in the primary token,
>    - the current approach would be entirely transparent for old/ legacy
>    systems which do not know about a possible act claim. Those applications,
>    would support delegation simply because they do not know any better. For
>    them, the intended delegation would look like a true impersonation.
>
>
> As delegation usually is a highly security sensitive thing to do, I
> personally would prefer the probably more secure approach of defining a
> primary agent token with a nested representee token/ information. This
> would lead to systems not just silently supporting delegation (without
> knowing about it). They would need to explicitly support the spec if they
> want to support delegation.
>
> My questions now are:
>
>    - am I missing something here,
>    - do you share my worries,
>    - what are the actual reasons for the current composite token design?
>
>
> Would be great if you could provide some background info on why you chose
> to follow the current approach.
>
> Thanks, Jan
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>
>