On Wed, Nov 18, 2026 at 3:01 AM Filip Skokan <[email protected]> wrote:
> If we choose to accommodate faulty clients and libraries at the protocol > level, we should at least set out to do so with non-breaking additions. > This I-D proposal introduces breaking behaviors for authorization servers, > clients, and RSs that presently use the existing cryptographic agility > mechanisms correctly. > > We can't expect faulty clients and libraries to get fixed without giving > their developers or owners a reason to act. Commercial servers may offer > their customers a reversible opt-in, first to expose additional keys and > then, separately, to use them, the operators then decide when to "test" > their clients this way using their own timeline. Public servers could > pre-announce time-limited brownouts during which they'll expose the > additional key types in their jwks_uri. These approaches help identify > faulty software and prompt fixes without imposing permanent breaking > changes on working implementations. > > Since we already have cryptographic agility, I don't think the > "Cryptographic Agility" title captures this proposal accurately. As > written, it risks becoming a permanent workaround that requires already > agile conform implementations to change to accommodate the stale ones. That > seems backwards to me on top of invalidating the existing agility we have > already defined and in use. The problem at hand isn't lack of crypto > agility, it's faulty client software. Let's try and address that first. > We certainly lack agility in practice as validated by testing in the wild. I believe the current approach to agility is flawed, not just that many implementers aren't following it. I believe that keysets should be uniform in both algorithm suite and keysize because it is a best practice to publish keys with comparable security properties in a trust establishment document. Implementations often have bugs when new crypto is added because underlying cryptographic wallet implementations frequently refuse to import keys with different security properties. The current approach to key publication necessitates two-level parsing depending on the underlying cryptographic software. For instance, it may require custom parsing to first segment the document along homogenous keysets and then create separate wallets for each. I see a non-breaking way of parameterizing the jwks_uri as a possibility > worth exploring though, it just has to allow existing servers that already > support agility and publish multiple key types for various algs to > participate as much as ones that don't (those are the ones with a bigger > pqc rollout problem). > > Off the top of my head: > > > - (a very quickly put together rough draft of this is attached, it is > surprisingly short) AS adds `jwks_uris: [uri, uri2, uri3]` in addition to > the existing `jwks_uri: uri` to its discovery, then mints its assertions > with an additional `jku: uri2` jose header, a verifier that sees a jku must > match it against the discovery. > - jku is already defined and may coexist with existing JWS > parameters like `kid`. > - The obvious danger is that faulty clients will go out to > attacker-supplied jku so we'd need this profiled properly. > - ID Tokens as defined today "SHOULD NOT use the JWS or JWE x5u, > x5c, *jku*" so this needs a profile regardless. The presence of > jwks_uris is the AS indicator for clients to observe. > - This should likely live in two places > - OIDF Connect A/B WG for ID Tokens, JARM, Signed UserInfo > - IETF OAuth WG for JWT Access Tokens, Signed Introspection > > using a new field jwks_uri is backwards-compatible, but as you point out, using jku is strongly not recommended, so I don't believe this is a promising direction. > > - - or - > - (having worked the option above i don't think the complexity of this > is needed) define `jkuqs` (JWK Set URL query string) jws header parameter, > an implementation aware of this header parameter will then replace the > querystring part of the jwks_uri the AS supplied in its metadata with it. > Request always goes to the same URL but enables parameterization. > - The replace part is important because it allows a different > starting point for each AS, an AS already publishing multiple key types > in > its discovery can start with no qs in its discovery, a public AS like > google can start with a QS that sets a filter to only expose RS256 keys. > And most importantly the actual qs meaning and filtering can be > tailored by > each AS according to its client carveout/opt-in needs. > - The AS has to in addition explicitly advertise support. Verifiers > shouldn’t start replacing queries on arbitrary existing jwks_uri > values. Existing jwks_uri values might contain queries that identify > tenants or routing parameters. A discovery flag for supporting query > replacement would work. > > This is essentially the same proposal in the submitted I-D but it has a property that is both a feature and a bug. It makes the client not need to remember algorithm it selected to pass to the authorization server in order to query jwks_uri correctly later. It's a feature because state handling in protocols is generally a bad thing. It's a bug because the proposed I-D _requires_ attaching the selected algorithm to the authorization 'state' by the client to prevent against downgrade attacks, and having the hint coming back in the AS response makes it more likely to not follow it and therefore be vulnerable to downgrade attacks. > > - - or - ? > > Coming back to an additional authorization parameter to drive the client > opt-in, I think it's a bad idea - clients should be able to opt-in and > opt-out out of band through admin UIs (or with the existing agility > metadata) for their entire client_id. Out of band configuration could also > allow > a client identifier that's backed by more than a single software component > to opt-in only parts of it that can already do PQC based on the value of > the redirect_uri. Aaron suggested this when we revised > https://openid.net/post-quantum-openid-connect/ ("Per-Redirection URI > algorithms are also a possible approach"). > I acknowledge that this is a valid taking, if one starts from the view that the current approach already provides a good solution for agility. I come from a different perspective (which I outlined earlier), because I find mixing algorithms in the jwks document a non-ideal practice. Cheers, Breno. > Best, > *Filip* > > > On Tue, 17 Nov 2026 at 02:17, Breno de Medeiros <breno= > [email protected]> wrote: > >> Available at >> https://datatracker.ietf.org/doc/draft-demedeiros-oidc-crypto-agility/ >> >> The proposal introduces the ability for OIDC authorization metadata to >> publish the supported JWT signing algorithms and allows the client to >> request one of the supported types during the authorization request. In >> addition, it introduces a parameter to 'filter' algorithms from published >> key sets in the jws uri. >> >> The motivation here is to reduce friction for new algorithm adoption, >> particularly to facilitate PQC adoption in open federation contexts. >> >> -- >> >> --Breno >> _______________________________________________ >> OAuth mailing list -- [email protected] >> To unsubscribe send an email to [email protected] >> > -- --Breno
_______________________________________________ OAuth mailing list -- [email protected] To unsubscribe send an email to [email protected]
