Skip to content

Compute Web Bot Auth keyid via RFC 7638 thumbprint instead of jwt-eddsa's kid - #32

Merged
nomadium merged 1 commit into
masterfrom
fix-jwk-thumbprint
Aug 11, 2026
Merged

Compute Web Bot Auth keyid via RFC 7638 thumbprint instead of jwt-eddsa's kid#32
nomadium merged 1 commit into
masterfrom
fix-jwk-thumbprint

Conversation

@nomadium

Copy link
Copy Markdown
Owner

jwt-eddsa (<= 0.9.0) computes JWK::OKP's thumbprint over the wrong members ({kty, n, x} instead of the RFC 8037-correct {crv, kty, x}), so the Web Bot Auth keyid derived from it never matched what a spec-compliant verifier expects.

Add Linzer::JWS::Key#jwk_thumbprint and use it instead, so Linzer is correct independent of jwt/ruby-jwt-eddsa#26.

…sa's kid

jwt-eddsa (<= 0.9.0) computes JWK::OKP's thumbprint over the wrong
members ({kty, n, x} instead of the RFC 8037-correct {crv, kty, x}),
so the Web Bot Auth `keyid` derived from it never matched what a
spec-compliant verifier expects.

Add Linzer::JWS::Key#jwk_thumbprint and use it instead, so Linzer
is correct independent of jwt/ruby-jwt-eddsa#26.
@nomadium
nomadium merged commit 9c38ced into master Aug 11, 2026
36 of 37 checks passed
@nomadium
nomadium deleted the fix-jwk-thumbprint branch August 11, 2026 09:23
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.

1 participant