Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the registration request for SD-JWT #179

Closed
OR13 opened this issue Nov 14, 2023 · 10 comments
Closed

Change the registration request for SD-JWT #179

OR13 opened this issue Nov 14, 2023 · 10 comments
Assignees
Labels

Comments

@OR13
Copy link
Contributor

OR13 commented Nov 14, 2023

Its been suggested that application/vc+ld+json+sd-jwt is not worth registering, see:

w3c/vc-jose-cose-test-suite#8

We would need to request registration of some other typ value, to comply with the JWT BCP.

Perhaps application/vc-ld-json+sd-jwt

@TallTed
Copy link
Member

TallTed commented Nov 14, 2023

As I've said in many other places, SD-JWT (application/sd-jwt) is analogous to ZIP (application/zip) -- neither should display the media types of the documents they envelop/contain.

Neither application/vc-ld+sd-jwt nor application/vc+ld+json+sd-jwt should exist; both should be just application/sd-jwt. As I understand your intent for these latter types, upon extraction, they would both deliver an application/vc+ld+json document.

Regrettably, §3.11. Use Explicit Typing and §3.12. Use Mutually Exclusive Validation Rules for Different Kinds of JWTs suggest significant misunderstandings of the Media Type RFC on the part of the JWT RFC authors.

To my mind, after extensive reading of RFCs on and about Media Types, just as there is no explicit sub-typing of ZIPs based on their content, there should be no explicit sub-typing of JWTs basd on their content — except and unless where a generic JWT processor can process those sub-types to some degree, but that does not appear to be what the JWT RFC authors have had in mind.

@msporny
Copy link
Member

msporny commented Nov 15, 2023

Agree with what @TallTed says above, the media type is application/sd-jwt and that media type has it's own payload typing system (cty). It's analogous to application/zip.

However, given that there exist multiple erroneous application/foo+jwt entries in the media types registry, registering application/vc+sd-jwt might work as long as the semantics are aligned with application/vc+ld+json, but I expect there to be vigorous debate given that this is a /new/ registration... which would then kick off whether those types of registrations should be allowed... which will then further delay the suffixes draft and vc-jose-cose.

@TallTed
Copy link
Member

TallTed commented Nov 15, 2023

Feedback should probably reach the JWT RFC authors, toward some revision there. I think their intentions would be well served by the Media Type profile feature.

@selfissued
Copy link
Collaborator

The editors talked about this on today's editors' call. We're thinking that the path of least resistance is to leave the present registration requests in place. Then one of two things could happen:

  1. Structured suffixes are approved in the IETF. In that case, no changes will be required in this specification.
  2. Structured suffixes are rejected by the IETF. In that case, we will change our registration requests, which could require a second CR.

We propose to close this issue on that basis.

@OR13
Copy link
Contributor Author

OR13 commented Nov 27, 2023

See also: #184

@OR13
Copy link
Contributor Author

OR13 commented Nov 27, 2023

Per is up here: #186

@TallTed
Copy link
Member

TallTed commented Nov 28, 2023

The editors talked about this on today's editors' call. We're thinking that the path of least resistance is to leave the present registration requests in place.

W3C WG editors are supposed to implement decisions made by the WG as a whole, not the other way around.

I can think of numerous instances of "paths of least resistance" which would have been bad for interoperation, web users on both sides (servers and browsers), and the Internet writ large.

I do not think that such "paths of least resistance" are a good basis for most technological decisions, especially where that "least resistance" essentially ignores or negates existing specifications, and may impact many implementations and deployments which are not generally known to spec authors/editors because implementers and deployers are not required to announce their activities and have (and should have) a reasonable expectation that such existing specifications will not be changed out from under them.

@selfissued
Copy link
Collaborator

Categorizing as post-CR, per decision on 20-Dec-23 working group call.

@TallTed
Copy link
Member

TallTed commented Dec 26, 2023

20-Dec-23 -> 20-Dec-2023

@decentralgabe
Copy link
Collaborator

Fixed by #279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants