Skip to content

fix(web-bot-auth): accept the Ed25519 JWK alg - #201

Merged
thibmeu merged 2 commits into
cloudflare:mainfrom
konippi:fix/ed25519-jwk-alg
Nov 25, 2026
Merged

thibmeu merged 2 commits into
cloudflare:mainfrom
konippi:fix/ed25519-jwk-alg

Conversation

@konippi

@konippi konippi commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Related to #168.

signerFromJWK and verifierFromJWK rejected an Ed25519 JWK with alg: "Ed25519", which is what Node's crypto.subtle.exportKey returns.

RFC 9864 Section 2.2 registers Ed25519 and deprecates EdDSA, so both are now accepted.

@clanky-the-clanker

Copy link
Copy Markdown
Contributor

This pull request was not reviewed automatically because its author does not have write access to this repository. A maintainer with write access can start a review by commenting clanky review (or clanker review or @clanky-the-clanker review), optionally followed by instructions (e.g. clanky review focus on the retry logic).

Validate the original JWK before omitting the explicit Ed25519 label
for runtimes that reject it. Exercise signing and verification in workerd.
@thibmeu
thibmeu merged commit 7ac8ace into cloudflare:main Nov 25, 2026
5 checks passed
@thibmeu

thibmeu commented Nov 25, 2026

Copy link
Copy Markdown
Member

@konippi thanks for the update. checking IANA registry, there is indeed a deprecation and a new way to do things. I guess we'll cope with both at the moment. I suspect we will revisit this check with #12

@konippi

konippi commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

@thibmeu Makes sense, thanks for checking.

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.

2 participants