fastly / js-compute-runtime

JavaScript SDK and runtime for building Fastly Compute applications
https://developer.fastly.com/learning/compute/javascript/
Apache License 2.0
197 stars 26 forks source link

Feature request: SubtleCrypto support for RSA-PSS, ECDSA, ED25519, pkcs8 and spki #579

Closed JakeChampion closed 1 week ago

JakeChampion commented 1 year ago

If I could lobby for a few more algorithms to be supported 🙏

Also pkcs8 and spki key format import/export are not to be overlooked. Developers LOOOVE to use in favour of JWKs.

I have a comprehensive test suite for different runtimes' webcrypto implementations that I could unload on js-compute-runtime eventually.

Originally posted by @panva in https://github.com/fastly/js-compute-runtime/issues/440#issuecomment-1535339296

jfctfl commented 1 year ago

Would this also include RS256? 🙂 We need RS256 to be able to verify JWTs from Fanout in a c@e js runtime - for more context: https://developer.fastly.com/learning/concepts/real-time-messaging/fanout/#validating-grip-requests

JakeChampion commented 1 year ago

@jfctfl We support RS256, but that is not what Fanout uses, Fanout uses EC P-256, which we do not support and is already listed in this issue 👍

jfctfl commented 1 year ago

I assumed it was RS256 based on this rust example. But in any case, glad to see the required algorithm listed here! 👍

guybedford commented 1 week ago

Moved to https://github.com/bytecodealliance/StarlingMonkey/issues/123.