- From: Nico Williams <nico@cryptonector.com>
- Date: Wed, 2 Sep 2026 11:12:39 -0500
- To: Tim Bray <tbray@textuality.com>
- Cc: Martin J. Dürst <duerst@it.aoyama.ac.jp>, Martin Thomson <mt@lowentropy.net>, Poul-Henning Kamp <phk@phk.freebsd.dk>, ietf-http-wg@w3.org, Mark Nottingham <mnot@mnot.net>, "Roy T. Fielding" <fielding@gbiv.com>
On Wed, Sep 02, 2026 at 11:46:51AM -0400, Tim Bray wrote: > On Sep 1, 2026 at 5:46:20 PM, Martin J. Dürst <duerst@it.aoyama.ac.jp> > wrote: > > I think it's okay to do the latter, except that explicitly or > > implicitly, we need a 'mini-overall-framework' so that different actual > > payment frameworks don't step on each other's feet. I wrote 'implicitly' > > because this may already be the case (different actual payment > > frameworks using different additional headers,...). > > That sounds sensible, but I think there might be some resistance to the > idea. In the debates around JWT’s, I’ve heard smart cryptographers being > against the “crypto agility” idea generally and the JWT's “alg" field > specifically. That was a few years back and I’m not a cryptographer so my > memory is fuzzy, but I seem to remember that specifying the algorithm > increased the attack surface. -T The fundamental problem with _signed_ JWTs is that it's trivial to decode and use the claims without having validated the signature. This is also true of x.509/PKIX, but in the world of x.509 the need for an ASN.1 DER codec and ASN.1 clue has set the must-be-this-tall-to-ride bar quite high. JWT's use of JSON sets that bar far too low, which greatly increases the risk of failure to validate signatures. IANAC but I reject the idea that we can _avoid_ algorithm agility. Never mind whether we should or shouldn't have alg agility (we should), it's just not avoidable. If JWTs had no alg field in the header, then negotiation would merely move to some other layer, ... ...and I think that would be Martin's point: that we can let them move the negotiation to the 402 equivalent of WWW-Authenticate and auth- params. 401 is already able to negotiate auth methods, so it stands to reason that 402 should as well. My question really is: since 401 failed to scale to the web, why should we expect 402 to scale to the web? Alternatively: if 3xx works for auth, why not for payment? One answer might be: we only need a very small handful of stacks to get this right today, so there's a much better chance of 402 scaling to the web than 401. If not then just tell them to use 3xx redirects, OAuth-like. Nico --
Received on Wednesday, 2 September 2026 16:12:48 UTC