-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add guidance around using JWK #220
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OPTIONAL or REQUIRED should be clearly stated for all properties
Co-authored-by: Ted Thibodeau Jr <[email protected]>
Co-authored-by: Ted Thibodeau Jr <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@selfissued noted that alg
is not optional.
The issue was discussed in a meeting on 2024-01-24
View the transcript1.2. adjust language in example 13 (pr vc-jose-cose#220)See github pull request vc-jose-cose#220. Brent Zundel: Adjust language in example 13 -- again an editorial change. Manu Sporny: Just a question -- I approved the PR fine as is. There's this fully specified algorithm stuff that is making it's way through IETF. How does that spec involve the language here? Michael Jones: For the language in example 13? Manu Sporny: Yeah. The PR also adds some normative text around the Michael Jones: I need to review that then because Manu Sporny: This PR says it is. I'll put your comment into it. Brent Zundel: Sorry, my understanding is that the normative bits have just been moved around, so it may be more normative than I expected. Gabe Cohen: Yeah, I was going to say what you said -- I think I made a mistake with that first sentence so I will adjust that after Mike gives it a review. Manu Sporny: I don't think you made a mistake, it's confusing or wrong original text that you didn't add Gabe. Ted Thibodeau Jr.: I added the all-caps OPTIONAL based on the following text -- it needs to be consistent whatever it is. Michael Jones: JOSE requires Brent Zundel: Good feedback on that PR, it's actionable, encourage folks to keep an eye on it as it is reviewed and updated. |
Co-authored-by: Ted Thibodeau Jr <[email protected]>
Co-authored-by: Ted Thibodeau Jr <[email protected]>
@msporny noting that after discussion we realized a misunderstanding, |
I misunderstood the context when we were discussing this on the call. |
index.html
Outdated
The `alg` property identifies the algorithm intended | ||
for use with the public key, and is | ||
included to prevent security issues that can arise when using the same key with multiple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[@selfissued] I misunderstood the context when we were discussing this on the call.
alg
is a required header parameter, which is what I thought we were discussing.alg
is not required in JWKs.
Reverting incorrect changes made since #220 (review), and improving the result
The `alg` property identifies the algorithm intended | |
for use with the public key, and is | |
included to prevent security issues that can arise when using the same key with multiple | |
The `alg` property is OPTIONAL in JWKs, and identifies the algorithm intended | |
for use with the public key. Although optional, it is RECOMMENDED that `alg` | |
be included, to avoid security issues that can arise when using the same key with multiple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TallTed this change was intentional, as we do not want to overlap with normative guidance provided by the JWK spec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@decentralgabe — WHICH change was intentional?
This specific change request is to bring us back to where we were before @selfissued's misunderstanding of alg
property vs alg
header parameter, where there were no complaints about any "overlap with normative guidance provided by the JWK spec".
If we're now (near to) overlapping the JWK spec, we should have a citation here which points to the specific segment of the JWK spec, such that implementers of vc-jose-cose
do not have to read the entirety of the JWK spec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the change to remove the OPTIONAL and RECOMMENDED - as you note - before the misunderstanding - was intentional.
If we're now (near to) overlapping the JWK spec, we should have a citation here which points to the specific segment of the JWK spec, such that implementers of
vc-jose-cose
do not have to read the entirety of the JWK spec.
This is a good idea, I will update the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This clarity of presentation was discussed and approved earlier; its removal occurred through misunderstanding of what was being discussed. I haven't seen an argument that I think sufficiently justifies omitting these 5 words (~38 characters, depending on whether you count spaces or not).
Co-authored-by: Ted Thibodeau Jr <[email protected]>
The issue was discussed in a meeting on 2024-02-14
View the transcript1.3. Add guidance around using JWK (pr vc-jose-cose#220)See github pull request vc-jose-cose#220. Gabe Cohen: One thing I forgot to mention -- there's some outstanding discussion around 220 ... around the JsonWebKey text that we should discuss to get clarity around some confusion that came up. Ted Thibodeau Jr.: the language that was removed was removed during misunderstanding of what was being discussed...point being the four words were added with intent and removed without that intent, which is why I've asked them to be re-added. Manu Sporny: the language being modified is normative language that is significant. need to update the title of the PR, since it's broader than the example. somewhat confused...had said we'd have explicit guidance on iss, kid, etc. that guidance was not provided...may be a different issue. if we're talking about keys and just a JWT, and if we're just repeating what's said in the other spec we don't need to repeat it here. somewhat confusing...since kid matters. See github pull request vc-jose-cose#226. Gabe Cohen: The changes you're referring to Manu, went into 226. The changes we're talking about ... the PR is unfortunately named. The language I moved was originally in an example. Ted Thibodeau Jr.: On Jan 18th, I said optional or required should be clearly stated for all properties, that's generally true what's happening but not true for the couple that were added with this PR. Michael Jones: Are we talking about a change to header params or JWKs? Gabe Cohen: JWKs. Michael Jones: It's optional there, what does it say now? Gabe Cohen: Nothing. Michael Jones: It's fine to say that. Gabe Cohen: It sounds like we're clear on this one, I'll apply Ted's suggestion and then we're good. Michael Jones: Ok, 220 should be ready once we get the suggestion in. |
changes addressed, merging. |
fix #210
Preview | Diff