Skip to content

Conversation

@panva
Copy link
Member

@panva panva commented Aug 5, 2025

Refs #412


Preview | Diff

@Frosne
Copy link
Member

Frosne commented Aug 5, 2025

Just out of curiosity, if usages are empty, what do we do?

Sorry :)

@panva
Copy link
Member Author

panva commented Aug 5, 2025

Just out of curiosity, if usages are empty, what do we do?

The language reads as don't throw to me. Does it make sense? No, but I probably lack the original context and idea behind these checks.

@Frosne
Copy link
Member

Frosne commented Aug 5, 2025

not only don't throw, but also don't check for the use field of JWK IIUC

I think I opened Pandora's Box with the JWK use field discussion. Oh well.

@panva
Copy link
Member Author

panva commented Aug 5, 2025

@panva
Copy link
Member Author

panva commented Aug 5, 2025

not only don't throw, but also don't check for the use field of JWK IIUC

Yeah.

@Frosne
Copy link
Member

Frosne commented Aug 5, 2025

I'd have put something in the lines "the use field of jwk should be consistent with the usage field"

Copy link
Member

@twiss twiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for the PR!

The language reads as don't throw to me. Does it make sense? No, but I probably lack the original context and idea behind these checks.

I also don't think it makes sense but I'll open a separate issue for that.

@twiss twiss changed the title fix hmac jwk import key "use" check Fix HMAC JWK import key "use" check Aug 5, 2025
@twiss twiss merged commit a4cd8e0 into w3c:main Aug 5, 2025
2 of 3 checks passed
@panva panva deleted the fix-hmac-use branch August 5, 2025 11:32
github-actions bot added a commit that referenced this pull request Aug 15, 2025
SHA: a4cd8e0
Reason: push, by twiss

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants