OK, I caught up with the discussion. Very interesting.
It seems that the conclusion is that there’s no simple mechanism we can add at 
this point that would easily gel with existing deployment, hence either we tell 
people to STOP using multiple keys, or we make them aware of the futility of 
doing so as a way of enforcing security boundaries.
Is that the correct conclusion? If yes, I would suggest we use the language I 
suggested in Brian’s thread (“The RS should expect the AS to use any of the 
keys published in the JWKS doc to sign JWT ATs”) to warn the RS developer that 
the AS could do that, and in the security section we warn the AS developer that 
using multiple keys won’t help much given that the RS won’t differentiate 
between tokens signed with keys from the same metadata collection anyway, hence 
it’s enough to compromise one key to generate tokens that will be accepted 
regardless of type or any other classification..
WDYT?

From: Vittorio Bertocci <vittorio.berto...@auth0.com>
Date: Wednesday, March 25, 2020 at 16:53
To: "Richard Backman, Annabelle" <richanna=40amazon....@dmarc.ietf.org>, 
"vittorio.bertocci=40auth0....@dmarc.ietf.org" 
<vittorio.bertocci=40auth0....@dmarc.ietf.org>, 'George Fletcher' 
<gffle...@aol.com>, 'Brian Campbell' 
<bcampbell=40pingidentity....@dmarc.ietf.org>
Cc: 'oauth' <oauth@ietf.org>
Subject: Re: [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for OAuth 2.0 
Access Tokens"

Oh wow, I completely missed that thread. Thanks for the link. Reading…

From: OAuth <oauth-boun...@ietf.org> on behalf of "Richard Backman, Annabelle" 
<richanna=40amazon....@dmarc.ietf.org>
Date: Wednesday, March 25, 2020 at 14:26
To: "vittorio.bertocci=40auth0....@dmarc.ietf.org" 
<vittorio.bertocci=40auth0....@dmarc.ietf.org>, 'George Fletcher' 
<gffle...@aol.com>, 'Brian Campbell' 
<bcampbell=40pingidentity....@dmarc.ietf.org>
Cc: 'oauth' <oauth@ietf.org>
Subject: Re: [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for OAuth 2.0 
Access Tokens"

This is another manifestation of the limits of jwks_uri that I’ve brought up on 
the list 
previously<https://mailarchive.ietf.org/arch/msg/oauth/eCZ-wUU2iwTyfx-zuqr2K3bM8-8/>.

Using different signing keys does not actually limit the blast radius of each 
key, since the validator doesn’t know that each key should only be considered 
valid for one type of token. This takes away one of the major drivers for using 
different keys. If the text says deployments can use different keys, it needs 
to clarify the limited value of that.

–
Annabelle Backman (she/her)
AWS Identity
https://aws.amazon.com/identity/


From: OAuth <oauth-boun...@ietf.org> on behalf of 
"vittorio.bertocci=40auth0....@dmarc.ietf.org" 
<vittorio.bertocci=40auth0....@dmarc.ietf.org>
Date: Wednesday, March 25, 2020 at 12:01 PM
To: 'George Fletcher' <gffle...@aol.com>, 'Brian Campbell' 
<bcampbell=40pingidentity....@dmarc.ietf.org>
Cc: 'oauth' <oauth@ietf.org>
Subject: RE: [EXTERNAL] [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for 
OAuth 2.0 Access Tokens"


CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you can confirm the sender and know the 
content is safe.

That works for me!

From: George Fletcher <gffle...@aol.com>
Sent: Wednesday, March 25, 2020 11:56 AM
To: vittorio.berto...@auth0.com; 'Brian Campbell' 
<bcampbell=40pingidentity....@dmarc.ietf.org>
Cc: 'Brian Campbell' <bcampb...@pingidentity.com>; 'oauth' <oauth@ietf.org>
Subject: Re: [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for OAuth 2.0 
Access Tokens"

If we don't want to give guidance on how the RS determines the correct key to 
use to validate the token, then maybe we should state that explicitly. "The 
mechanism used by the RS to determine the correct key to use to validate the 
access token is out of scope for this specification".

That way at least we are being very clear that the spec is not trying to 
specify how that happens.

Thoughts?
On 3/25/20 2:44 PM, 
vittorio.berto...@auth0.com<mailto:vittorio.berto...@auth0.com> wrote:

Brian, there are plenty of ways in which an RS can surprise you with odd 
behavior- for example, developers might see that you used a key for signing an 
IDtoken and use that for init all their validation middleware for ATs as well, 
say because the library only supports one key at a time, and then end up 
failing at runtime when/if the assumption ceases to apply in the future..



Would that be legitimate of them to take such a dependency, even without 
warning text? No. However I am not looking at this from the “lawyering up” 
perspective, but from the useful guidance standpoint as well. I am well aware 
that being concise is a feature, but I am also not crazy about making every 
specification into an intelligence test for the reader. If a 16 words sentence 
can help prevent a likely misstep, I’d be inclined to keep it.. But if the 
consensus is that the sentence is confusing, I can also take it out.







Brian & George, in the spirit of keeping things simple, and given that this was 
more of a “just in case” warning rather than a security feature clamored for- 
if the language is problematic I’d be more inclined to take the sentence out 
rather than complicating the guidance further.







From: Brian Campbell 
<bcampbell=40pingidentity....@dmarc.ietf.org><mailto:bcampbell=40pingidentity....@dmarc.ietf.org>

Sent: Wednesday, March 25, 2020 11:21 AM

To: George Fletcher <gffle...@aol.com><mailto:gffle...@aol.com>

Cc: Brian Campbell 
<bcampb...@pingidentity.com><mailto:bcampb...@pingidentity.com>; Vittorio 
Bertocci <vittorio.berto...@auth0.com><mailto:vittorio.berto...@auth0.com>; 
oauth <oauth@ietf.org><mailto:oauth@ietf.org>

Subject: Re: [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for OAuth 2.0 
Access Tokens"







I don't think you are missing anything, George (except that, to be pedantic, 
`kid` is a header rather than a claim).







The question gave me pause, however, and makes me think that maybe the draft, 
with the aim of improved interoperability, should have some more explicit text 
about the use of the 'kid' header in a JWT AT and how it references the 
verification key in the content at the jwks_uri.























On Wed, Mar 25, 2020 at 11:54 AM George Fletcher 
<gffletch=40aol....@dmarc.ietf.org<mailto:gffletch=40aol....@dmarc.ietf.org> 
<mailto:40aol....@dmarc.ietf.org><mailto:40aol....@dmarc.ietf.org> > wrote:



Can we not use the 'kid' claim to inform the RS as to which key is being used? 
What am I missing?



On 3/25/20 1:51 PM, Brian Campbell wrote:



I think, even without that statement in the draft, that ASes already have

license to use different keys if they so choose. And maybe I'm not creative

enough but I can't think of what problematic assumptions RSes might make

that would prevented by it. So perhaps just removing that whole sentence,

"An authorization server MAY elect to use different keys to sign id_tokens

and JWT access tokens."? Just a thought anyway.



On Wed, Mar 25, 2020 at 10:11 AM <vittorio.bertocci=

40auth0....@dmarc.ietf.org<mailto:40auth0....@dmarc.ietf.org> 
<mailto:40auth0....@dmarc.ietf.org><mailto:40auth0....@dmarc.ietf.org> > wrote:





Thank you for the perspective- I guessed something similar (“there would

be no way for the RS to know what key is used for what").



As stated below, the intent wasn’t to prevent substitution/confusion, but

mostly to give ASes license to use different keys if they choose to (for

the reasons listed below, or any other reason they might have) and a

headsup to RSes so that they don’t make assumptions.







*From:* Brian Campbell  
<mailto:bcampbell=40pingidentity....@dmarc.ietf.org><mailto:bcampbell=40pingidentity....@dmarc.ietf.org>
 
<bcampbell=40pingidentity....@dmarc.ietf.org><mailto:bcampbell=40pingidentity....@dmarc.ietf.org>

*Sent:* Wednesday, March 25, 2020 8:48 AM

*To:* Vittorio Bertocci  
<mailto:vittorio.berto...@auth0.com><mailto:vittorio.berto...@auth0.com> 
<vittorio.berto...@auth0.com><mailto:vittorio.berto...@auth0.com>

*Cc:* Richard Backman, Annabelle  
<mailto:richa...@amazon.com><mailto:richa...@amazon.com> 
<richa...@amazon.com><mailto:richa...@amazon.com>; oauth <

oauth@ietf.org<mailto:oauth@ietf.org> 
<mailto:oauth@ietf.org><mailto:oauth@ietf.org> >

*Subject:* Re: [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for OAuth

2.0 Access Tokens"







I'm gonna go out on a limb and guess/suggest that implicit in Annabelle's

comment was an assumption that signing ATs and ID Tokens with different

keys would be done to prevent token substitution/confusion. And there's not

really a practical way to achieve that with the mechanics of the jwks_uri..







On Wed, Mar 25, 2020 at 3:53 AM Vittorio Bertocci <vittorio.bertocci=

40auth0....@dmarc.ietf.org<mailto:40auth0....@dmarc.ietf.org> 
<mailto:40auth0....@dmarc.ietf.org><mailto:40auth0....@dmarc.ietf.org> > wrote:



*>§4 p3: The only practical way for the AS to sign ATs and ID Tokens with

different keys is to publish the keys in two different JWK sets. This only

way to do this today is by publishing separate OAuth 2.0 authorization

server metadata and OIDC Discovery metadata files, where the JWK set in the

former applies to access tokens and the JWK set in the latter applies to ID

Tokens.*



Hmm, I don’t follow. The OIDC jwks_uri can contain multiple keys, and they

all can be used for signing. What prevents the AS to use one key from that

list for IDtokens and another for ATs? Separate discovery docs shouldn’t be

necessary. Sure, there would be no way for the RS to know what key is used

for what- but similar mechanisms are already in place today for handling

signing key rotation: e.g. the discovery doc lists the current key and the

future key, but uses only the current- and the RS has no way of

distinguishing between the two. The situation here can be analogous, any

key in the discovery doc should be considered valid by the RS, and in fact

there’s no requirement about selecting specific keys in the validation

section. That doesn’t mean this is useless, an AS might elect to use

different keys for its own purposes (eg separation of concerns for

forensics, different strengths, different lifecycles, and so on).













*CONFIDENTIALITY NOTICE: This email may contain confidential and

privileged material for the sole use of the intended recipient(s). Any

review, use, distribution or disclosure by others is strictly prohibited...

If you have received this communication in error, please notify the sender

immediately by e-mail and delete the message and any file attachments from

your computer. Thank you.*









_______________________________________________

OAuth mailing list

OAuth@ietf.org<mailto:OAuth@ietf.org> 
<mailto:OAuth@ietf.org><mailto:OAuth@ietf.org>

https://www.ietf.org/mailman/listinfo/oauth







_______________________________________________

OAuth mailing list

OAuth@ietf.org<mailto:OAuth@ietf.org> 
<mailto:OAuth@ietf.org><mailto:OAuth@ietf.org>

https://www.ietf.org/mailman/listinfo/oauth







_______________________________________________
OAuth mailing list
OAuth@ietf.org
https://www.ietf.org/mailman/listinfo/oauth

Reply via email to